Skip to content

Commit d3ad989

Browse files
fmazzascmconcas
andauthored
Add workflow for ITS PID study (#12478)
* Add workflow for ITS PID study * Update author * Update author in the header * Add MC matching + fix output name * Add custom BB resolution * Update PIDStudy.cxx Co-authored-by: Matteo Concas <mconcas@cern.ch> --------- Co-authored-by: Matteo Concas <mconcas@cern.ch>
1 parent 08e4115 commit d3ad989

File tree

7 files changed

+408
-1
lines changed

7 files changed

+408
-1
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
o2_add_library(ITSPostprocessing
1313
SOURCES src/ImpactParameter.cxx
1414
src/AvgClusSize.cxx
15+
src/PIDStudy.cxx
1516
src/ITSStudiesConfigParam.cxx
1617
src/TrackCheck.cxx
1718
src/Helpers.cxx

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

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,15 @@ struct ITSAvgClusSizeParamConfig : public o2::conf::ConfigurableParamHelper<ITSA
7373
O2ParamDef(ITSAvgClusSizeParamConfig, "ITSAvgClusSizeParam");
7474
};
7575

76+
struct PIDStudyParamConfig : public o2::conf::ConfigurableParamHelper<PIDStudyParamConfig> {
77+
std::string outFileName = "its_PIDStudy.root";
78+
// default: average 2023 from C. Sonnabend, Nov 2023: ([0.217553 4.02762 0.00850178 2.33324 0.880904 ])
79+
// to-do: grab from CCDB when available
80+
float mBBpars[5] = {0.217553, 4.02762, 0.00850178, 2.33324, 0.880904};
81+
float mBBres = 0.07; // default: 7% resolution
82+
O2ParamDef(PIDStudyParamConfig, "PIDStudyParam");
83+
};
84+
7685
struct ITSImpactParameterParamConfig : public o2::conf::ConfigurableParamHelper<ITSImpactParameterParamConfig> {
7786
std::string outFileName = "its_ImpParameter.root";
7887
int minNumberOfContributors = 0;
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
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+
/// \file PIDStudy.h
13+
/// \author Francesco Mazzaschi, fmazzasc@cern.ch
14+
15+
#ifndef O2_PID_STUDY_H
16+
#define O2_PID_STUDY_H
17+
18+
#include "Framework/DataProcessorSpec.h"
19+
#include "ReconstructionDataFormats/GlobalTrackID.h"
20+
#include <Steer/MCKinematicsReader.h>
21+
22+
namespace o2
23+
{
24+
namespace its
25+
{
26+
namespace study
27+
{
28+
29+
using mask_t = o2::dataformats::GlobalTrackID::mask_t;
30+
31+
o2::framework::DataProcessorSpec getPIDStudy(mask_t srcTracksMask, mask_t srcClustersMask, bool useMC, std::shared_ptr<o2::steer::MCKinematicsReader> kineReader);
32+
} // namespace study
33+
} // namespace its
34+
} // namespace o2
35+
36+
#endif

Detectors/ITSMFT/ITS/postprocessing/studies/src/ITSStudiesConfigParam.cxx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,12 @@ namespace its
1818
namespace study
1919
{
2020
static auto& sAvgClusSizeParamITS = o2::its::study::ITSAvgClusSizeParamConfig::Instance();
21+
static auto& sPIDStudyParamITS = o2::its::study::PIDStudyParamConfig::Instance();
2122
static auto& sCheckTracksParamsITS = o2::its::study::ITSCheckTracksParamConfig::Instance();
2223
static auto& sImpactParameterParamsITS = o2::its::study::ITSImpactParameterParamConfig::Instance();
2324

2425
O2ParamImpl(o2::its::study::ITSAvgClusSizeParamConfig);
26+
O2ParamImpl(o2::its::study::PIDStudyParamConfig);
2527
O2ParamImpl(o2::its::study::ITSCheckTracksParamConfig);
2628
O2ParamImpl(o2::its::study::ITSImpactParameterParamConfig);
2729

Detectors/ITSMFT/ITS/postprocessing/studies/src/ITSStudiesLinkDef.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,10 @@
1616
#pragma link off all functions;
1717

1818
#pragma link C++ class o2::its::study::ITSAvgClusSizeParamConfig + ;
19+
#pragma link C++ class o2::its::study::PIDStudyParamConfig + ;
1920
#pragma link C++ class o2::its::study::ITSImpactParameterParamConfig + ;
2021
#pragma link C++ class o2::conf::ConfigurableParamHelper < o2::its::study::ITSAvgClusSizeParamConfig> + ;
22+
#pragma link C++ class o2::conf::ConfigurableParamHelper < o2::its::study::PIDStudyParamConfig> + ;
2123
#pragma link C++ class o2::conf::ConfigurableParamHelper < o2::its::study::ITSCheckTracksParamConfig> + ;
2224
#pragma link C++ class o2::conf::ConfigurableParamHelper < o2::its::study::ITSImpactParameterParamConfig> + ;
2325
#pragma link C++ function o2::its::studies::makeLogBinning + ;

0 commit comments

Comments
 (0)