|
9 | 9 | // granted to it by virtue of its status as an Intergovernmental Organization |
10 | 10 | // or submit itself to any jurisdiction. |
11 | 11 | /// |
12 | | -/// \file genCorr.cxx |
| 12 | +/// \file longrangeCorrelation.cxx |
13 | 13 | /// |
14 | | -/// \brief task for correlation analysis |
| 14 | +/// \brief task for long range correlation analysis |
15 | 15 | /// \author Abhi Modak (abhi.modak@cern.ch) and Debojit sarkar (debojit.sarkar@cern.ch) |
16 | 16 | /// \since April 22, 2025 |
17 | 17 |
|
@@ -75,11 +75,11 @@ AxisSpec axisEvent{10, 0.5, 9.5, "#Event", "EventAxis"}; |
75 | 75 | AxisSpec amplitudeFT0{5000, 0, 10000, "FT0 amplitude"}; |
76 | 76 | AxisSpec channelFT0Axis{96, 0.0, 96.0, "FT0 channel"}; |
77 | 77 |
|
78 | | -struct GenCorr { |
| 78 | +struct LongrangeCorrelation { |
79 | 79 |
|
80 | 80 | struct : ConfigurableGroup { |
81 | 81 | 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"}; |
83 | 83 | } cfgCcdbParam; |
84 | 84 |
|
85 | 85 | SliceCache cache; |
@@ -189,11 +189,7 @@ struct GenCorr { |
189 | 189 | o2::ft0::Geometry ft0Det; |
190 | 190 | ft0Det.calculateChannelCenter(); |
191 | 191 | 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); |
197 | 193 | } |
198 | 194 |
|
199 | 195 | double getEtaFT0(int chno, double offsetX, double offsetY, double offsetZ) |
@@ -293,8 +289,7 @@ struct GenCorr { |
293 | 289 | } |
294 | 290 | float deltaPhi = RecoDecay::constrainAngle(triggerTrack.phi() - phiA, -PIHalf); |
295 | 291 | float deltaEta = triggerTrack.eta() - etaA; |
296 | | - // LOGF(info, "delta eta = %f and delta phi = %f", deltaEta, deltaPhi); |
297 | | - if (mixing) |
| 292 | + if (mixing) |
298 | 293 | histos.fill(HIST("ME/deltaEta_deltaPhi"), deltaPhi, deltaEta); |
299 | 294 | else |
300 | 295 | histos.fill(HIST("SE/deltaEta_deltaPhi"), deltaPhi, deltaEta); |
@@ -348,11 +343,11 @@ struct GenCorr { |
348 | 343 | } |
349 | 344 | } // mixed event |
350 | 345 |
|
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); |
353 | 348 | }; |
354 | 349 |
|
355 | 350 | WorkflowSpec defineDataProcessing(ConfigContext const& cfgc) |
356 | 351 | { |
357 | | - return WorkflowSpec{adaptAnalysisTask<GenCorr>(cfgc)}; |
| 352 | + return WorkflowSpec{adaptAnalysisTask<LongrangeCorrelation>(cfgc)}; |
358 | 353 | } |
0 commit comments