Skip to content

Commit 340d5b6

Browse files
authored
Fix o2 liner errors inside genCorr.cxx
1 parent 1257766 commit 340d5b6

File tree

1 file changed

+18
-18
lines changed

1 file changed

+18
-18
lines changed

PWGCF/TwoParticleCorrelations/Tasks/genCorr.cxx

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -79,19 +79,19 @@ struct GenCorr {
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{"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"};
8383
} cfgCcdbParam;
8484

8585
SliceCache cache;
8686
Service<o2::ccdb::BasicCCDBManager> ccdb;
8787
o2::ccdb::CcdbApi ccdbApi;
8888
std::vector<o2::detectors::AlignParam>* offsetFT0;
8989
HistogramRegistry histos{"histos", {}, OutputObjHandlingPolicy::AnalysisObject};
90-
Configurable<float> cfgVtxCut{"vtxRange", 10.0f, "Vertex Z range to consider"};
91-
Configurable<float> cfgEtaCut{"etaRange", 1.0f, "Eta range to consider"};
90+
Configurable<float> cfgVtxCut{"cfgVtxCut", 10.0f, "Vertex Z range to consider"};
91+
Configurable<float> cfgEtaCut{"cfgEtaCut", 1.0f, "Eta range to consider"};
9292
Configurable<float> dcaZ{"dcaZ", 0.2f, "Custom DCA Z cut (ignored if negative)"};
93-
Configurable<float> cfgPtCutMin{"ptCutmin", 0.2f, "minimum accepted track pT"};
94-
Configurable<float> cfgPtCutMax{"ptCutmax", 10.0f, "maximum accepted track pT"};
93+
Configurable<float> cfgPtCutMin{"cfgPtCutMin", 0.2f, "minimum accepted track pT"};
94+
Configurable<float> cfgPtCutMax{"cfgPtCutMax", 10.0f, "maximum accepted track pT"};
9595
Configurable<int> mixingParameter{"mixingParameter", 5, "how many events are mixed"};
9696
Configurable<int> cfgMinMult{"cfgMinMult", 0, "Minimum multiplicity for collision"};
9797
Configurable<int> cfgMaxMult{"cfgMaxMult", 10, "Maximum multiplicity for collision"};
@@ -112,9 +112,9 @@ struct GenCorr {
112112
ConfigurableAxis axisSample{"axisSample", {cfgSampleSize, 0, cfgSampleSize}, "sample axis for histograms"};
113113
ConfigurableAxis axisMultiplicity{"axisMultiplicity", {VARIABLE_WIDTH, 0, 5, 10, 15, 20, 25, 30, 35, 40, 50, 60, 80, 100}, "multiplicity / centrality axis for histograms"};
114114

115-
using coltable = soa::Join<aod::Collisions, aod::EvSels>;
116-
using trkstable = soa::Filtered<soa::Join<aod::Tracks, aod::TracksExtra, aod::TracksDCA, aod::TrackSelection>>;
117-
Preslice<trkstable> perCollision = aod::track::collisionId;
115+
using CollTable = soa::Join<aod::Collisions, aod::EvSels>;
116+
using TrksTable = soa::Filtered<soa::Join<aod::Tracks, aod::TracksExtra, aod::TracksDCA, aod::TrackSelection>>;
117+
Preslice<TrksTable> perCollision = aod::track::collisionId;
118118

119119
OutputObj<CorrelationContainer> same{Form("sameEvent_%i_%i", static_cast<int>(cfgMinMult), static_cast<int>(cfgMaxMult))};
120120
OutputObj<CorrelationContainer> mixed{Form("mixedEvent_%i_%i", static_cast<int>(cfgMinMult), static_cast<int>(cfgMaxMult))};
@@ -127,9 +127,9 @@ struct GenCorr {
127127
ccdb->setLocalObjectValidityChecking();
128128
ccdb->setCreatedNotAfter(std::chrono::duration_cast<std::chrono::milliseconds>(std::chrono::system_clock::now().time_since_epoch()).count());
129129
LOGF(info, "Getting alignment offsets from the CCDB...");
130-
offsetFT0 = ccdb->getForTimeStamp<std::vector<o2::detectors::AlignParam>>("FT0/Calib/Align", cfgCcdbParam.nolaterthan.value);
131-
printf("Offset for FT0A: x = %.3f y = %.3f z = %.3f\n", (*offsetFT0)[0].getX(), (*offsetFT0)[0].getY(), (*offsetFT0)[0].getZ());
132-
printf("Offset for FT0C: x = %.3f y = %.3f z = %.3f\n", (*offsetFT0)[1].getX(), (*offsetFT0)[1].getY(), (*offsetFT0)[1].getZ());
130+
offsetFT0 = ccdb->getForTimeStamp<std::vector<o2::detectors::AlignParam>>("FT0/Calib/Align", cfgCcdbParam.noLaterThan.value);
131+
LOGF(info, "Offset for FT0A: x = %.3f y = %.3f z = %.3f\n", (*offsetFT0)[0].getX(), (*offsetFT0)[0].getY(), (*offsetFT0)[0].getZ());
132+
LOGF(info, "Offset for FT0C: x = %.3f y = %.3f z = %.3f\n", (*offsetFT0)[1].getX(), (*offsetFT0)[1].getY(), (*offsetFT0)[1].getZ());
133133

134134
// QA histos
135135
histos.add("QA/EventHist", "events", kTH1F, {axisEvent}, false);
@@ -184,7 +184,7 @@ struct GenCorr {
184184
mixed.setObject(new CorrelationContainer(Form("mixedEvent_%i_%i", static_cast<int>(cfgMinMult), static_cast<int>(cfgMaxMult)), Form("mixedEvent_%i_%i", static_cast<int>(cfgMinMult), static_cast<int>(cfgMaxMult)), corrAxis, effAxis, userAxis));
185185
}
186186

187-
double GetPhiFT0(int chno, double offsetX, double offsetY)
187+
double getPhiFT0(int chno, double offsetX, double offsetY)
188188
{
189189
o2::ft0::Geometry ft0Det;
190190
ft0Det.calculateChannelCenter();
@@ -196,7 +196,7 @@ struct GenCorr {
196196
return phi;
197197
}
198198

199-
double GetEtaFT0(int chno, double offsetX, double offsetY, double offsetZ)
199+
double getEtaFT0(int chno, double offsetX, double offsetY, double offsetZ)
200200
{
201201
o2::ft0::Geometry ft0Det;
202202
ft0Det.calculateChannelCenter();
@@ -279,8 +279,8 @@ struct GenCorr {
279279
else
280280
histos.fill(HIST("SE/FT0Amp"), chanelid, ampl);
281281

282-
auto phiA = GetPhiFT0(chanelid, offsetFT0Ax, offsetFT0Ay);
283-
auto etaA = GetEtaFT0(chanelid, offsetFT0Ax, offsetFT0Ay, offsetFT0Az);
282+
auto phiA = getPhiFT0(chanelid, offsetFT0Ax, offsetFT0Ay);
283+
auto etaA = getEtaFT0(chanelid, offsetFT0Ax, offsetFT0Ay, offsetFT0Az);
284284

285285
if (mixing) {
286286
histos.fill(HIST("ME/FT0Aeta"), etaA);
@@ -303,7 +303,7 @@ struct GenCorr {
303303
} // trigger tracks
304304
} // fillCorrelation
305305

306-
void processSE(coltable::iterator const& col, aod::FT0s const&, trkstable const& tracks)
306+
void processSE(CollTable::iterator const& col, aod::FT0s const&, TrksTable const& tracks)
307307
{
308308
if (!isEventSelected(col)) {
309309
return;
@@ -318,9 +318,9 @@ struct GenCorr {
318318
}
319319
} // same event
320320

321-
void processME(coltable const& col, aod::FT0s const&, trkstable const& tracks)
321+
void processME(CollTable const& col, aod::FT0s const&, TrksTable const& tracks)
322322
{
323-
auto getTracksSize = [&tracks, this](coltable::iterator const& collision) {
323+
auto getTracksSize = [&tracks, this](CollTable::iterator const& collision) {
324324
auto associatedTracks = tracks.sliceByCached(o2::aod::track::collisionId, collision.globalIndex(), this->cache);
325325
return associatedTracks.size();
326326
};

0 commit comments

Comments
 (0)