@@ -48,7 +48,6 @@ using namespace o2::constants::physics;
4848struct SginclusivePhiKstarSD {
4949 SGSelector sgSelector;
5050 Service<o2::framework::O2DatabasePDG> pdg;
51- Configurable<int > verbosity{" verbosity" , 0 , " Determines level of verbosity" };
5251
5352 HistogramRegistry registry{" registry" , {}, OutputObjHandlingPolicy::AnalysisObject, true , true };
5453
@@ -287,6 +286,8 @@ struct SginclusivePhiKstarSD {
287286 registry.add (" MC/genM_1" , " Generated events; Mass (GeV/c^2)" , {HistType::kTH1F , {{220 , 0.98 , 1.2 }}});
288287
289288 registry.add (" MC/accMPtRap_phi_G" , " Generated Phi; Mass (GeV/c^2); Pt (GeV/c)" , {HistType::kTH3F , {{220 , 0.98 , 1.20 }, {200 , 0.0 , 10.0 }, {60 , -1.5 , 1.5 }}});
289+ registry.add (" MC/accMPtRap_phi_T" , " Reconstrcted Phi; Mass (GeV/c^2); Pt (GeV/c)" , {HistType::kTH3F , {{220 , 0.98 , 1.20 }, {200 , 0.0 , 10.0 }, {60 , -1.5 , 1.5 }}});
290+
290291 registry.add (" MC/accEtaPt" , " Generated events in acceptance; eta (1); Pt (GeV/c)" , {HistType::kTH2F , {{60 , -1.5 , 1.5 }, {250 , 0.0 , 5.0 }}});
291292 registry.add (" MC/accRap" , " Generated events in acceptance; Rapidity (1)" , {HistType::kTH1F , {{60 , -1.5 , 1.5 }}});
292293 registry.add (" MC/accMPt" , " Generated events in acceptance; Mass (GeV/c^2); Pt (GeV/c)" , {HistType::kTH2F , {{220 , 0.98 , 1.20 }, {200 , 0.0 , 10.0 }}});
@@ -298,6 +299,7 @@ struct SginclusivePhiKstarSD {
298299 registry.add (" MC/pDiff" , " McTruth - reconstructed track momentum; McTruth - reconstructed track momentum; Entries" , {HistType::kTH2F , {{240 , -6 ., 6 .}, {3 , -1.5 , 1.5 }}});
299300 // K*0
300301 registry.add (" MC/accMPtRap_kstar_G" , " Generated K*0; Mass (GeV/c^2); Pt (GeV/c)" , {HistType::kTH3F , {{400 , 0 ., 2.0 }, {200 , 0.0 , 10.0 }, {60 , -1.5 , 1.5 }}});
302+ registry.add (" MC/accMPtRap_kstar_T" , " Reconstructed K*0; Mass (GeV/c^2); Pt (GeV/c)" , {HistType::kTH3F , {{400 , 0 ., 2.0 }, {200 , 0.0 , 10.0 }, {60 , -1.5 , 1.5 }}});
301303 registry.add (" MC/genEtaPt_k" , " Generated events; eta (1); Pt (GeV/c)" , {HistType::kTH2F , {{60 , -1.5 , 1.5 }, {250 , 0.0 , 5.0 }}});
302304 registry.add (" MC/genRap_k" , " Generated events; Rapidity (1)" , {HistType::kTH1F , {{60 , -1.5 , 1.5 }}});
303305 registry.add (" MC/genMPt_k" , " Generated events; Mass (GeV/c^2); Pt (GeV/c)" , {HistType::kTH2F , {{400 , 0 ., 2.0 }, {200 , 0.0 , 10.0 }}});
@@ -1165,9 +1167,6 @@ struct SginclusivePhiKstarSD {
11651167 void processMCTruth (aod::UDMcCollisions const & mccollisions, CCs const & collisions, aod::UDMcParticles const & McParts, TCs const & tracks)
11661168 {
11671169 // number of McCollisions in DF
1168- if (verbosity > 0 ) {
1169- LOGF (info, " Number of MC collisions %d" , mccollisions.size ());
1170- }
11711170 TLorentzVector v0;
11721171 TLorentzVector v1;
11731172 TLorentzVector v01;
@@ -1184,9 +1183,6 @@ struct SginclusivePhiKstarSD {
11841183 // get McParticles which belong to mccollision
11851184 auto partSlice = McParts.sliceBy (partPerMcCollision, mccollision.globalIndex ());
11861185 registry.get <TH1>(HIST (" MC/nParts" ))->Fill (partSlice.size (), 1 .);
1187- if (verbosity > 0 ) {
1188- LOGF (info, " Number of McParts %d" , partSlice.size ());
1189- }
11901186 for (const auto & [tr1, tr2] : combinations (partSlice, partSlice)) {
11911187 if ((tr1.pdgCode () == kKPlus && tr2.pdgCode () == kPiMinus ) || (tr1.pdgCode () == kKMinus && tr2.pdgCode () == kPiPlus ) || (tr1.pdgCode () == kPiPlus && tr2.pdgCode () == kKMinus ) || (tr1.pdgCode () == kPiMinus && tr2.pdgCode () == kKPlus )) {
11921188 if (std::abs (tr1.pdgCode ()) == kKPlus ) {
@@ -1287,30 +1283,18 @@ struct SginclusivePhiKstarSD {
12871283 auto pPart = std::sqrt (McPart.px () * McPart.px () + McPart.py () * McPart.py () + McPart.pz () * McPart.pz ());
12881284 auto pDiff = pTrack - pPart;
12891285 registry.get <TH2>(HIST (" MC/pDiff" ))->Fill (pDiff, track.isPVContributor (), 1 .);
1290- if (verbosity > 0 ) {
1291- LOGF (info, " PID: %d Generated: %d Process: %d PV contributor: %d dP: %f" , McPart.pdgCode (), McPart.producedByGenerator (), McPart.getProcess (), track.isPVContributor (), pDiff);
1292- }
12931286 }
12941287 } else {
12951288 registry.get <TH2>(HIST (" MC/pDiff" ))->Fill (-5.9 , -1 , 1 .);
1296- if (verbosity > 0 ) {
1297- LOGF (info, " PID: %d Generated: %d Process: %d PV contributor: No dP: nan" , McPart.pdgCode (), McPart.producedByGenerator (), McPart.getProcess ());
1298- }
12991289 }
13001290 }
1301- if (verbosity > 0 ) {
1302- LOGF (info, " " );
1303- }
13041291 }
13051292 }
13061293 PROCESS_SWITCH (SginclusivePhiKstarSD, processMCTruth, " Process MC truth" , true );
13071294 // ...............................................................................................................
13081295 void processReco (CC const & collision, TCs const & tracks, aod::UDMcCollisions const & /* mccollisions*/ , aod::UDMcParticles const & /* McParts*/ )
13091296 {
13101297 // number of McCollisions in DF
1311- if (verbosity > 0 ) {
1312- LOGF (info, " Number of MC collisions %d" , collision.size ());
1313- }
13141298 float fitCut[5 ] = {fv0Cut, ft0aCut, ft0cCut, fddaCut, fddcCut};
13151299 std::vector<float > parameters = {pvCut, dcazCut, dcaxyCut, tpcChi2Cut, tpcNClsFindableCut, itsChi2Cut, etaCut, ptCut};
13161300 int truegapSide = sgSelector.trueGap (collision, fitCut[0 ], fitCut[1 ], fitCut[2 ], zdcCut);
@@ -1511,10 +1495,6 @@ struct SginclusivePhiKstarSD {
15111495 if (collision.has_udMcCollision ()) {
15121496 // auto mccollision = collision.udMcCollision();
15131497 registry.get <TH1>(HIST (" Reco/Stat" ))->Fill (3 ., 1 .);
1514- } else {
1515- if (verbosity > 0 ) {
1516- LOGF (info, " This collision has no associated McCollision" );
1517- }
15181498 }
15191499 // compute the difference between generated and reconstructed momentum
15201500 for (const auto & track : tracks) {
@@ -1525,19 +1505,10 @@ struct SginclusivePhiKstarSD {
15251505 auto pPart = std::sqrt (mcPart.px () * mcPart.px () + mcPart.py () * mcPart.py () + mcPart.pz () * mcPart.pz ());
15261506 auto pDiff = pTrack - pPart;
15271507 registry.get <TH2>(HIST (" Reco/pDiff" ))->Fill (pDiff, track.isPVContributor (), 1 .);
1528- if (verbosity > 0 ) {
1529- LOGF (info, " PID: %d Generated: %d Process: %d PV contributor: %d dP: %f" , mcPart.pdgCode (), mcPart.producedByGenerator (), mcPart.getProcess (), track.isPVContributor (), pDiff);
1530- }
15311508 } else {
15321509 registry.get <TH2>(HIST (" Reco/pDiff" ))->Fill (-5.9 , -1 , 1 .);
1533- if (verbosity > 0 ) {
1534- LOGF (info, " This track has no associated McParticle" );
1535- }
15361510 }
15371511 }
1538- if (verbosity > 0 ) {
1539- LOGF (info, " " );
1540- }
15411512 }
15421513 PROCESS_SWITCH (SginclusivePhiKstarSD, processReco, " Process reconstructed data" , true );
15431514};
0 commit comments