Skip to content

Commit 7e9369e

Browse files
authored
Update and rename genCorr.cxx to longrangeCorrelation.cxx
1 parent 340d5b6 commit 7e9369e

File tree

1 file changed

+9
-14
lines changed

1 file changed

+9
-14
lines changed

PWGCF/TwoParticleCorrelations/Tasks/genCorr.cxx renamed to PWGCF/TwoParticleCorrelations/Tasks/longrangeCorrelation.cxx

Lines changed: 9 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@
99
// granted to it by virtue of its status as an Intergovernmental Organization
1010
// or submit itself to any jurisdiction.
1111
///
12-
/// \file genCorr.cxx
12+
/// \file longrangeCorrelation.cxx
1313
///
14-
/// \brief task for correlation analysis
14+
/// \brief task for long range correlation analysis
1515
/// \author Abhi Modak (abhi.modak@cern.ch) and Debojit sarkar (debojit.sarkar@cern.ch)
1616
/// \since April 22, 2025
1717

@@ -75,11 +75,11 @@ AxisSpec axisEvent{10, 0.5, 9.5, "#Event", "EventAxis"};
7575
AxisSpec amplitudeFT0{5000, 0, 10000, "FT0 amplitude"};
7676
AxisSpec channelFT0Axis{96, 0.0, 96.0, "FT0 channel"};
7777

78-
struct GenCorr {
78+
struct LongrangeCorrelation {
7979

8080
struct : ConfigurableGroup {
8181
Configurable<std::string> cfgURL{"cfgURL", "http://alice-ccdb.cern.ch", "Address of the CCDB to browse"};
82-
Configurable<int64_t> noLaterThan{"ccdb-no-later-than", std::chrono::duration_cast<std::chrono::milliseconds>(std::chrono::system_clock::now().time_since_epoch()).count(), "Latest acceptable timestamp of creation for the object"};
82+
Configurable<int64_t> noLaterThan{"noLaterThan", std::chrono::duration_cast<std::chrono::milliseconds>(std::chrono::system_clock::now().time_since_epoch()).count(), "Latest acceptable timestamp of creation for the object"};
8383
} cfgCcdbParam;
8484

8585
SliceCache cache;
@@ -189,11 +189,7 @@ struct GenCorr {
189189
o2::ft0::Geometry ft0Det;
190190
ft0Det.calculateChannelCenter();
191191
auto chPos = ft0Det.getChannelCenter(chno);
192-
auto phi = std::atan2(chPos.Y() + offsetY, chPos.X() + offsetX);
193-
if (phi < 0) {
194-
phi = TwoPI - std::abs(phi);
195-
}
196-
return phi;
192+
return RecoDecay::phi(chPos.X() + offsetX, chPos.Y() + offsetY);
197193
}
198194

199195
double getEtaFT0(int chno, double offsetX, double offsetY, double offsetZ)
@@ -293,8 +289,7 @@ struct GenCorr {
293289
}
294290
float deltaPhi = RecoDecay::constrainAngle(triggerTrack.phi() - phiA, -PIHalf);
295291
float deltaEta = triggerTrack.eta() - etaA;
296-
// LOGF(info, "delta eta = %f and delta phi = %f", deltaEta, deltaPhi);
297-
if (mixing)
292+
if (mixing)
298293
histos.fill(HIST("ME/deltaEta_deltaPhi"), deltaPhi, deltaEta);
299294
else
300295
histos.fill(HIST("SE/deltaEta_deltaPhi"), deltaPhi, deltaEta);
@@ -348,11 +343,11 @@ struct GenCorr {
348343
}
349344
} // mixed event
350345

351-
PROCESS_SWITCH(GenCorr, processSE, "process same event", false);
352-
PROCESS_SWITCH(GenCorr, processME, "process mixed event", false);
346+
PROCESS_SWITCH(LongrangeCorrelation, processSE, "process same event", false);
347+
PROCESS_SWITCH(LongrangeCorrelation, processME, "process mixed event", false);
353348
};
354349

355350
WorkflowSpec defineDataProcessing(ConfigContext const& cfgc)
356351
{
357-
return WorkflowSpec{adaptAnalysisTask<GenCorr>(cfgc)};
352+
return WorkflowSpec{adaptAnalysisTask<LongrangeCorrelation>(cfgc)};
358353
}

0 commit comments

Comments
 (0)