Skip to content

Commit e4c085b

Browse files
atrioloalibuild
andauthored
Adding ITS Efficiency study (AliceO2Group#13600)
* Adding ITS efficiency study * ITS Efficiency study: Separating studies per layer and adding 2D efficiency plots * ITS Efficiency study: adding method to calculate the efficiency in data. Changed way to calculate phi. Updating phi cuts. * ITS efficiency study: Added saveDataInfo() to save pt eta and phi for data. Trying with B=0 Added chi2 cut in MC and data * Please consider the following formatting changes * Please consider the following formatting changes --------- Co-authored-by: ALICE Action Bot <[email protected]>
1 parent 4618fcc commit e4c085b

File tree

7 files changed

+2965
-19
lines changed

7 files changed

+2965
-19
lines changed

Detectors/ITSMFT/ITS/postprocessing/studies/CMakeLists.txt

Lines changed: 19 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -10,23 +10,24 @@
1010
# or submit itself to any jurisdiction.
1111

1212
o2_add_library(ITSPostprocessing
13-
SOURCES src/ImpactParameter.cxx
14-
src/AvgClusSize.cxx
15-
src/PIDStudy.cxx
16-
src/ITSStudiesConfigParam.cxx
17-
src/AnomalyStudy.cxx
18-
src/TrackCheck.cxx
19-
src/TrackExtension.cxx
20-
src/Helpers.cxx
21-
PUBLIC_LINK_LIBRARIES O2::GlobalTracking
22-
O2::GlobalTrackingWorkflowReaders
23-
O2::GlobalTrackingWorkflowHelpers
24-
O2::DataFormatsGlobalTracking
25-
O2::DetectorsVertexing
26-
O2::DetectorsBase)
13+
SOURCES src/ImpactParameter.cxx
14+
src/AvgClusSize.cxx
15+
src/PIDStudy.cxx
16+
src/ITSStudiesConfigParam.cxx
17+
src/AnomalyStudy.cxx
18+
src/TrackCheck.cxx
19+
src/TrackExtension.cxx
20+
src/Efficiency.cxx
21+
src/Helpers.cxx
22+
PUBLIC_LINK_LIBRARIES O2::GlobalTracking
23+
O2::GlobalTrackingWorkflowReaders
24+
O2::GlobalTrackingWorkflowHelpers
25+
O2::DataFormatsGlobalTracking
26+
O2::DetectorsVertexing
27+
O2::DetectorsBase)
2728

2829
o2_target_root_dictionary(ITSPostprocessing
29-
HEADERS include/ITSStudies/ITSStudiesConfigParam.h
30-
include/ITSStudies/TrackCuts.h
31-
include/ITSStudies/TrackMethods.h
32-
LINKDEF src/ITSStudiesLinkDef.h)
30+
HEADERS include/ITSStudies/ITSStudiesConfigParam.h
31+
include/ITSStudies/TrackCuts.h
32+
include/ITSStudies/TrackMethods.h
33+
LINKDEF src/ITSStudiesLinkDef.h)
Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
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+
#ifndef O2_EFFICIENCY_STUDY_H
13+
#define O2_EFFICIENCY_STUDY_H
14+
15+
#include "Framework/DataProcessorSpec.h"
16+
#include "ReconstructionDataFormats/GlobalTrackID.h"
17+
18+
namespace o2
19+
{
20+
namespace steer
21+
{
22+
class MCKinematicsReader;
23+
}
24+
namespace its
25+
{
26+
namespace study
27+
{
28+
using mask_t = o2::dataformats::GlobalTrackID::mask_t;
29+
o2::framework::DataProcessorSpec getEfficiencyStudy(mask_t srcTracksMask, mask_t srcClustersMask, bool useMC, std::shared_ptr<o2::steer::MCKinematicsReader> kineReader);
30+
31+
////// phi cuts for B=0
32+
float mPhiCutsL0[10][2] = {{-122.5, -122}, {-91.8, -91.7}, {-61, -60}, {-30.1, -29.8}, {30, 30.2}, {59, 59.5}, {88, 89}, {117, 118.5}, {147, 147.8}, {176.5, 176.6}};
33+
float mPhiCutsL1[12][2] = {{-137, -136.5}, {-114, -113.5}, {-91.5, -91}, {-68.5, -68}, {-45.6, -45.4}, {-23.1, -22.9}, {45.4, 45.6}, {67.4, 67.6}, {89.4, 89.6}, {110.4, 110.6}, {132.4, 132.6}, {154.4, 154.6}};
34+
float mPhiCutsL2[17][2] = {{-162.85, -162.65}, {-145, -144.5}, {-127, -126.5}, {-109, -108.5}, {-91, -90.5}, {-73, -72.5}, {-55.1, -54.9}, {-37.35, -37.15}, {-19.5, -19}, {36.8, 37}, {54.4, 54.6}, {71.9, 72.1}, {89, 89.5}, {106.4, 106.6}, {123.65, 123.85}, {141.4, 141.6}, {158.9, 159.1}};
35+
36+
float mEtaCuts[2] = {-1.0, 1.0};
37+
// float mPtCuts[2] = {1, 4.5}; //// for B=5
38+
float mPtCuts[2] = {0, 10}; /// no cut for B=0
39+
int mChi2cut = 100;
40+
41+
// values obtained from the dca study for B=5
42+
// float dcaXY[3] = {-0.000326, -0.000217, -0.000187};
43+
// float dcaZ[3] = {0.000020, -0.000004, 0.000032};
44+
// float sigmaDcaXY[3] = {0.001375, 0.001279, 0.002681};
45+
// float sigmaDcaZ[3] = {0.002196, 0.002083, 0.004125};
46+
47+
// values obtained from the dca study for B=0
48+
float dcaXY[3] = {-0.000328, -0.000213, -0.000203};
49+
float dcaZ[3] = {-0.000000543, -0.000013, 0.000001};
50+
float sigmaDcaXY[3] = {0.00109, 0.000895, 0.001520};
51+
float sigmaDcaZ[3] = {0.001366, 0.001149, 0.001868};
52+
53+
int dcaCut = 8;
54+
55+
float mDCACutsXY[3][2] = {{dcaXY[0] - dcaCut * sigmaDcaXY[0], dcaXY[0] + dcaCut* sigmaDcaXY[0]}, {dcaXY[1] - dcaCut * sigmaDcaXY[1], dcaXY[1] + dcaCut* sigmaDcaXY[1]}, {dcaXY[2] - dcaCut * sigmaDcaXY[2], dcaXY[2] + dcaCut* sigmaDcaXY[2]}}; // cuts at 8 sigma for each layer for xy. The values represent m-8sigma and m+8sigma
56+
float mDCACutsZ[3][2] = {{dcaZ[0] - dcaCut * sigmaDcaZ[0], dcaZ[0] + dcaCut* sigmaDcaZ[0]}, {dcaZ[1] - dcaCut * sigmaDcaZ[1], dcaZ[1] + dcaCut* sigmaDcaZ[1]}, {dcaZ[2] - dcaCut * sigmaDcaZ[2], dcaZ[2] + dcaCut* sigmaDcaZ[2]}};
57+
58+
} // namespace study
59+
} // namespace its
60+
} // namespace o2
61+
#endif

Detectors/ITSMFT/ITS/postprocessing/studies/include/ITSStudies/ITSStudiesConfigParam.h

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,13 @@ struct AnomalyStudyParamConfig : public o2::conf::ConfigurableParamHelper<Anomal
9494
O2ParamDef(AnomalyStudyParamConfig, "AnomalyStudyParam");
9595
};
9696

97+
struct ITSEfficiencyParamConfig : public o2::conf::ConfigurableParamHelper<ITSEfficiencyParamConfig> {
98+
std::string outFileName = "ITS_efficiencyStudy.root";
99+
double b = 0; // Solenoid field in kG (+/-)
100+
101+
O2ParamDef(ITSEfficiencyParamConfig, "ITSEfficiencyParam");
102+
};
103+
97104
struct ITSImpactParameterParamConfig : public o2::conf::ConfigurableParamHelper<ITSImpactParameterParamConfig> {
98105
std::string outFileName = "its_ImpParameter.root";
99106
int minNumberOfContributors = 0;

0 commit comments

Comments
 (0)