Skip to content

Commit 83e55b9

Browse files
authored
[PWGJE] Remove Pythia from hadron-photon correlation task (#14275)
1 parent 3de90ce commit 83e55b9

File tree

2 files changed

+17
-26
lines changed

2 files changed

+17
-26
lines changed

PWGJE/Tasks/CMakeLists.txt

Lines changed: 5 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,10 @@ o2physics_add_dpl_workflow(photon-charged-trigger-producer
5858
SOURCES photonChargedTriggerProducer.cxx
5959
PUBLIC_LINK_LIBRARIES O2::Framework O2Physics::AnalysisCore
6060
COMPONENT_NAME Analysis)
61+
o2physics_add_dpl_workflow(hadron-photon-correlation
62+
SOURCES hadronPhotonCorrelation.cxx
63+
PUBLIC_LINK_LIBRARIES O2::Framework O2Physics::AnalysisCore
64+
COMPONENT_NAME Analysis)
6165

6266
if(FastJet_FOUND)
6367
o2physics_add_dpl_workflow(jet-background-analysis
@@ -354,17 +358,4 @@ if(FastJet_FOUND)
354358
SOURCES substructureDebug.cxx
355359
PUBLIC_LINK_LIBRARIES O2::Framework O2Physics::PWGJECore O2Physics::AnalysisCore
356360
COMPONENT_NAME Analysis)
357-
endif()
358-
359-
if(pythia_FOUND)
360-
if(TARGET ROOT::EGPythia8)
361-
set_target_properties(ROOT::EGPythia8 PROPERTIES
362-
INTERFACE_LINK_LIBRARIES "ROOT::Core;ROOT::EG;ROOT::Graf;ROOT::Physics;${pythia_LIBRARY_SHARED}"
363-
)
364-
365-
o2physics_add_dpl_workflow(hadron-photon-correlation
366-
SOURCES hadronPhotonCorrelation.cxx
367-
PUBLIC_LINK_LIBRARIES O2::Framework O2Physics::AnalysisCore ROOT::EGPythia8
368-
COMPONENT_NAME Analysis)
369-
endif()
370-
endif()
361+
endif()

PWGJE/Tasks/hadronPhotonCorrelation.cxx

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -40,10 +40,10 @@
4040
#include "Framework/runDataProcessing.h"
4141

4242
#include <TClonesArray.h>
43-
#include <TLorentzVector.h> // o2-linter: disable= root/lorentz-vector (TLorentzVector is needed for TPythia8Decayer)
43+
// #include <TLorentzVector.h> // o2-linter: disable= root/lorentz-vector (TLorentzVector is needed for TPythia8Decayer)
4444
#include <TPDGCode.h>
45-
#include <TParticle.h>
46-
#include <TPythia8Decayer.h>
45+
// #include <TParticle.h>
46+
// #include <TPythia8Decayer.h>
4747

4848
#include <cmath>
4949
#include <map>
@@ -112,9 +112,9 @@ struct HadronPhotonCorrelation {
112112
float ptMinAssoc;
113113
float ptMaxAssoc;
114114

115-
TPythia8Decayer* decayer = new TPythia8Decayer;
116-
TLorentzVector* motherLV = new TLorentzVector(); // o2-linter: disable= root/lorentz-vector (TLorentzVector is needed for TPythia8Decayer)
117-
TClonesArray* decayParticles = new TClonesArray("TParticle", 10);
115+
// TPythia8Decayer* decayer = new TPythia8Decayer;
116+
// TLorentzVector* motherLV = new TLorentzVector(); // o2-linter: disable= root/lorentz-vector (TLorentzVector is needed for TPythia8Decayer)
117+
// TClonesArray* decayParticles = new TClonesArray("TParticle", 10);
118118

119119
HistogramRegistry registry{"histogram registry"};
120120

@@ -391,7 +391,7 @@ struct HadronPhotonCorrelation {
391391
}
392392

393393
// Initialize Pythia8 decay particle
394-
bool initDecayParticle(const TParticle* particle)
394+
/*bool initDecayParticle(const TParticle* particle)
395395
{
396396
397397
if (particle->GetMother(0) != 0) {
@@ -411,7 +411,7 @@ struct HadronPhotonCorrelation {
411411
}
412412
413413
return true;
414-
}
414+
}*/
415415

416416
// Initialize trigger tracks
417417
template <typename T>
@@ -991,7 +991,7 @@ struct HadronPhotonCorrelation {
991991
}
992992

993993
// Use PYTHIA to simulate decay
994-
decayer->Init();
994+
/*decayer->Init();
995995
for (int pid = 1; pid <= nHadrons; pid++) {
996996
TParticlePDG* pdgParticle = nullptr;
997997
@@ -1025,7 +1025,7 @@ struct HadronPhotonCorrelation {
10251025
registry.fill(HIST("generated/charged/hCocktailPhotonCorrelGen"), track_trig.pt(), track_assoc.pt(), daughter->Pt(), daughter->Eta() - track_trig.eta(), dphi, pidCodes[pdgParticle->GetName()], collision.weight());
10261026
}
10271027
}
1028-
}
1028+
}*/
10291029
}
10301030
registry.fill(HIST("generated/charged/hPionMultGen"), nPions, collision.weight());
10311031
}
@@ -1147,7 +1147,7 @@ struct HadronPhotonCorrelation {
11471147
}
11481148

11491149
// Use PYTHIA to simulate decay
1150-
decayer->Init();
1150+
/*decayer->Init();
11511151
motherLV->SetPtEtaPhiM(track_assoc.pt(), track_assoc.eta(), track_assoc.phi(), pdgParticle->Mass());
11521152
decayer->Decay(track_assoc.pdgCode(), motherLV);
11531153
decayer->ImportParticles(decayParticles);
@@ -1167,7 +1167,7 @@ struct HadronPhotonCorrelation {
11671167
float dphi = RecoDecay::constrainAngle(daughter->Phi() - track_trig.phi(), -PIHalf);
11681168
registry.fill(HIST("generated/neutral/hCocktailPhotonCorrelGen"), track_trig.pt(), track_assoc.pt(), daughter->Pt(), daughter->Eta() - track_trig.eta(), dphi, pidCodes[pdgParticle->GetName()], collision.weight());
11691169
}
1170-
}
1170+
}*/
11711171
}
11721172
registry.fill(HIST("generated/neutral/hNeutralMultGen"), nNeutrals, collision.weight());
11731173
}

0 commit comments

Comments
 (0)