-
Notifications
You must be signed in to change notification settings - Fork 529
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'AliceO2Group:master' into master
- Loading branch information
Showing
58 changed files
with
3,489 additions
and
937 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# Copyright 2019-2020 CERN and copyright holders of ALICE O2. | ||
# See https://alice-o2.web.cern.ch/copyright for details of the copyright holders. | ||
# All rights not expressly granted are reserved. | ||
# | ||
# This software is distributed under the terms of the GNU General Public | ||
# License v3 (GPL Version 3), copied verbatim in the file "COPYING". | ||
# | ||
# In applying this license CERN does not waive the privileges and immunities | ||
# granted to it by virtue of its status as an Intergovernmental Organization | ||
# or submit itself to any jurisdiction. | ||
|
||
o2physics_add_dpl_workflow(otfv0qa | ||
SOURCES otfv0qa.cxx | ||
PUBLIC_LINK_LIBRARIES O2::Framework O2Physics::AnalysisCore | ||
COMPONENT_NAME Analysis) | ||
|
||
o2physics_add_dpl_workflow(centqa | ||
SOURCES centqa.cxx | ||
PUBLIC_LINK_LIBRARIES O2::Framework O2Physics::AnalysisCore | ||
COMPONENT_NAME Analysis) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,92 @@ | ||
// Copyright 2019-2020 CERN and copyright holders of ALICE O2. | ||
// See https://alice-o2.web.cern.ch/copyright for details of the copyright holders. | ||
// All rights not expressly granted are reserved. | ||
// | ||
// This software is distributed under the terms of the GNU General Public | ||
// License v3 (GPL Version 3), copied verbatim in the file "COPYING". | ||
// | ||
// In applying this license CERN does not waive the privileges and immunities | ||
// granted to it by virtue of its status as an Intergovernmental Organization | ||
// or submit itself to any jurisdiction. | ||
// | ||
// This code calculates output histograms for centrality calibration | ||
// as well as vertex-Z dependencies of raw variables (either for calibration | ||
// of vtx-Z dependencies or for the calibration of those). | ||
// | ||
// This task is not strictly necessary in a typical analysis workflow, | ||
// except for centrality calibration! The necessary task is the multiplicity | ||
// tables. | ||
// | ||
// Comments, suggestions, questions? Please write to: | ||
// - [email protected] | ||
// - [email protected] | ||
// | ||
|
||
#include "Framework/runDataProcessing.h" | ||
#include "Framework/AnalysisTask.h" | ||
#include "Framework/AnalysisDataModel.h" | ||
#include "Common/DataModel/McCollisionExtra.h" | ||
#include "Common/DataModel/Centrality.h" | ||
#include "Common/DataModel/EventSelection.h" | ||
#include "Framework/O2DatabasePDGPlugin.h" | ||
#include "TH1F.h" | ||
#include "TH2F.h" | ||
|
||
using namespace o2; | ||
using namespace o2::framework; | ||
|
||
struct CentQA { | ||
// Raw multiplicities | ||
HistogramRegistry histos{"Histos", {}, OutputObjHandlingPolicy::AnalysisObject}; | ||
|
||
void init(InitContext&) | ||
{ | ||
const AxisSpec axisCentrality{205, 0, 205, "centrality"}; | ||
|
||
// Base histograms | ||
histos.add("hV0M", "V0M centrality", kTH1F, {axisCentrality}); | ||
histos.add("hV0A", "V0A centrality", kTH1F, {axisCentrality}); | ||
histos.add("hCL0", "CL0 centrality", kTH1F, {axisCentrality}); | ||
histos.add("hCL1", "CL1 centrality", kTH1F, {axisCentrality}); | ||
histos.add("hRefMult5", "RefMult .5 centrality", kTH1F, {axisCentrality}); | ||
histos.add("hRefMult8", "RefMult .8 centrality", kTH1F, {axisCentrality}); | ||
} | ||
|
||
void processV0M(soa::Join<aod::Collisions, aod::CentRun2V0Ms>::iterator const& col) | ||
{ | ||
histos.fill(HIST("hV0M"), col.centRun2V0M()); | ||
} | ||
void processV0A(soa::Join<aod::Collisions, aod::CentRun2V0As>::iterator const& col) | ||
{ | ||
histos.fill(HIST("hV0A"), col.centRun2V0A()); | ||
} | ||
void processCL0(soa::Join<aod::Collisions, aod::CentRun2CL0s>::iterator const& col) | ||
{ | ||
histos.fill(HIST("hCL0"), col.centRun2CL0()); | ||
} | ||
void processCL1(soa::Join<aod::Collisions, aod::CentRun2CL1s>::iterator const& col) | ||
{ | ||
histos.fill(HIST("hCL1"), col.centRun2CL1()); | ||
} | ||
void processRefMult5(soa::Join<aod::Collisions, aod::CentRun2RefMult5s>::iterator const& col) | ||
{ | ||
histos.fill(HIST("hRefMult5"), col.centRun2RefMult5()); | ||
} | ||
void processRefMult8(soa::Join<aod::Collisions, aod::CentRun2RefMult8s>::iterator const& col) | ||
{ | ||
histos.fill(HIST("hRefMult8"), col.centRun2RefMult8()); | ||
} | ||
|
||
PROCESS_SWITCH(CentQA, processV0M, "QA V0M centrality", true); | ||
PROCESS_SWITCH(CentQA, processV0A, "QA V0A centrality", false); | ||
PROCESS_SWITCH(CentQA, processCL0, "QA CL0 centrality", false); | ||
PROCESS_SWITCH(CentQA, processCL1, "QA CL1 centrality", false); | ||
PROCESS_SWITCH(CentQA, processRefMult5, "QA RefMult5 centrality", false); | ||
PROCESS_SWITCH(CentQA, processRefMult8, "QA RefMult8 centrality", false); | ||
}; | ||
|
||
WorkflowSpec defineDataProcessing(ConfigContext const& cfgc) | ||
{ | ||
return WorkflowSpec{ | ||
adaptAnalysisTask<CentQA>(cfgc)}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
// Copyright 2019-2020 CERN and copyright holders of ALICE O2. | ||
// See https://alice-o2.web.cern.ch/copyright for details of the copyright holders. | ||
// All rights not expressly granted are reserved. | ||
// | ||
// This software is distributed under the terms of the GNU General Public | ||
// License v3 (GPL Version 3), copied verbatim in the file "COPYING". | ||
// | ||
// In applying this license CERN does not waive the privileges and immunities | ||
// granted to it by virtue of its status as an Intergovernmental Organization | ||
// or submit itself to any jurisdiction. | ||
// | ||
// This code calculates output histograms for centrality calibration | ||
// as well as vertex-Z dependencies of raw variables (either for calibration | ||
// of vtx-Z dependencies or for the calibration of those). | ||
// | ||
// This task is not strictly necessary in a typical analysis workflow, | ||
// except for centrality calibration! The necessary task is the multiplicity | ||
// tables. | ||
// | ||
// Comments, suggestions, questions? Please write to: | ||
// - [email protected] | ||
// - [email protected] | ||
// | ||
|
||
#include "Framework/runDataProcessing.h" | ||
#include "Framework/AnalysisTask.h" | ||
#include "Framework/AnalysisDataModel.h" | ||
#include "Common/DataModel/McCollisionExtra.h" | ||
#include "Common/DataModel/Multiplicity.h" | ||
#include "Common/DataModel/EventSelection.h" | ||
#include "Framework/O2DatabasePDGPlugin.h" | ||
#include "TH1F.h" | ||
#include "TH2F.h" | ||
|
||
using namespace o2; | ||
using namespace o2::framework; | ||
|
||
struct OTFV0Qa { | ||
// Raw multiplicities | ||
HistogramRegistry histos{"Histos", {}, OutputObjHandlingPolicy::AnalysisObject}; | ||
|
||
void init(InitContext&) | ||
{ | ||
const AxisSpec axisEvent{10, 0, 10, "Event counter"}; | ||
const AxisSpec axisNCandidates{500, 0, 500, "Number of OTF v0s"}; | ||
|
||
// Base histograms | ||
histos.add("hEventCounter", "Event counter", kTH1F, {axisEvent}); | ||
histos.add("hCandidates", "Number of OTF V0s", kTH1F, {axisNCandidates}); | ||
} | ||
|
||
void process(aod::Collision const&, aod::Run2OTFV0s const& v0s) | ||
{ | ||
histos.fill(HIST("hEventCounter"), 0.5); | ||
histos.fill(HIST("hCandidates"), v0s.size()); | ||
} | ||
}; | ||
|
||
WorkflowSpec defineDataProcessing(ConfigContext const& cfgc) | ||
{ | ||
return WorkflowSpec{ | ||
adaptAnalysisTask<OTFV0Qa>(cfgc)}; | ||
} |
Oops, something went wrong.