|
47 | 47 | #include <Framework/AnalysisTask.h> |
48 | 48 | #include <Framework/Configurable.h> |
49 | 49 | #include <Framework/InitContext.h> |
| 50 | +#include <Framework/O2DatabasePDGPlugin.h> |
50 | 51 | #include <Framework/runDataProcessing.h> |
51 | 52 | #include <ReconstructionDataFormats/Track.h> |
52 | | -#include <Framework/O2DatabasePDGPlugin.h> |
53 | 53 |
|
54 | 54 | #include <THashList.h> |
55 | 55 | #include <TList.h> |
@@ -2079,15 +2079,15 @@ struct AnalysisSameEventPairing { |
2079 | 2079 | mcDecision |= (static_cast<uint32_t>(1) << isig); |
2080 | 2080 | VarManager::FillPairMC<TPairType>(t1_raw, t2_raw); |
2081 | 2081 | // cout << " Filled VarManager for the pair." << endl; |
2082 | | - // check if t1_raw and t2_raw have same mother to compute decay length related variables |
2083 | | - if(t1_raw.has_mothers() && t2_raw.has_mothers()){ |
2084 | | - auto motherMCParticle_t1 = t1_raw.template mothers_first_as<McParticles>(); |
2085 | | - auto motherMCParticle_t2 = t2_raw.template mothers_first_as<McParticles>(); |
2086 | | - if(motherMCParticle_t1 == motherMCParticle_t2){ |
2087 | | - auto mcEvent = mcEvents.rawIteratorAt(motherMCParticle_t1.mcCollisionId()); |
2088 | | - std::array<double, 3> collVtxPos = {mcEvent.posX(), mcEvent.posY(), mcEvent.posZ()}; |
2089 | | - VarManager::FillTrackCollisionMC<TPairType>(motherMCParticle_t1,collVtxPos,pdgDB->Mass(motherMCParticle_t1.pdgCode())); |
2090 | | - } |
| 2082 | + // check if t1_raw and t2_raw have same mother to compute decay length related variables |
| 2083 | + if (t1_raw.has_mothers() && t2_raw.has_mothers()) { |
| 2084 | + auto motherMCParticle_t1 = t1_raw.template mothers_first_as<McParticles>(); |
| 2085 | + auto motherMCParticle_t2 = t2_raw.template mothers_first_as<McParticles>(); |
| 2086 | + if (motherMCParticle_t1 == motherMCParticle_t2) { |
| 2087 | + auto mcEvent = mcEvents.rawIteratorAt(motherMCParticle_t1.mcCollisionId()); |
| 2088 | + std::array<double, 3> collVtxPos = {mcEvent.posX(), mcEvent.posY(), mcEvent.posZ()}; |
| 2089 | + VarManager::FillTrackCollisionMC<TPairType>(motherMCParticle_t1, collVtxPos, pdgDB->Mass(motherMCParticle_t1.pdgCode())); |
| 2090 | + } |
2091 | 2091 | } |
2092 | 2092 | if (fUseMCGenAccCut) { |
2093 | 2093 | if (!fMCGenAccCut.IsSelected(VarManager::fgValues)) { |
|
0 commit comments