|
8 | 8 | // In applying this license CERN does not waive the privileges and immunities |
9 | 9 | // granted to it by virtue of its status as an Intergovernmental Organization |
10 | 10 | // or submit itself to any jurisdiction. |
11 | | -/// \file phianalysisrun3_PbPb.cxx |
| 11 | + |
| 12 | +/// \file phianalysisrun3pbpb.cxx |
12 | 13 | /// \brief Code for phi resonance without resonance initializer |
13 | 14 | /// \author Sarjeeta Gami |
14 | 15 |
|
@@ -55,7 +56,7 @@ using namespace o2::framework::expressions; |
55 | 56 | using std::array; |
56 | 57 | using namespace o2::aod::rctsel; |
57 | 58 |
|
58 | | -struct phianalysisrun3_PbPb { |
| 59 | +struct Phianalysisrun3pbpb { |
59 | 60 | struct : ConfigurableGroup { |
60 | 61 | Configurable<bool> requireRCTFlagChecker{"requireRCTFlagChecker", true, "Check event quality in run condition table"}; |
61 | 62 | Configurable<std::string> cfgEvtRCTFlagCheckerLabel{"cfgEvtRCTFlagCheckerLabel", "CBT_hadronPID", "Evt sel: RCT flag checker label"}; |
@@ -124,7 +125,7 @@ struct phianalysisrun3_PbPb { |
124 | 125 | Configurable<int> centestimator{"centestimator", 0, "Select multiplicity estimator: 0 - FT0C, 1 - FT0A, 2 - FT0M, 3 - FV0A, 4 - PVTracks"}; |
125 | 126 | ConfigurableAxis binsMult{"binsMult", {500, 0.0f, +500.0f}, ""}; |
126 | 127 | Configurable<bool> isApplyCentFT0C{"isApplyCentFT0C", true, "Centrality based on FT0C"}; |
127 | | - Configurable<bool> isApplyCentFT0M{"isApplyCentFV0M", false, "Centrality based on FT0M"}; |
| 128 | + Configurable<bool> isApplyCentFT0M{"isApplyCentFT0M", false, "Centrality based on FT0M"}; |
128 | 129 | Configurable<bool> isApplyInelgt0{"isApplyInelgt0", false, "Enable INEL > 0 condition"}; |
129 | 130 | Configurable<bool> isApplyTVX{"isApplyTVX", false, "Enable TVX trigger sel"}; |
130 | 131 | Configurable<bool> genacceptancecut{"genacceptancecut", true, "use acceptance cut for generated"}; |
@@ -349,11 +350,11 @@ struct phianalysisrun3_PbPb { |
349 | 350 | return false; |
350 | 351 |
|
351 | 352 | } else if (pid == 1) { |
352 | | - constexpr double kPtThresholdForTOF = 0.5; |
353 | | - if (candidate.pt() < kPtThresholdForTOF && std::abs(candidate.tpcNSigmaKa()) < selectionConfig.nsigmacutTPC) { |
| 353 | + constexpr double PtThresholdForTOF = 0.5; |
| 354 | + if (candidate.pt() < PtThresholdForTOF && std::abs(candidate.tpcNSigmaKa()) < selectionConfig.nsigmacutTPC) { |
354 | 355 | return true; |
355 | 356 | } |
356 | | - if (candidate.pt() >= kPtThresholdForTOF && candidate.hasTOF() && candidate.beta() > cfgCutTOFBeta && |
| 357 | + if (candidate.pt() >= PtThresholdForTOF && candidate.hasTOF() && candidate.beta() > cfgCutTOFBeta && |
357 | 358 | std::abs(candidate.tpcNSigmaKa()) < selectionConfig.nsigmacutTPC && std::abs(candidate.tofNSigmaKa()) < selectionConfig.nsigmacutTOF) { |
358 | 359 | return true; |
359 | 360 | } |
@@ -461,10 +462,10 @@ struct phianalysisrun3_PbPb { |
461 | 462 | candidate1.pz() + candidate2.pz()}, |
462 | 463 | mass); |
463 | 464 |
|
464 | | - constexpr int kOppositeCharge = 0; |
| 465 | + constexpr int OppositeCharge = 0; |
465 | 466 |
|
466 | 467 | // default filling |
467 | | - if (rapidity > rapiditycut1 && rapidity < rapiditycut2 && track1Sign * track2Sign < kOppositeCharge) { |
| 468 | + if (rapidity > rapiditycut1 && rapidity < rapiditycut2 && track1Sign * track2Sign < OppositeCharge) { |
468 | 469 | if (unlike) { |
469 | 470 | histos.fill(HIST("h3PhiInvMassUnlikeSign"), multiplicity, pT, mass); |
470 | 471 | histos.fill(HIST("h2PhiRapidity"), pT, rapidity); |
@@ -664,7 +665,7 @@ struct phianalysisrun3_PbPb { |
664 | 665 | } |
665 | 666 | } |
666 | 667 |
|
667 | | - PROCESS_SWITCH(phianalysisrun3_PbPb, processSameEvent, "Process Same event", false); |
| 668 | + PROCESS_SWITCH(Phianalysisrun3pbpb, processSameEvent, "Process Same event", false); |
668 | 669 | void processMixedEvent1(EventCandidates const& collisions, TrackCandidates const& tracks) |
669 | 670 | { |
670 | 671 | auto tracksTuple = std::make_tuple(tracks); |
@@ -740,7 +741,7 @@ struct phianalysisrun3_PbPb { |
740 | 741 | } |
741 | 742 | } |
742 | 743 | } |
743 | | - PROCESS_SWITCH(phianalysisrun3_PbPb, processMixedEvent1, "Process Mixed event", false); |
| 744 | + PROCESS_SWITCH(Phianalysisrun3pbpb, processMixedEvent1, "Process Mixed event", false); |
744 | 745 | void processMixedEvent2(EventCandidates const& collisions, TrackCandidates const& tracks) |
745 | 746 | { |
746 | 747 | auto tracksTuple = std::make_tuple(tracks); |
@@ -817,7 +818,7 @@ struct phianalysisrun3_PbPb { |
817 | 818 | } |
818 | 819 | } |
819 | 820 |
|
820 | | - PROCESS_SWITCH(phianalysisrun3_PbPb, processMixedEvent2, "Process Mixed event", false); |
| 821 | + PROCESS_SWITCH(Phianalysisrun3pbpb, processMixedEvent2, "Process Mixed event", false); |
821 | 822 | void processMixedEvent3(EventCandidates const& collisions, TrackCandidates const& tracks) |
822 | 823 | { |
823 | 824 | auto tracksTuple = std::make_tuple(tracks); |
@@ -894,7 +895,7 @@ struct phianalysisrun3_PbPb { |
894 | 895 | } |
895 | 896 | } |
896 | 897 |
|
897 | | - PROCESS_SWITCH(phianalysisrun3_PbPb, processMixedEvent3, "Process Mixed event", false); |
| 898 | + PROCESS_SWITCH(Phianalysisrun3pbpb, processMixedEvent3, "Process Mixed event", false); |
898 | 899 | void processMixedEvent4(EventCandidates const& collisions, TrackCandidates const& tracks) |
899 | 900 | { |
900 | 901 | auto tracksTuple = std::make_tuple(tracks); |
@@ -971,7 +972,7 @@ struct phianalysisrun3_PbPb { |
971 | 972 | } |
972 | 973 | } |
973 | 974 |
|
974 | | - PROCESS_SWITCH(phianalysisrun3_PbPb, processMixedEvent4, "Process Mixed event", false); |
| 975 | + PROCESS_SWITCH(Phianalysisrun3pbpb, processMixedEvent4, "Process Mixed event", false); |
975 | 976 | void processRotEvent(EventCandidates::iterator const& collision, TrackCandidates const& tracks, aod::BCs const&) |
976 | 977 | { |
977 | 978 | if (!collision.sel8()) { |
@@ -1057,7 +1058,7 @@ struct phianalysisrun3_PbPb { |
1057 | 1058 | } |
1058 | 1059 | } |
1059 | 1060 |
|
1060 | | - PROCESS_SWITCH(phianalysisrun3_PbPb, processRotEvent, "Process Rot event", false); |
| 1061 | + PROCESS_SWITCH(Phianalysisrun3pbpb, processRotEvent, "Process Rot event", false); |
1061 | 1062 | void processMC(CollisionMCTrueTable::iterator const& /*TrueCollision*/, CollisionMCRecTableCentFT0C const& RecCollisions, TrackMCTrueTable const& GenParticles, FilTrackMCRecTable const& RecTracks) |
1062 | 1063 | { |
1063 | 1064 | histos.fill(HIST("hMC"), 0); |
@@ -1270,7 +1271,7 @@ struct phianalysisrun3_PbPb { |
1270 | 1271 | } // rec collision loop |
1271 | 1272 |
|
1272 | 1273 | } // process MC |
1273 | | - PROCESS_SWITCH(phianalysisrun3_PbPb, processMC, "Process Reconstructed", false); |
| 1274 | + PROCESS_SWITCH(Phianalysisrun3pbpb, processMC, "Process Reconstructed", false); |
1274 | 1275 | void processGen(aod::McCollision const& mcCollision, aod::McParticles const& mcParticles, const soa::SmallGroups<EventCandidatesMC>& collisions) |
1275 | 1276 | { |
1276 | 1277 |
|
@@ -1358,7 +1359,7 @@ struct phianalysisrun3_PbPb { |
1358 | 1359 | } |
1359 | 1360 | } |
1360 | 1361 | } |
1361 | | - PROCESS_SWITCH(phianalysisrun3_PbPb, processGen, "Process Generated", false); |
| 1362 | + PROCESS_SWITCH(Phianalysisrun3pbpb, processGen, "Process Generated", false); |
1362 | 1363 | void processRec(EventCandidatesMC::iterator const& collision, TrackCandidatesMC const& tracks, aod::McParticles const& /*mcParticles*/, aod::McCollisions const& /*mcCollisions*/) |
1363 | 1364 | { |
1364 | 1365 | if (!collision.has_mcCollision()) { |
@@ -1487,7 +1488,7 @@ struct phianalysisrun3_PbPb { |
1487 | 1488 | } |
1488 | 1489 | } |
1489 | 1490 |
|
1490 | | - PROCESS_SWITCH(phianalysisrun3_PbPb, processRec, "Process Reconstructed", false); |
| 1491 | + PROCESS_SWITCH(Phianalysisrun3pbpb, processRec, "Process Reconstructed", false); |
1491 | 1492 | void processSameEventMC(EventCandidatesMC::iterator const& collision, TrackCandidatesMC const& tracks, aod::McParticles const& /*mcParticles*/, aod::McCollisions const& /*mcCollisions*/) |
1492 | 1493 | { |
1493 | 1494 | if (!collision.sel8()) { |
@@ -1599,7 +1600,7 @@ struct phianalysisrun3_PbPb { |
1599 | 1600 | } |
1600 | 1601 | } |
1601 | 1602 |
|
1602 | | - PROCESS_SWITCH(phianalysisrun3_PbPb, processSameEventMC, "Process Same event", false); |
| 1603 | + PROCESS_SWITCH(Phianalysisrun3pbpb, processSameEventMC, "Process Same event", false); |
1603 | 1604 | void processMixedEventMC(EventCandidatesMC const& recCollisions, TrackCandidatesMC const& RecTracks, aod::McParticles const&) |
1604 | 1605 | { |
1605 | 1606 |
|
@@ -1684,7 +1685,7 @@ struct phianalysisrun3_PbPb { |
1684 | 1685 | } |
1685 | 1686 | } |
1686 | 1687 | } |
1687 | | - PROCESS_SWITCH(phianalysisrun3_PbPb, processMixedEventMC, "Process Mixed event MC", true); |
| 1688 | + PROCESS_SWITCH(Phianalysisrun3pbpb, processMixedEventMC, "Process Mixed event MC", true); |
1688 | 1689 | void processGen1(McCollisionMults::iterator const& mcCollision, aod::McParticles const& mcParticles, const soa::SmallGroups<EventCandidatesMC>& collisions) |
1689 | 1690 | { |
1690 | 1691 | // all events |
@@ -1771,7 +1772,7 @@ struct phianalysisrun3_PbPb { |
1771 | 1772 | multiplicity = collision.centFV0A(); |
1772 | 1773 | } |
1773 | 1774 | histos.fill(HIST("Centgen1"), multiplicity); |
1774 | | - selectedEvents[nevts++] = collision.mcCollision_as<aod::McCollisions>().globalIndex(); |
| 1775 | + selectedEvents[nevts++] = collision.mcCollision_as<McCollisionMults>().globalIndex(); |
1775 | 1776 | } |
1776 | 1777 | selectedEvents.resize(nevts); |
1777 | 1778 | const auto evtReconstructedAndSelected = std::find(selectedEvents.begin(), selectedEvents.end(), mcCollision.globalIndex()) != selectedEvents.end(); |
@@ -1815,7 +1816,7 @@ struct phianalysisrun3_PbPb { |
1815 | 1816 | } |
1816 | 1817 | } |
1817 | 1818 |
|
1818 | | - PROCESS_SWITCH(phianalysisrun3_PbPb, processGen1, "Process Generated", false); |
| 1819 | + PROCESS_SWITCH(Phianalysisrun3pbpb, processGen1, "Process Generated", false); |
1819 | 1820 | void processRec1(EventCandidatesMC::iterator const& collision, TrackCandidatesMC const& tracks, aod::McParticles const& /*mcParticles*/, aod::McCollisions const& /*mcCollisions*/) |
1820 | 1821 | { |
1821 | 1822 | if (!collision.has_mcCollision()) { |
@@ -1964,7 +1965,7 @@ struct phianalysisrun3_PbPb { |
1964 | 1965 | } |
1965 | 1966 | } |
1966 | 1967 |
|
1967 | | - PROCESS_SWITCH(phianalysisrun3_PbPb, processRec1, "Process Reconstructed", false); |
| 1968 | + PROCESS_SWITCH(Phianalysisrun3pbpb, processRec1, "Process Reconstructed", false); |
1968 | 1969 | void processEvtLossSigLossMC(McCollisionMults::iterator const& mcCollision, aod::McParticles const& mcParticles, const soa::SmallGroups<EventCandidatesMC>& recCollisions) |
1969 | 1970 | { |
1970 | 1971 |
|
@@ -2040,7 +2041,7 @@ struct phianalysisrun3_PbPb { |
2040 | 2041 | } |
2041 | 2042 | } // end loop on gen particles |
2042 | 2043 | } |
2043 | | - PROCESS_SWITCH(phianalysisrun3_PbPb, processEvtLossSigLossMC, "Process Signal Loss, Event Loss", false); |
| 2044 | + PROCESS_SWITCH(Phianalysisrun3pbpb, processEvtLossSigLossMC, "Process Signal Loss, Event Loss", false); |
2044 | 2045 | void processEvtLossSigLossMC1(McCollisionMults::iterator const& mcCollision, soa::SmallGroups<EventCandidatesMC> const& collisions, aod::McParticles const& GenParticles) |
2045 | 2046 | { |
2046 | 2047 | if (selectionConfig.cutvzgen && |
@@ -2092,8 +2093,8 @@ struct phianalysisrun3_PbPb { |
2092 | 2093 | continue; |
2093 | 2094 |
|
2094 | 2095 | auto daughters = particle.daughters_as<aod::McParticles>(); |
2095 | | - static constexpr int kPhiNDaughters = 2; |
2096 | | - if (daughters.size() != kPhiNDaughters) |
| 2096 | + static constexpr int PhiNDaughters = 2; |
| 2097 | + if (daughters.size() != PhiNDaughters) |
2097 | 2098 | continue; |
2098 | 2099 |
|
2099 | 2100 | bool daup = false, daun = false; |
@@ -2126,10 +2127,10 @@ struct phianalysisrun3_PbPb { |
2126 | 2127 | } |
2127 | 2128 | } |
2128 | 2129 | } |
2129 | | - PROCESS_SWITCH(phianalysisrun3_PbPb, processEvtLossSigLossMC1, "Process Signal Loss, Event Loss", false); |
| 2130 | + PROCESS_SWITCH(Phianalysisrun3pbpb, processEvtLossSigLossMC1, "Process Signal Loss, Event Loss", false); |
2130 | 2131 | }; |
2131 | 2132 | WorkflowSpec defineDataProcessing(ConfigContext const& cfgc) |
2132 | 2133 | { |
2133 | 2134 | return WorkflowSpec{ |
2134 | | - adaptAnalysisTask<phianalysisrun3_PbPb>(cfgc, TaskName{"phianalysisrun3_PbPb"})}; |
| 2135 | + adaptAnalysisTask<Phianalysisrun3pbpb>(cfgc)}; |
2135 | 2136 | } |
0 commit comments