5353#include < string>
5454#include < utility>
5555#include < vector>
56+
5657#include < stdlib.h>
5758
5859using namespace o2 ;
@@ -125,7 +126,7 @@ struct kstarInOO {
125126 Configurable<int > cfgMinvNBins{" cfgMinvNBins" , 300 , " Number of bins for Minv axis" };
126127 Configurable<float > cfgMinvMin{" cfgMinvMin" , 0.60 , " Minimum Minv value" };
127128 Configurable<float > cfgMinvMax{" cfgMinvMax" , 1.20 , " Maximum Minv value" };
128-
129+
129130 // Histogram
130131 ConfigurableAxis binsDCAz{" binsDCAz" , {40 , -0.2 , 0.2 }, " " };
131132 ConfigurableAxis binsDCAxy{" binsDCAxy" , {40 , -0.2 , 0.2 }, " " };
@@ -150,7 +151,7 @@ struct kstarInOO {
150151 Configurable<float > cfgJetR{" cfgJetR" , 0.4 , " Anti-kT Radius" };
151152 Configurable<float > cfgJetdR{" cfgJetdR" , 0.4 , " Set Jet radius parameter" };
152153 Configurable<float > cfgJetMaxEta{" cfgJetMaxEta" , 0.9 , " Set Jet Max Eta" };
153-
154+
154155 Configurable<bool > cfgSingleJet{" cfgSingleJet" , false , " Enforces strict phi-jet correspondance" };
155156 Configurable<bool > cfgReqJets{" cfgReqJets" , false , " False: MB, True: Inside Jets" };
156157 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" };
@@ -1041,7 +1042,7 @@ struct kstarInOO {
10411042 if (cDebugLevel > 0 ) {
10421043 nJetEvents++;
10431044 if ((nJetEvents + 1 ) % 10000 == 0 )
1044- LOG (info) << " Processed Jet Data Events: " << nJetEvents;
1045+ LOG (info) << " Processed Jet Data Events: " << nJetEvents;
10451046 }
10461047 histos.fill (HIST (" nEvents" ), 0.5 ); // Raw event
10471048
@@ -1109,8 +1110,8 @@ struct kstarInOO {
11091110 int nJets = 0 ;
11101111 for (auto chargedjet : chargedjets) {
11111112 if (std::abs (chargedjet.eta ()) > cfgJetMaxEta - cfgJetdR)
1112- return ;
1113-
1113+ return ;
1114+
11141115 jetpT.push_back (chargedjet.pt ());
11151116 jetEta.push_back (chargedjet.eta ());
11161117 jetPhi.push_back (chargedjet.phi ());
@@ -1163,7 +1164,7 @@ struct kstarInOO {
11631164 if (cDebugLevel > 0 ) {
11641165 nJetMCEvents++;
11651166 if ((nJetMCEvents + 1 ) % 10000 == 0 )
1166- LOG (info) << " Processed Jet MC Events: " << nJetMCEvents;
1167+ LOG (info) << " Processed Jet MC Events: " << nJetMCEvents;
11671168 }
11681169 histos.fill (HIST (" nEvents" ), 0.5 ); // Gen event
11691170
@@ -1196,8 +1197,8 @@ struct kstarInOO {
11961197 int nJets = 0 ;
11971198 for (auto mcdjet : mcdjets) {
11981199 if (std::abs (mcdjet.eta ()) > cfgJetMaxEta - cfgJetdR)
1199- return ;
1200-
1200+ return ;
1201+
12011202 mcdjetpT.push_back (mcdjet.pt ());
12021203 mcdjetEta.push_back (mcdjet.eta ());
12031204 mcdjetPhi.push_back (mcdjet.phi ());
@@ -1355,7 +1356,7 @@ struct kstarInOO {
13551356 if (cDebugLevel > 0 ) {
13561357 nEvents++;
13571358 if ((nEvents + 1 ) % 10000 == 0 )
1358- LOG (info) << " Processed Data Events: " << nEvents;
1359+ LOG (info) << " Processed Data Events: " << nEvents;
13591360 }
13601361 histos.fill (HIST (" nEvents" ), 0.5 );
13611362
@@ -1401,7 +1402,7 @@ struct kstarInOO {
14011402 if (cDebugLevel > 0 ) {
14021403 nEventsMix++;
14031404 if ((nEventsMix + 1 ) % 10000 == 0 )
1404- LOG (info) << " Processed DATA Mixed Events : " << nEventsMix;
1405+ LOG (info) << " Processed DATA Mixed Events : " << nEventsMix;
14051406 }
14061407 auto [goodEv1, code1] = eventSelection (collision1, false );
14071408 auto [goodEv2, code2] = eventSelection (collision2, false );
@@ -1437,8 +1438,8 @@ struct kstarInOO {
14371438 nEventsMC++;
14381439 if ((nEventsMC + 1 ) % 10000 == 0 ) {
14391440 double histmem = histos.getSize ();
1440- LOG (info) << histmem;
1441- LOG (info) << " process_SameEvent_MC: " << nEventsMC;
1441+ LOG (info) << histmem;
1442+ LOG (info) << " process_SameEvent_MC: " << nEventsMC;
14421443 }
14431444 }
14441445 histos.fill (HIST (" nEvents" ), 0.5 );
@@ -1484,7 +1485,7 @@ struct kstarInOO {
14841485 if (cDebugLevel > 0 ) {
14851486 nEventsMCMix++;
14861487 if ((nEventsMCMix + 1 ) % 10000 == 0 )
1487- LOG (info) << " Processed Mixed Events: " << nEventsMCMix;
1488+ LOG (info) << " Processed Mixed Events: " << nEventsMCMix;
14881489 }
14891490 auto [goodEv1, code1] = eventSelection (collision1, false );
14901491 auto [goodEv2, code2] = eventSelection (collision2, false );
@@ -1508,7 +1509,7 @@ struct kstarInOO {
15081509 if (cDebugLevel > 0 ) {
15091510 ++nEventsGen;
15101511 if (nEventsGen % 10000 == 0 )
1511- LOG (info) << " Processed MC (GEN) Events: " << nEventsGen;
1512+ LOG (info) << " Processed MC (GEN) Events: " << nEventsGen;
15121513 }
15131514 if (cfgMCHistos) {
15141515 histos.fill (HIST (" nEvents_Gen" ), 0.5 ); // Gen events
@@ -1604,7 +1605,7 @@ struct kstarInOO {
16041605 if (cDebugLevel > 0 ) {
16051606 ++nprocessGenEvents;
16061607 if (nprocessGenEvents % 10000 == 0 )
1607- LOG (info) << " Processed MC (GEN) Events: " << nprocessGenEvents;
1608+ LOG (info) << " Processed MC (GEN) Events: " << nprocessGenEvents;
16081609 }
16091610 if (cfgJetMCHistos) {
16101611 histos.fill (HIST (" nEvents_Gen" ), 0.5 );
@@ -1708,7 +1709,7 @@ struct kstarInOO {
17081709 if (cDebugLevel > 0 ) {
17091710 ++ndRtest;
17101711 if (ndRtest % 10000 == 0 )
1711- LOG (info) << " Processed dR test: " << ndRtest;
1712+ LOG (info) << " Processed dR test: " << ndRtest;
17121713 }
17131714
17141715 bool INELgt0 = false ;
0 commit comments