Skip to content

Commit 23f183b

Browse files
author
jimun_lee
committed
[PWGLF] Added also the option of cfgJetMaxEta
1 parent 173b3e8 commit 23f183b

1 file changed

Lines changed: 21 additions & 21 deletions

File tree

PWGLF/Tasks/Resonances/kstarInOO.cxx

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ struct kstarInOO {
127127
Configurable<int> cfgMinvNBins{"cfgMinvNBins", 300, "Number of bins for Minv axis"};
128128
Configurable<float> cfgMinvMin{"cfgMinvMin", 0.60, "Minimum Minv value"};
129129
Configurable<float> cfgMinvMax{"cfgMinvMax", 1.20, "Maximum Minv value"};
130-
130+
131131
// Histogram
132132
ConfigurableAxis binsDCAz{"binsDCAz", {40, -0.2, 0.2}, ""};
133133
ConfigurableAxis binsDCAxy{"binsDCAxy", {40, -0.2, 0.2}, ""};
@@ -152,7 +152,7 @@ struct kstarInOO {
152152
Configurable<float> cfgJetR{"cfgJetR", 0.4, "Anti-kT Radius"};
153153
Configurable<float> cfgJetdR{"cfgJetdR", 0.4, "Set Jet radius parameter"};
154154
Configurable<float> cfgJetMaxEta{"cfgJetMaxEta", 0.9, "Set Jet Max Eta"};
155-
155+
156156
Configurable<bool> cfgSingleJet{"cfgSingleJet", false, "Enforces strict phi-jet correspondance"};
157157
Configurable<bool> cfgReqJets{"cfgReqJets", false, "False: MB, True: Inside Jets"};
158158
Configurable<std::string> cfgRealTriggerMasks{"cfgRealTriggerMasks", "", "possible JE Trigger masks: fJetChLowPt,fJetChHighPt,fTrackLowPt,fTrackHighPt,fJetD0ChLowPt,fJetD0ChHighPt,fJetLcChLowPt,fJetLcChHighPt,fEMCALReadout,fJetFullHighPt,fJetFullLowPt,fJetNeutralHighPt,fJetNeutralLowPt,fGammaVeryHighPtEMCAL,fGammaVeryHighPtDCAL,fGammaHighPtEMCAL,fGammaHighPtDCAL,fGammaLowPtEMCAL,fGammaLowPtDCAL,fGammaVeryLowPtEMCAL,fGammaVeryLowPtDCAL"};
@@ -378,9 +378,9 @@ struct kstarInOO {
378378
double massKa = o2::constants::physics::MassKPlus;
379379
double massPi = o2::constants::physics::MassPiMinus;
380380

381+
static constexpr int Kstar0PDG = 313;
381382
static constexpr int KaonPDG = 321;
382383
static constexpr int PionPDG = 211;
383-
static constexpr int Kstar0PDG = 313;
384384

385385
//==================================
386386
//||
@@ -905,7 +905,7 @@ struct kstarInOO {
905905
double DistinguishJets(const JetType& jets, ROOT::Math::PxPyPzMVector lResonance)
906906
{
907907
if (cDebugLevel > 0)
908-
std::cout << "Finded multiple jets to the same phi." << std::endl;
908+
LOG(info) << "Found multiple jets to the same phi.";
909909

910910
double bestR = 0;
911911
double bestJetpT = 0;
@@ -1043,7 +1043,7 @@ struct kstarInOO {
10431043
if (cDebugLevel > 0) {
10441044
nJetEvents++;
10451045
if ((nJetEvents + 1) % 10000 == 0) {
1046-
std::cout << "Processed Jet Data Events: " << nJetEvents << std::endl;
1046+
LOG(info) << "Processed Jet Data Events: " << nJetEvents;
10471047
}
10481048
}
10491049
histos.fill(HIST("nEvents"), 0.5); // Raw event
@@ -1112,8 +1112,8 @@ struct kstarInOO {
11121112
int nJets = 0;
11131113
for (auto chargedjet : chargedjets) {
11141114
if (std::abs(chargedjet.eta()) > cfgJetMaxEta - cfgJetdR)
1115-
return;
1116-
1115+
return;
1116+
11171117
jetpT.push_back(chargedjet.pt());
11181118
jetEta.push_back(chargedjet.eta());
11191119
jetPhi.push_back(chargedjet.phi());
@@ -1166,7 +1166,7 @@ struct kstarInOO {
11661166
if (cDebugLevel > 0) {
11671167
nJetMCEvents++;
11681168
if ((nJetMCEvents + 1) % 10000 == 0) {
1169-
std::cout << "Processed Jet MC Events: " << nJetMCEvents << std::endl;
1169+
LOG(info) << "Processed Jet MC Events: " << nJetMCEvents;
11701170
}
11711171
}
11721172
histos.fill(HIST("nEvents"), 0.5); // Gen event
@@ -1200,8 +1200,8 @@ struct kstarInOO {
12001200
int nJets = 0;
12011201
for (auto mcdjet : mcdjets) {
12021202
if (std::abs(mcdjet.eta()) > cfgJetMaxEta - cfgJetdR)
1203-
return;
1204-
1203+
return;
1204+
12051205
mcdjetpT.push_back(mcdjet.pt());
12061206
mcdjetEta.push_back(mcdjet.eta());
12071207
mcdjetPhi.push_back(mcdjet.phi());
@@ -1359,7 +1359,7 @@ struct kstarInOO {
13591359
if (cDebugLevel > 0) {
13601360
nEvents++;
13611361
if ((nEvents + 1) % 10000 == 0) {
1362-
std::cout << "Processed Data Events: " << nEvents << std::endl;
1362+
LOG(info) << "Processed Data Events: " << nEvents;
13631363
}
13641364
}
13651365
histos.fill(HIST("nEvents"), 0.5);
@@ -1406,7 +1406,7 @@ struct kstarInOO {
14061406
if (cDebugLevel > 0) {
14071407
nEventsMix++;
14081408
if ((nEventsMix + 1) % 10000 == 0) {
1409-
std::cout << "Processed DATA Mixed Events : " << nEventsMix << std::endl;
1409+
LOG(info) << "Processed DATA Mixed Events : " << nEventsMix;
14101410
}
14111411
}
14121412
auto [goodEv1, code1] = eventSelection(collision1, false);
@@ -1443,8 +1443,8 @@ struct kstarInOO {
14431443
nEventsMC++;
14441444
if ((nEventsMC + 1) % 10000 == 0) {
14451445
double histmem = histos.getSize();
1446-
std::cout << histmem << std::endl;
1447-
std::cout << "process_SameEvent_MC: " << nEventsMC << std::endl;
1446+
LOG(info) << histmem;
1447+
LOG(info) << "process_SameEvent_MC: " << nEventsMC;
14481448
}
14491449
}
14501450
histos.fill(HIST("nEvents"), 0.5);
@@ -1490,7 +1490,7 @@ struct kstarInOO {
14901490
if (cDebugLevel > 0) {
14911491
nEventsMCMix++;
14921492
if ((nEventsMCMix + 1) % 10000 == 0) {
1493-
std::cout << "Processed Mixed Events: " << nEventsMCMix << std::endl;
1493+
LOG(info) << "Processed Mixed Events: " << nEventsMCMix;
14941494
}
14951495
}
14961496
auto [goodEv1, code1] = eventSelection(collision1, false);
@@ -1515,7 +1515,7 @@ struct kstarInOO {
15151515
if (cDebugLevel > 0) {
15161516
++nEventsGen;
15171517
if (nEventsGen % 10000 == 0) {
1518-
std::cout << "Processed MC (GEN) Events: " << nEventsGen << std::endl;
1518+
LOG(info) << "Processed MC (GEN) Events: " << nEventsGen;
15191519
}
15201520
}
15211521
if (cfgMCHistos) {
@@ -1547,7 +1547,7 @@ struct kstarInOO {
15471547
return;
15481548

15491549
for (auto& particle : mcParticles) {
1550-
if (std::abs(particle.pdgCode()) != 313)
1550+
if (std::abs(particle.pdgCode()) != Kstar0PDG)
15511551
continue;
15521552
if (std::abs(particle.eta()) > cfgTrackMaxEta)
15531553
continue;
@@ -1586,7 +1586,7 @@ struct kstarInOO {
15861586
}
15871587

15881588
for (auto& particle : mcParticles) {
1589-
if (std::abs(particle.pdgCode()) != 313)
1589+
if (std::abs(particle.pdgCode()) != Kstar0PDG)
15901590
continue; // Not K*0
15911591
if (std::abs(particle.eta()) > cfgTrackMaxEta)
15921592
continue;
@@ -1612,7 +1612,7 @@ struct kstarInOO {
16121612
if (cDebugLevel > 0) {
16131613
++nprocessGenEvents;
16141614
if (nprocessGenEvents % 10000 == 0) {
1615-
std::cout << "Processed MC (GEN) Events: " << nprocessGenEvents << std::endl;
1615+
LOG(info) << "Processed MC (GEN) Events: " << nprocessGenEvents;
16161616
}
16171617
}
16181618
if (cfgJetMCHistos) {
@@ -1675,7 +1675,7 @@ struct kstarInOO {
16751675
}
16761676

16771677
for (auto& particle : mcParticles) {
1678-
if (std::abs(particle.pdgCode()) != 313)
1678+
if (std::abs(particle.pdgCode()) != Kstar0PDG)
16791679
continue;
16801680
if (std::abs(particle.eta()) > cfgTrackMaxEta)
16811681
continue;
@@ -1717,7 +1717,7 @@ struct kstarInOO {
17171717
if (cDebugLevel > 0) {
17181718
++ndRtest;
17191719
if (ndRtest % 10000 == 0) {
1720-
std::cout << "Processed dR test: " << ndRtest << std::endl;
1720+
LOG(info) << "Processed dR test: " << ndRtest;
17211721
}
17221722
}
17231723

0 commit comments

Comments
 (0)