Skip to content

Commit 4f0385a

Browse files
author
Ankur Yadav
committed
TPC: make Kr-83m calibration SpecialPhysicsCuts threshold configurable
1 parent 64888bd commit 4f0385a

2 files changed

Lines changed: 6 additions & 4 deletions

File tree

Detectors/TPC/base/include/TPCBase/ParameterDetector.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ struct ParameterDetector : public o2::conf::ConfigurableParamHelper<ParameterDet
3434
float DriftTimeOffset = 7.3; ///< drift time offset in time bins (we observe ~2.4\mus before October 2023 and ~1.45 \mus after)
3535
bool ExcludeFCGap = true; ///< exclude electrons created in the gap between the IFC vessel and OFC vessel and FC strips
3636
bool UseGeant4Edep = false; ///< use Geant4 energy deposit directly for ionisation (for Kr-83m calibration runs)
37+
float SpecialCutsGeV = 1e-6f; ///< CUTELE/CUTGAM/DCUTE/BCUTE applied to TPC drift-gas media by SetSpecialPhysicsCuts() when UseGeant4Edep is set (Kr-83m calibration isolation test); default 1e-6 GeV (1 keV) matches the prior hardcoded value
3738

3839
O2ParamDef(ParameterDetector, "TPCDetParam");
3940
};

Detectors/TPC/simulation/src/Detector.cxx

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3258,11 +3258,12 @@ void Detector::SetSpecialPhysicsCuts()
32583258
LOG(info) << "TPC SetSpecialPhysicsCuts: UseGeant4Edep=" << detParam.UseGeant4Edep;
32593259
if (detParam.UseGeant4Edep) {
32603260
auto& matmgr = o2::base::MaterialManager::Instance();
3261+
const float specialCut = detParam.SpecialCutsGeV;
32613262
for (int med : {(int)kDriftGas1, (int)kDriftGas2, (int)kCO2}) {
3262-
matmgr.SpecialCut(GetName(), med, o2::base::ECut::kCUTELE, 1e-6f);
3263-
matmgr.SpecialCut(GetName(), med, o2::base::ECut::kCUTGAM, 1e-6f);
3264-
matmgr.SpecialCut(GetName(), med, o2::base::ECut::kDCUTE, 1e-6f);
3265-
matmgr.SpecialCut(GetName(), med, o2::base::ECut::kBCUTE, 1e-6f);
3263+
matmgr.SpecialCut(GetName(), med, o2::base::ECut::kCUTELE, specialCut);
3264+
matmgr.SpecialCut(GetName(), med, o2::base::ECut::kCUTGAM, specialCut);
3265+
matmgr.SpecialCut(GetName(), med, o2::base::ECut::kDCUTE, specialCut);
3266+
matmgr.SpecialCut(GetName(), med, o2::base::ECut::kBCUTE, specialCut);
32663267
}
32673268
}
32683269
o2::base::Detector::SetSpecialPhysicsCuts();

0 commit comments

Comments
 (0)