@@ -238,14 +238,14 @@ struct TableMakerMC {
238238 std::map<uint32_t , uint32_t > fMftIndexMap ; // key: MFT tracklet global index, value: new MFT tracklet global index
239239
240240 std::map<uint32_t , bool > fBestMatch ;
241- std::unordered_map<int64_t ,int32_t > map_mfttrackcovs;
241+ std::unordered_map<int64_t , int32_t > map_mfttrackcovs;
242242
243243 void init (o2::framework::InitContext& context)
244244 {
245245 // Check whether barrel or muon are enabled
246246 bool isProcessBCenabled = context.mOptions .get <bool >(" processPP" );
247247 bool isBarrelEnabled = (context.mOptions .get <bool >(" processPP" ) || context.mOptions .get <bool >(" processPPBarrelOnly" ) || context.mOptions .get <bool >(" processPbPbBarrelOnly" ) || context.mOptions .get <bool >(" processPbPbWithFilterBarrelOnly" ));
248- bool isMuonEnabled = (context.mOptions .get <bool >(" processPP" ) || context.mOptions .get <bool >(" processPPMuonOnlyBasic" ) || context.mOptions .get <bool >(" processPPMuonOnly" ) || context.mOptions .get <bool >(" processPPRealignedMuonOnly" ) || context.mOptions .get <bool >(" processPbPbMuonOnly" ) || context.mOptions .get <bool >(" processPbPbRealignedMuonOnly" )) ||context.mOptions .get <bool >(" processPPMuonRefit" );
248+ bool isMuonEnabled = (context.mOptions .get <bool >(" processPP" ) || context.mOptions .get <bool >(" processPPMuonOnlyBasic" ) || context.mOptions .get <bool >(" processPPMuonOnly" ) || context.mOptions .get <bool >(" processPPRealignedMuonOnly" ) || context.mOptions .get <bool >(" processPbPbMuonOnly" ) || context.mOptions .get <bool >(" processPbPbRealignedMuonOnly" )) || context.mOptions .get <bool >(" processPPMuonRefit" );
249249 // Make sure at least one process function is enabled
250250 if (!(isProcessBCenabled || isBarrelEnabled || isMuonEnabled)) {
251251 LOG (fatal) << " No process function was enabled for TableMakerMC. Check it out!!!" ;
@@ -944,12 +944,12 @@ struct TableMakerMC {
944944 }
945945 auto mfttrack = muon.template matchMFTTrack_as <TMFTTracks>();
946946 VarManager::FillTrackCollision<TMuonFillMap>(muontrack, collision);
947- if constexpr (static_cast <bool >(TMFTFillMap & VarManager::ObjTypes::MFTCov)) {
948- auto const & mfttrackcov = mfCovs.rawIteratorAt (map_mfttrackcovs[mfttrack.globalIndex ()]);
947+ if constexpr (static_cast <bool >(TMFTFillMap & VarManager::ObjTypes::MFTCov)) {
948+ auto const & mfttrackcov = mfCovs.rawIteratorAt (map_mfttrackcovs[mfttrack.globalIndex ()]);
949949 VarManager::FillGlobalMuonRefitCov<TMuonFillMap, TMFTFillMap>(muontrack, mfttrack, collision, mfttrackcov);
950- } else {
950+ } else {
951951 VarManager::FillGlobalMuonRefit<TMuonFillMap, TMFTFillMap>(muontrack, mfttrack, collision);
952- }
952+ }
953953 } else {
954954 VarManager::FillTrackCollision<TMuonFillMap>(muon, collision);
955955 }
@@ -1072,12 +1072,12 @@ struct TableMakerMC {
10721072 auto mfttrack = muon.template matchMFTTrack_as <TMFTTracks>();
10731073 globalClusters += mfttrack.nClusters ();
10741074 VarManager::FillTrackCollision<TMuonFillMap>(muontrack, collision);
1075- if constexpr (static_cast <bool >(TMFTFillMap & VarManager::ObjTypes::MFTCov)) {
1076- auto const & mfttrackcov = mfCovs.rawIteratorAt (map_mfttrackcovs[mfttrack.globalIndex ()]);
1075+ if constexpr (static_cast <bool >(TMFTFillMap & VarManager::ObjTypes::MFTCov)) {
1076+ auto const & mfttrackcov = mfCovs.rawIteratorAt (map_mfttrackcovs[mfttrack.globalIndex ()]);
10771077 VarManager::FillGlobalMuonRefitCov<TMuonFillMap, TMFTFillMap>(muontrack, mfttrack, collision, mfttrackcov);
1078- } else {
1078+ } else {
10791079 VarManager::FillGlobalMuonRefit<TMuonFillMap, TMFTFillMap>(muontrack, mfttrack, collision);
1080- }
1080+ }
10811081 } else {
10821082 VarManager::FillTrackCollision<TMuonFillMap>(muon, collision);
10831083 }
@@ -1189,7 +1189,7 @@ struct TableMakerMC {
11891189 }
11901190
11911191 if constexpr (static_cast <bool >(TMFTFillMap & VarManager::ObjTypes::MFTCov)) {
1192- for (auto & mfttrackConv : mftCovs) {
1192+ for (auto & mfttrackConv : mftCovs) {
11931193 map_mfttrackcovs[mfttrackConv.matchMFTTrackId ()] = mfttrackConv.globalIndex ();
11941194 }
11951195 }
@@ -1213,11 +1213,11 @@ struct TableMakerMC {
12131213 if (fConfigVariousOptions .fKeepBestMatch ) {
12141214 skimBestMuonMatches (muons);
12151215 }
1216- if constexpr (static_cast <bool >(TMFTFillMap & VarManager::ObjTypes::MFTCov)) {
1216+ if constexpr (static_cast <bool >(TMFTFillMap & VarManager::ObjTypes::MFTCov)) {
12171217 skimMuons<TMuonFillMap, TMFTFillMap>(collision, muons, groupedMuonIndices, mcParticles, mftTracks, mftCovs);
1218- } else {
1218+ } else {
12191219 skimMuons<TMuonFillMap, TMFTFillMap>(collision, muons, groupedMuonIndices, mcParticles, mftTracks, nullptr );
1220- }
1220+ }
12211221 } else {
12221222 auto groupedMuonIndices = fwdTrackAssocs.sliceBy (fwdtrackIndicesPerCollision, origIdx);
12231223 skimMuons<TMuonFillMap, 0u >(collision, muons, groupedMuonIndices, mcParticles, nullptr , nullptr );
@@ -1396,9 +1396,9 @@ struct TableMakerMC {
13961396 }
13971397
13981398 void processPPMuonRefit (MyEventsWithMults const & collisions, aod::BCsWithTimestamps const & bcs,
1399- MyMuonsWithCov const & tracksMuon, MFTTrackLabeled const & mftTracks,
1400- aod::FwdTrackAssoc const & fwdTrackAssocs, aod::MFTTrackAssoc const & mftAssocs,
1401- aod::McCollisions const & mcCollisions, aod::McParticles const & mcParticles, aod::MFTTracksCov const & mftCovs)
1399+ MyMuonsWithCov const & tracksMuon, MFTTrackLabeled const & mftTracks,
1400+ aod::FwdTrackAssoc const & fwdTrackAssocs, aod::MFTTrackAssoc const & mftAssocs,
1401+ aod::McCollisions const & mcCollisions, aod::McParticles const & mcParticles, aod::MFTTracksCov const & mftCovs)
14021402 {
14031403 fullSkimming<gkEventFillMapWithMults, 0u , gkMuonFillMapWithCov, gkMFTCovFillMap>(collisions, bcs, nullptr , tracksMuon, mftTracks, nullptr , fwdTrackAssocs, mftAssocs, mcCollisions, mcParticles, mftCovs);
14041404 }
0 commit comments