Skip to content

Commit 8eeb3d2

Browse files
abilandzalibuild
andauthored
skeleton for O2 analysis with multiparticle correlations (#984)
* skeleton for O2 analysis with multiparticle correlations * Please consider the following formatting changes * added copyright notice * removed 2 trailing spaces, for formatting check to go through * change of subdirectory structure Co-authored-by: ALICE Action Bot <alibuild@cern.ch>
1 parent 2012248 commit 8eeb3d2

13 files changed

Lines changed: 639 additions & 1 deletion

PWGCF/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ add_subdirectory(Core)
1313
# add_subdirectory(DataModel)
1414
add_subdirectory(GenericFramework)
1515
add_subdirectory(FemtoDream)
16+
add_subdirectory(MultiparticleCorrelations)
1617
add_subdirectory(Tasks)
1718
add_subdirectory(TableProducer)
1819

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# Copyright 2019-2020 CERN and copyright holders of ALICE O2.
2+
# See https://alice-o2.web.cern.ch/copyright for details of the copyright holders.
3+
# All rights not expressly granted are reserved.
4+
#
5+
# This software is distributed under the terms of the GNU General Public
6+
# License v3 (GPL Version 3), copied verbatim in the file "COPYING".
7+
#
8+
# In applying this license CERN does not waive the privileges and immunities
9+
# granted to it by virtue of its status as an Intergovernmental Organization
10+
# or submit itself to any jurisdiction.
11+
12+
add_subdirectory(Core)
13+
add_subdirectory(DataModel)
14+
add_subdirectory(TableProducer)
15+
add_subdirectory(Tasks)
16+
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# Copyright 2019-2020 CERN and copyright holders of ALICE O2.
2+
# See https://alice-o2.web.cern.ch/copyright for details of the copyright holders.
3+
# All rights not expressly granted are reserved.
4+
#
5+
# This software is distributed under the terms of the GNU General Public
6+
# License v3 (GPL Version 3), copied verbatim in the file "COPYING".
7+
#
8+
# In applying this license CERN does not waive the privileges and immunities
9+
# granted to it by virtue of its status as an Intergovernmental Organization
10+
# or submit itself to any jurisdiction.
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
// Copyright 2019-2020 CERN and copyright holders of ALICE O2.
2+
// See https://alice-o2.web.cern.ch/copyright for details of the copyright holders.
3+
// All rights not expressly granted are reserved.
4+
//
5+
// This software is distributed under the terms of the GNU General Public
6+
// License v3 (GPL Version 3), copied verbatim in the file "COPYING".
7+
//
8+
// In applying this license CERN does not waive the privileges and immunities
9+
// granted to it by virtue of its status as an Intergovernmental Organization
10+
// or submit itself to any jurisdiction.
11+
12+
Configurable<float> Vz_min{"Vz_min", -10.0, "minimum vertex z range [cm]"};
13+
Configurable<float> Vz_max{"Vz_max", 10.0, "maximum vertex z range [cm]"};
14+
Configurable<float> pt_min{"pt_min", 0.2, "minimum track pt value [GeV/c]"};
15+
Configurable<float> pt_max{"pt_max", 5.0, "maximum track pt value [GeV/c]"};
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
// Copyright 2019-2020 CERN and copyright holders of ALICE O2.
2+
// See https://alice-o2.web.cern.ch/copyright for details of the copyright holders.
3+
// All rights not expressly granted are reserved.
4+
//
5+
// This software is distributed under the terms of the GNU General Public
6+
// License v3 (GPL Version 3), copied verbatim in the file "COPYING".
7+
//
8+
// In applying this license CERN does not waive the privileges and immunities
9+
// granted to it by virtue of its status as an Intergovernmental Organization
10+
// or submit itself to any jurisdiction.
11+
12+
// Remarks:
13+
// 0. Starting with C++11, it's possible to initialize data members at declaration, so I do it here
14+
// 1. Use //!<! for introducing a Doxygen comment interpreted as transient in both ROOT 5 and ROOT 6.
15+
16+
// a) Base list to hold all output objects ("grandmother" of all lists);
17+
// *) QA;
18+
// *) Control event histograms;
19+
// *) Particle weights;
20+
21+
// a) Base list to hold all output objects ("grandmother" of all lists):
22+
OutputObj<TList> fBaseList{"Task => ...", OutputObjHandlingPolicy::AnalysisObject, OutputObjSourceType::OutputObjSource};
23+
TProfile* fBasePro = NULL; //!<! keeps flags relevant for the whole analysis
24+
UInt_t fRandomSeed = 0; // argument to TRandom3 constructor. By default is 0, use SetRandomSeed(...) to change it
25+
26+
// *) QA:
27+
TList* fQAList = NULL; //!<! base list to hold all QA output object
28+
29+
// *) Control event histograms:
30+
TList* fControlEventHistogramsList = NULL; //!<! list to hold all control event histograms
31+
TProfile* fControlEventHistogramsPro = NULL; //!<! keeps flags relevant for the control event histograms
32+
struct ControlEventHistograms_Arrays {
33+
TH1D* fMultiplicityHist[2] = {NULL}; //!<! distribution of multiplicity [before,after event cuts]
34+
} ceh_a; // "ceh_a" labels an instance of this group of histograms, e.g. ceha_a.fMultiplicityHist[0]
35+
36+
// *) Particle weights:
37+
TList* fWeightsList = NULL; //!<! list to hold all particle weights
38+
TProfile* fWeightsFlagsPro = NULL; //!<! profile to hold all flags for weights
39+
struct ParticleWeights_Arrays {
40+
TH1D* fWeightsHist[gWeights] = {NULL}; //!<! particle weights
41+
} pw_a; // "pw_a" labels an instance of this group of histograms, e.g. pw_a.fWeightsHist[0]
42+
43+
// *) Results:
44+
TList* fResultsList = NULL; //!<! list to hold all results
45+
TProfile* fResultsFlagsPro = NULL; //!<! profile to hold all flags for results
46+
TH1D* fResultsHist = NULL; //!<! example histogram to store some results
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
// Copyright 2019-2020 CERN and copyright holders of ALICE O2.
2+
// See https://alice-o2.web.cern.ch/copyright for details of the copyright holders.
3+
// All rights not expressly granted are reserved.
4+
//
5+
// This software is distributed under the terms of the GNU General Public
6+
// License v3 (GPL Version 3), copied verbatim in the file "COPYING".
7+
//
8+
// In applying this license CERN does not waive the privileges and immunities
9+
// granted to it by virtue of its status as an Intergovernmental Organization
10+
// or submit itself to any jurisdiction.
11+
12+
enum eRecoSim { REC = 0,
13+
SIM = 1 };
14+
enum eBeforeAfter { BEFORE = 0,
15+
AFTER = 1 };
16+
enum eWeights { wPHI = 0,
17+
wPT = 1,
18+
wETA = 2 };
19+
enum eDefaultColors { COLOR = kBlack,
20+
FILLCOLOR = kGray };
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
// Copyright 2019-2020 CERN and copyright holders of ALICE O2.
2+
// See https://alice-o2.web.cern.ch/copyright for details of the copyright holders.
3+
// All rights not expressly granted are reserved.
4+
//
5+
// This software is distributed under the terms of the GNU General Public
6+
// License v3 (GPL Version 3), copied verbatim in the file "COPYING".
7+
//
8+
// In applying this license CERN does not waive the privileges and immunities
9+
// granted to it by virtue of its status as an Intergovernmental Organization
10+
// or submit itself to any jurisdiction.
11+
12+
const Int_t gWeights = 3; // phi, pt, eta

0 commit comments

Comments
 (0)