@@ -122,13 +122,13 @@ struct TreeCreatorPidTpcQa {
122122 int mEnabledParticles {0 };
123123 int mProcessedParticles {0 };
124124
125- template <o2::track::PID ::ID Id >
125+ template <o2::track::PID ::ID ParticleId >
126126 bool initPerParticle ()
127127 {
128- static_assert (Id >= 0 && Id <= PID ::Alpha && " Particle index outside limits" );
128+ static_assert (ParticleId >= 0 && ParticleId <= PID ::Alpha && " Particle index outside limits" );
129129 int enabledProcesses{0 };
130130
131- switch (Id ) {
131+ switch (ParticleId ) {
132132#define INIT_PARTICLE (ParticleNameShort, ParticleNameLong ) \
133133 case PID ::ParticleNameLong: \
134134 if (!doprocess##ParticleNameLong && !doprocessFull##ParticleNameLong && !doprocessFullWithTOF##ParticleNameLong) { \
@@ -157,8 +157,8 @@ struct TreeCreatorPidTpcQa {
157157
158158 void init (o2::framework::InitContext&)
159159 {
160- static_for<0 , PID ::Alpha>([&](auto Id ) {
161- mEnabledParticles += static_cast <int >(initPerParticle<Id >());
160+ static_for<0 , PID ::Alpha>([&](auto ParticleId ) {
161+ mEnabledParticles += static_cast <int >(initPerParticle<ParticleId >());
162162 });
163163
164164 ccdb->setURL (" http://alice-ccdb.cern.ch" );
@@ -172,7 +172,7 @@ struct TreeCreatorPidTpcQa {
172172 }
173173 }
174174
175- template <o2::track::PID ::ID Id , bool IsFullTable, bool IsTofTable, typename TrackType>
175+ template <o2::track::PID ::ID ParticleId , bool IsFullTable, bool IsTofTable, typename TrackType>
176176 void processSingleParticle (CollisionsExtra const & collisions,
177177 TrackType const & tracks)
178178 {
@@ -211,20 +211,20 @@ struct TreeCreatorPidTpcQa {
211211 isGoodTrack &= track.hasTPC ();
212212 isGoodTrack &= (track.tpcNClsFound () >= cutMinTPCNcls);
213213
214- const float rapidity = track.rapidity (PID::getMass (Id ));
214+ const float rapidity = track.rapidity (PID::getMass (ParticleId ));
215215 const float momentum = track.p ();
216216 const float nClNormalized = std::sqrt (nClNorm / track.tpcNClsFound ());
217217 const float nclPID = static_cast <float >(track.tpcNClsPID ());
218218 const float phi = track.phi ();
219219 const float tgl = track.tgl ();
220220 const float tpcInnerParam = track.tpcInnerParam ();
221221 const float signed1Pt = track.signed1Pt ();
222- const float nSigmaTpc = o2::aod::pidutils::tpcNSigma<Id >(track);
222+ const float nSigmaTpc = o2::aod::pidutils::tpcNSigma<ParticleId >(track);
223223
224224 isGoodTrack &= (std::fabs (rapidity) <= cutRapidity);
225- isGoodTrack &= (tpcInnerParam >= *cutTpcInnerParameterMin.at (Id ));
226- isGoodTrack &= (tpcInnerParam <= *cutTpcInnerParameterMax.at (Id ));
227- isGoodTrack &= (std::fabs (nSigmaTpc) <= *cutNSigmaTpcAbs.at (Id ));
225+ isGoodTrack &= (tpcInnerParam >= *cutTpcInnerParameterMin.at (ParticleId ));
226+ isGoodTrack &= (tpcInnerParam <= *cutTpcInnerParameterMax.at (ParticleId ));
227+ isGoodTrack &= (std::fabs (nSigmaTpc) <= *cutNSigmaTpcAbs.at (ParticleId ));
228228
229229 if (!isGoodTrack) {
230230 continue ;
@@ -235,18 +235,18 @@ struct TreeCreatorPidTpcQa {
235235 float expSigma{UndefValueFloat};
236236
237237 if constexpr (IsFullTable) {
238- dedxDiff = o2::aod::pidutils::tpcExpSignalDiff<Id >(track);
238+ dedxDiff = o2::aod::pidutils::tpcExpSignalDiff<ParticleId >(track);
239239 dedxExpected = track.tpcSignal () - dedxDiff;
240- expSigma = o2::aod::pidutils::tpcExpSigma<Id >(track);
240+ expSigma = o2::aod::pidutils::tpcExpSigma<ParticleId >(track);
241241 }
242242
243243 float nSigmaTof{UndefValueFloat};
244244
245245 if constexpr (IsTofTable) {
246- nSigmaTof = o2::aod::pidutils::tofNSigma<Id >(track);
246+ nSigmaTof = o2::aod::pidutils::tofNSigma<ParticleId >(track);
247247 }
248248
249- rowPidTpcQa (isGoodRctEvent, Id , ft0Occ, hadronicRate, multTPC, nClNormalized, nclPID, phi, tgl, tpcInnerParam, rapidity, momentum, signed1Pt, nSigmaTpc, dedxExpected, dedxDiff, expSigma, nSigmaTof);
249+ rowPidTpcQa (isGoodRctEvent, ParticleId , ft0Occ, hadronicRate, multTPC, nClNormalized, nclPID, phi, tgl, tpcInnerParam, rapidity, momentum, signed1Pt, nSigmaTpc, dedxExpected, dedxDiff, expSigma, nSigmaTof);
250250 } // tracksFromCollision
251251 } // collisions
252252 ++mProcessedParticles ;
0 commit comments