Skip to content

Commit e3d43cb

Browse files
committed
Please consider the following formatting changes
1 parent 456ae9f commit e3d43cb

File tree

4 files changed

+21
-22
lines changed

4 files changed

+21
-22
lines changed

Common/Core/EventPlaneHelper.cxx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -206,9 +206,9 @@ float EventPlaneHelper::GetEventPlane(const float qx, const float qy)
206206

207207
float EventPlaneHelper::GetResolution(const float RefA, const float RefB, const float sig, int nmode)
208208
{
209-
if (std::abs(std::cos((RefA - RefB) * nmode))>1e-8) {
209+
if (std::abs(std::cos((RefA - RefB) * nmode)) > 1e-8) {
210210
return std::sqrt(std::cos((sig - RefA) * nmode) * std::cos((sig - RefB) * nmode) / std::cos((RefA - RefB) * nmode));
211-
} else{
211+
} else {
212212
return -1;
213213
}
214214
}

Common/Core/EventPlaneHelper.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ class EventPlaneHelper
9393
float GetEventPlane(const float qx, const float qy);
9494

9595
// Method to calculate the resolution R2 for the provided profile.
96-
float GetResolution(const float RefA, const float RefB, const float sig, int nmode=2);
96+
float GetResolution(const float RefA, const float RefB, const float sig, int nmode = 2);
9797

9898
private:
9999
double mOffsetFT0AX = 0.; // X-coordinate of the offset of FT0-A.

Common/TableProducer/qVectorsTable.cxx

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ struct qVectorsTable {
212212

213213
TComplex QvecDet(0); // Complex value of the Q-vector for any detector.
214214
TComplex QvecFT0M(0);
215-
float sumAmplFT0A = 0.; // Sum of the amplitudes of all non-dead channels in any detector.
215+
float sumAmplFT0A = 0.; // Sum of the amplitudes of all non-dead channels in any detector.
216216
float sumAmplFT0C = 0.;
217217
float sumAmplFT0M = 0.;
218218
float sumAmplFV0A = 0.;
@@ -326,12 +326,12 @@ struct qVectorsTable {
326326
if (trk.eta() > 0) {
327327
qVectBPos[0] += trk.pt() * TMath::Cos(trk.phi() * cfgnMod);
328328
qVectBPos[1] += trk.pt() * TMath::Sin(trk.phi() * cfgnMod);
329-
TrkBPosLabel.push_back( trk.globalIndex() );
329+
TrkBPosLabel.push_back(trk.globalIndex());
330330
nTrkBPos++;
331331
} else if (trk.eta() < 0) {
332332
qVectBNeg[0] += trk.pt() * TMath::Cos(trk.phi() * cfgnMod);
333333
qVectBNeg[1] += trk.pt() * TMath::Sin(trk.phi() * cfgnMod);
334-
TrkBNegLabel.push_back( trk.globalIndex() );
334+
TrkBNegLabel.push_back(trk.globalIndex());
335335
nTrkBNeg++;
336336
}
337337
}
@@ -360,7 +360,6 @@ struct qVectorsTable {
360360
// LOKI: Each detector must have their own vector of correction constants.
361361
int cBin = helperEP.GetCentBin(cent);
362362

363-
364363
float qVectFT0ACorr[3][2];
365364
float qVectFT0CCorr[3][2];
366365
float qVectFT0MCorr[3][2];

Common/Tasks/qVectorsCorrection.cxx

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -129,10 +129,10 @@ struct qVectorsCorrection {
129129
histosQA.fill(HIST(qV::centClasses[cBin]) + HIST("histQvecFT0CTwist"), vec.qvecFT0CTwistRe(), vec.qvecFT0CTwistIm());
130130
histosQA.fill(HIST(qV::centClasses[cBin]) + HIST("histQvecFT0CFinal"), vec.qvecFT0CRe(), vec.qvecFT0CIm());
131131

132-
histosQA.fill(HIST(qV::centClasses[cBin]) + HIST("histEvtPlFT0CUncor"), helperEP.GetEventPlane(vec.qvecFT0CUncorRe(), vec.qvecFT0CUncorIm()) );
133-
histosQA.fill(HIST(qV::centClasses[cBin]) + HIST("histEvtPlFT0CRectr"), helperEP.GetEventPlane(vec.qvecFT0CRectrRe(), vec.qvecFT0CRectrIm()) );
134-
histosQA.fill(HIST(qV::centClasses[cBin]) + HIST("histEvtPlFT0CTwist"), helperEP.GetEventPlane(vec.qvecFT0CTwistRe(), vec.qvecFT0CTwistIm()) );
135-
histosQA.fill(HIST(qV::centClasses[cBin]) + HIST("histEvtPlFT0CFinal"), helperEP.GetEventPlane(vec.qvecFT0CRe(), vec.qvecFT0CIm()) );
132+
histosQA.fill(HIST(qV::centClasses[cBin]) + HIST("histEvtPlFT0CUncor"), helperEP.GetEventPlane(vec.qvecFT0CUncorRe(), vec.qvecFT0CUncorIm()));
133+
histosQA.fill(HIST(qV::centClasses[cBin]) + HIST("histEvtPlFT0CRectr"), helperEP.GetEventPlane(vec.qvecFT0CRectrRe(), vec.qvecFT0CRectrIm()));
134+
histosQA.fill(HIST(qV::centClasses[cBin]) + HIST("histEvtPlFT0CTwist"), helperEP.GetEventPlane(vec.qvecFT0CTwistRe(), vec.qvecFT0CTwistIm()));
135+
histosQA.fill(HIST(qV::centClasses[cBin]) + HIST("histEvtPlFT0CFinal"), helperEP.GetEventPlane(vec.qvecFT0CRe(), vec.qvecFT0CIm()));
136136
}
137137

138138
if (vec.nTrkBPos() > cfgMinTPCTracks) {
@@ -141,10 +141,10 @@ struct qVectorsCorrection {
141141
histosQA.fill(HIST(qV::centClasses[cBin]) + HIST("histQvecBPosTwist"), vec.qvecBPosTwistRe(), vec.qvecBPosTwistIm());
142142
histosQA.fill(HIST(qV::centClasses[cBin]) + HIST("histQvecBPosFinal"), vec.qvecBPosRe(), vec.qvecBPosIm());
143143

144-
histosQA.fill(HIST(qV::centClasses[cBin]) + HIST("histEvtPlBPosUncor"), helperEP.GetEventPlane(vec.qvecBPosUncorRe(), vec.qvecBPosUncorIm()) );
145-
histosQA.fill(HIST(qV::centClasses[cBin]) + HIST("histEvtPlBPosRectr"), helperEP.GetEventPlane(vec.qvecBPosRectrRe(), vec.qvecBPosRectrIm()) );
146-
histosQA.fill(HIST(qV::centClasses[cBin]) + HIST("histEvtPlBPosTwist"), helperEP.GetEventPlane(vec.qvecBPosTwistRe(), vec.qvecBPosTwistIm()) );
147-
histosQA.fill(HIST(qV::centClasses[cBin]) + HIST("histEvtPlBPosFinal"), helperEP.GetEventPlane(vec.qvecBPosRe(), vec.qvecBPosIm()) );
144+
histosQA.fill(HIST(qV::centClasses[cBin]) + HIST("histEvtPlBPosUncor"), helperEP.GetEventPlane(vec.qvecBPosUncorRe(), vec.qvecBPosUncorIm()));
145+
histosQA.fill(HIST(qV::centClasses[cBin]) + HIST("histEvtPlBPosRectr"), helperEP.GetEventPlane(vec.qvecBPosRectrRe(), vec.qvecBPosRectrIm()));
146+
histosQA.fill(HIST(qV::centClasses[cBin]) + HIST("histEvtPlBPosTwist"), helperEP.GetEventPlane(vec.qvecBPosTwistRe(), vec.qvecBPosTwistIm()));
147+
histosQA.fill(HIST(qV::centClasses[cBin]) + HIST("histEvtPlBPosFinal"), helperEP.GetEventPlane(vec.qvecBPosRe(), vec.qvecBPosIm()));
148148
}
149149

150150
if (vec.nTrkBNeg() > cfgMinTPCTracks) {
@@ -153,17 +153,17 @@ struct qVectorsCorrection {
153153
histosQA.fill(HIST(qV::centClasses[cBin]) + HIST("histQvecBNegTwist"), vec.qvecBNegTwistRe(), vec.qvecBNegTwistIm());
154154
histosQA.fill(HIST(qV::centClasses[cBin]) + HIST("histQvecBNegFinal"), vec.qvecBNegRe(), vec.qvecBNegIm());
155155

156-
histosQA.fill(HIST(qV::centClasses[cBin]) + HIST("histEvtPlBNegUncor"), helperEP.GetEventPlane(vec.qvecBNegUncorRe(), vec.qvecBNegUncorIm()) );
157-
histosQA.fill(HIST(qV::centClasses[cBin]) + HIST("histEvtPlBNegRectr"), helperEP.GetEventPlane(vec.qvecBNegRectrRe(), vec.qvecBNegRectrIm()) );
158-
histosQA.fill(HIST(qV::centClasses[cBin]) + HIST("histEvtPlBNegTwist"), helperEP.GetEventPlane(vec.qvecBNegTwistRe(), vec.qvecBNegTwistIm()) );
159-
histosQA.fill(HIST(qV::centClasses[cBin]) + HIST("histEvtPlBNegFinal"), helperEP.GetEventPlane(vec.qvecBNegRe(), vec.qvecBNegIm()) );
156+
histosQA.fill(HIST(qV::centClasses[cBin]) + HIST("histEvtPlBNegUncor"), helperEP.GetEventPlane(vec.qvecBNegUncorRe(), vec.qvecBNegUncorIm()));
157+
histosQA.fill(HIST(qV::centClasses[cBin]) + HIST("histEvtPlBNegRectr"), helperEP.GetEventPlane(vec.qvecBNegRectrRe(), vec.qvecBNegRectrIm()));
158+
histosQA.fill(HIST(qV::centClasses[cBin]) + HIST("histEvtPlBNegTwist"), helperEP.GetEventPlane(vec.qvecBNegTwistRe(), vec.qvecBNegTwistIm()));
159+
histosQA.fill(HIST(qV::centClasses[cBin]) + HIST("histEvtPlBNegFinal"), helperEP.GetEventPlane(vec.qvecBNegRe(), vec.qvecBNegIm()));
160160
}
161161

162162
if (vec.nTrkBPos() > cfgMinTPCTracks && vec.nTrkBNeg() > cfgMinTPCTracks && vec.sumAmplFT0C() > 1e-8) {
163163
histosQA.fill(HIST(qV::centClasses[cBin]) + HIST("histEvtPlResolution"), helperEP.GetResolution(
164-
helperEP.GetEventPlane(vec.qvecBPosRe(), vec.qvecBPosIm()),
165-
helperEP.GetEventPlane(vec.qvecBNegRe(), vec.qvecBNegIm()),
166-
helperEP.GetEventPlane(vec.qvecBPosRe(), vec.qvecBPosIm()), 2));
164+
helperEP.GetEventPlane(vec.qvecBPosRe(), vec.qvecBPosIm()),
165+
helperEP.GetEventPlane(vec.qvecBNegRe(), vec.qvecBNegIm()),
166+
helperEP.GetEventPlane(vec.qvecBPosRe(), vec.qvecBPosIm()), 2));
167167
}
168168
}
169169

0 commit comments

Comments
 (0)