Skip to content

Commit c0466af

Browse files
clang fixes
1 parent 018a5c0 commit c0466af

File tree

1 file changed

+19
-18
lines changed

1 file changed

+19
-18
lines changed

PWGJE/Tasks/jetSpectraCharged.cxx

Lines changed: 19 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -110,10 +110,11 @@ struct JetSpectraCharged {
110110
registry.add("h_collisions_weighted", "number of events;event status;entries", {HistType::kTH1F, {{4, 0.0, 4.0}}});
111111
registry.get<TH1>(HIST("h_collisions_weighted"))->GetXaxis()->SetBinLabel(1, "allColl");
112112
registry.get<TH1>(HIST("h_collisions_weighted"))->GetXaxis()->SetBinLabel(2, "centralitycut");
113-
registry.get<TH1>(HIST("h_collisions_weighted"))->GetXaxis()->SetBinLabel(3, "occupancycut"); if (doprocessSpectraMCDWeighted) {
114-
registry.add("h_coll_phat", "collision #hat{p};#hat{p} (GeV/#it{c});entries", {HistType::kTH1F, {{1000, 0, 1000}}});
115-
registry.add("h_coll_phat_weighted", "collision #hat{p};#hat{p} (GeV/#it{c});entries", {HistType::kTH1F, {{1000, 0, 1000}}});
116-
}
113+
registry.get<TH1>(HIST("h_collisions_weighted"))->GetXaxis()->SetBinLabel(3, "occupancycut");
114+
if (doprocessSpectraMCDWeighted) {
115+
registry.add("h_coll_phat", "collision #hat{p};#hat{p} (GeV/#it{c});entries", {HistType::kTH1F, {{1000, 0, 1000}}});
116+
registry.add("h_coll_phat_weighted", "collision #hat{p};#hat{p} (GeV/#it{c});entries", {HistType::kTH1F, {{1000, 0, 1000}}});
117+
}
117118
}
118119
registry.add("h_collisions_zvertex", "position of collision ;#it{Z} (cm)", {HistType::kTH1F, {{300, -15.0, 15.0}}});
119120
registry.add("h_fakecollisions", "event status;event status;entries", {HistType::kTH1F, {{4, 0.0, 4.0}}}); // is not filled if running on data
@@ -871,14 +872,14 @@ struct JetSpectraCharged {
871872
continue;
872873
}
873874
float jetweight = jet.eventWeight();
874-
fillJetHistograms(jet, centrality, jetweight);
875+
fillJetHistograms(jet, centrality, jetweight);
875876
}
876877
}
877878
PROCESS_SWITCH(JetSpectraCharged, processSpectraMCDWeighted, "jet finder QA mcd with weighted events", false);
878879

879880
void processSpectraAreaSubMCDWeighted(soa::Filtered<soa::Join<aod::JetCollisions, aod::BkgChargedRhos>>::iterator const& collision,
880-
soa::Join<aod::ChargedMCDetectorLevelJets, aod::ChargedMCDetectorLevelJetConstituents, aod::ChargedMCDetectorLevelJetEventWeights> const& jets,
881-
aod::JetTracks const&)
881+
soa::Join<aod::ChargedMCDetectorLevelJets, aod::ChargedMCDetectorLevelJetConstituents, aod::ChargedMCDetectorLevelJetEventWeights> const& jets,
882+
aod::JetTracks const&)
882883
{
883884
bool fillHistograms = false;
884885
bool isWeighted = true;
@@ -985,9 +986,9 @@ struct JetSpectraCharged {
985986
PROCESS_SWITCH(JetSpectraCharged, processSpectraMCPWeighted, "jet spectra for MC particle level weighted", false);
986987

987988
void processSpectraAreaSubMCPWeighted(soa::Filtered<JetBkgRhoMcCollisions>::iterator const& mccollision,
988-
soa::SmallGroups<aod::JetCollisionsMCD> const& collisions,
989-
soa::Join<aod::ChargedMCParticleLevelJets, aod::ChargedMCParticleLevelJetConstituents, aod::ChargedMCParticleLevelJetEventWeights> const& jets,
990-
aod::JetParticles const&)
989+
soa::SmallGroups<aod::JetCollisionsMCD> const& collisions,
990+
soa::Join<aod::ChargedMCParticleLevelJets, aod::ChargedMCParticleLevelJetConstituents, aod::ChargedMCParticleLevelJetEventWeights> const& jets,
991+
aod::JetParticles const&)
991992
{
992993
bool mcLevelIsParticleLevel = true;
993994

@@ -1098,10 +1099,10 @@ struct JetSpectraCharged {
10981099
PROCESS_SWITCH(JetSpectraCharged, processJetsMatchedWeighted, "matched mcp and mcd jets with weighted events", false);
10991100

11001101
void processJetsMatchedAreaSub(soa::Filtered<soa::Join<aod::JetCollisionsMCD, aod::BkgChargedRhos>>::iterator const& collision,
1101-
JetBkgRhoMcCollisions const&,
1102-
ChargedMCDMatchedJets const& mcdjets,
1103-
ChargedMCPMatchedJets const&,
1104-
aod::JetTracks const&, aod::JetParticles const&)
1102+
JetBkgRhoMcCollisions const&,
1103+
ChargedMCDMatchedJets const& mcdjets,
1104+
ChargedMCPMatchedJets const&,
1105+
aod::JetTracks const&, aod::JetParticles const&)
11051106
{
11061107
if (!applyCollisionCuts(collision)) {
11071108
return;
@@ -1119,10 +1120,10 @@ struct JetSpectraCharged {
11191120
PROCESS_SWITCH(JetSpectraCharged, processJetsMatchedAreaSub, "matched mcp and mcd jets after area-based pt subtraction", false);
11201121

11211122
void processJetsMatchedAreaSubWeighted(soa::Filtered<soa::Join<aod::JetCollisionsMCD, aod::BkgChargedRhos>>::iterator const& collision,
1122-
JetBkgRhoMcCollisions const&,
1123-
ChargedMCDMatchedJetsWeighted const& mcdjets,
1124-
ChargedMCPMatchedJetsWeighted const&,
1125-
aod::JetTracks const&, aod::JetParticles const&)
1123+
JetBkgRhoMcCollisions const&,
1124+
ChargedMCDMatchedJetsWeighted const& mcdjets,
1125+
ChargedMCPMatchedJetsWeighted const&,
1126+
aod::JetTracks const&, aod::JetParticles const&)
11261127
{
11271128
bool fillHistograms = false;
11281129
bool isWeighted = true;

0 commit comments

Comments
 (0)