3636#include " TableHelper.h"
3737#include " pidTPCBase.h"
3838
39+ #include " Common/CCDB/ctpRateFetcher.h"
3940#include " Common/Core/PID/TPCPIDResponse.h"
4041#include " Common/DataModel/EventSelection.h"
4142#include " Common/DataModel/Multiplicity.h"
4243#include " Common/DataModel/PIDResponseTPC.h"
43- #include " Common/CCDB/ctpRateFetcher.h"
4444#include " Tools/ML/model.h"
4545
4646#include " CCDB/BasicCCDBManager.h"
5151#include " Framework/runDataProcessing.h"
5252#include " ReconstructionDataFormats/Track.h"
5353
54-
5554namespace o2 ::aod
5655{
5756namespace pid
@@ -61,7 +60,7 @@ struct pidTPCProducts : o2::framework::ProducesGroup {
6160 o2::framework::Produces<aod::DEdxsCorrected> dEdxCorrected;
6261 o2::framework::Produces<aod::PIDMults> mult;
6362
64- // Tables produced by TPC component
63+ // Tables produced by TPC component
6564 o2::framework::Produces<o2::aod::pidTPCFullEl> tablePIDFullEl;
6665 o2::framework::Produces<o2::aod::pidTPCFullMu> tablePIDFullMu;
6766 o2::framework::Produces<o2::aod::pidTPCFullPi> tablePIDFullPi;
@@ -354,7 +353,7 @@ class pidTPCModule
354353 return ;
355354 }
356355 }
357- } // end init
356+ } // end init
358357
359358 // __________________________________________________
360359 template <typename TCCDB, typename TCCDBApi, typename C, typename M, typename T, typename B>
@@ -490,7 +489,7 @@ class pidTPCModule
490489 }
491490 auto expSignal = response->GetExpectedSignal (trk, pid);
492491 auto expSigma = trk.has_collision () ? response->GetExpectedSigma (collisions.iteratorAt (trk.collisionId ()), multTPC, trk, pid) : 0.07 * expSignal; // use default sigma value of 7% if no collision information to estimate resolution
493- if (expSignal < 0 . || expSigma < 0 .) { // skip if expected signal invalid
492+ if (expSignal < 0 . || expSigma < 0 .) { // skip if expected signal invalid
494493 if (flagFull)
495494 tableFull (-999 .f , -999 .f );
496495 if (flagTiny)
@@ -538,17 +537,17 @@ class pidTPCModule
538537 }
539538
540539 // preparatory step: we need the multiplicities for each collision
541- std::vector<int > pidmults;
540+ std::vector<int > pidmults;
542541 long totalTPCtracks = 0 ;
543542 long totalTPCnotStandalone = 0 ;
544543 pidmults.resize (cols.size (), 0 );
545544
546545 // faster counting
547546 for (const auto & track : tracks) {
548- if (track.hasTPC ()&& track.collisionId ()> -1 ){
547+ if (track.hasTPC () && track.collisionId () > -1 ) {
549548 pidmults[track.collisionId ()]++;
550549 totalTPCtracks++;
551- if (track.hasITS ()|| track.hasTOF ()|| track.hasTRD ()){
550+ if (track.hasITS () || track.hasTOF () || track.hasTRD ()) {
552551 totalTPCnotStandalone++;
553552 }
554553 }
@@ -594,11 +593,11 @@ class pidTPCModule
594593 uint64_t count_tracks = 0 ;
595594
596595 for (auto const & trk : tracks) {
597- // get the TPC signal to be used in the PID
598- float tpcSignalToEvaluatePID = trk.tpcSignal ();
596+ // get the TPC signal to be used in the PID
597+ float tpcSignalToEvaluatePID = trk.tpcSignal ();
599598
600599 // if corrected dE/dx is requested, correct it here on the spot and use that
601- if (pidTPCopts.useCorrecteddEdx ){
600+ if (pidTPCopts.useCorrecteddEdx ) {
602601 double hadronicRate;
603602 int multTPC;
604603 int occupancy;
@@ -658,7 +657,7 @@ class pidTPCModule
658657 // change the signal used for PID
659658 tpcSignalToEvaluatePID = fTPCSignal / fTPCSignalN_CR1 ;
660659
661- if (pidTPCopts.savedEdxsCorrected ){
660+ if (pidTPCopts.savedEdxsCorrected ) {
662661 // populated cursor if requested or autodetected
663662 products.dEdxCorrected (tpcSignalToEvaluatePID);
664663 }
@@ -686,7 +685,7 @@ class pidTPCModule
686685 response->PrintAll ();
687686 }
688687
689- // if this is a MC process function, go for MC tune on data processing
688+ // if this is a MC process function, go for MC tune on data processing
690689 if constexpr (soa::is_table<TMCParticles>) {
691690 // Perform TuneOnData sampling for MC dE/dx
692691 float mcTunedTPCSignal = 0 .;
0 commit comments