Skip to content

Commit 0f37bed

Browse files
committed
TPC_MC_anchoring_simple: Added per region relative gas gain to simulate the change in the voltage settings of GEMs
1 parent 1cd002b commit 0f37bed

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ struct ParameterGEM : public o2::conf::ConfigurableParamHelper<ParameterGEM> {
5454
float AbsoluteGain[4] = {14.f, 8.f, 53.f, 240.f}; ///< Absolute gain
5555
float CollectionEfficiency[4] = {1.f, 0.2f, 0.25f, 1.f}; ///< Collection efficiency
5656
float ExtractionEfficiency[4] = {0.65f, 0.55f, 0.12f, 0.6f}; ///< Extraction efficiency
57+
float RelativeGainStack[4] = {1.f, 1.f, 1.f, 1.f}; ///< Relative gain of the stack per region (IROC, OROC1, OROC2, OROC3) for the EffectiveMode
5758
float TotalGainStack = 2000.f; ///< Total gain of the stack for the EffectiveMode
5859
float KappaStack = 1.205f; ///< Variable steering the energy resolution of the full stack for the EffectiveMode
5960
float EfficiencyStack = 0.528f; ///< Variable steering the single electron efficiency of the full stack for the EffectiveMode

Detectors/TPC/simulation/include/TPCSimulation/GEMAmplification.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,8 +118,10 @@ inline int GEMAmplification::getStackAmplification(const CRU& cru, const PadPos&
118118
break;
119119
}
120120
case AmplificationMode::EffectiveMode: {
121+
const int region = static_cast<int>(cru.gemStack());
122+
const float relativeGain = mGEMParam->RelativeGainStack[region];
121123
return static_cast<int>(static_cast<float>(getEffectiveStackAmplification(nElectrons)) *
122-
mGainMap->getValue(cru, pos.getRow(), pos.getPad()));
124+
mGainMap->getValue(cru, pos.getRow(), pos.getPad()) * relativeGain);
123125
break;
124126
}
125127
}

0 commit comments

Comments
 (0)