Skip to content

Commit d4944a6

Browse files
author
contrgui
committed
adding and deleting spaces, moving include two lines up
1 parent 3980c32 commit d4944a6

1 file changed

Lines changed: 8 additions & 11 deletions

File tree

PWGUD/Tasks/upcVmRof.cxx

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,9 @@
2323
#include <CommonConstants/LHCConstants.h>
2424
#include <CommonDataFormat/BunchFilling.h>
2525
#include <CommonDataFormat/TimeStamp.h>
26+
#include <DataFormatsITSMFT/DPLAlpideParam.h>
2627
#include <DataFormatsParameters/AggregatedRunInfo.h>
2728
#include <DataFormatsParameters/GRPLHCIFData.h>
28-
#include <DataFormatsITSMFT/DPLAlpideParam.h>
2929
#include <Framework/ASoA.h>
3030
#include <Framework/AnalysisDataModel.h>
3131
#include <Framework/AnalysisHelpers.h>
@@ -185,8 +185,8 @@ struct UpcVmRof {
185185
int nbcB = 0;
186186

187187
// variables to store ITS ROF info
188-
int rofPerOrbit = -1; // number of rofs per orbit
189-
int rofLength = -1; // number of bcs per ROF
188+
int rofPerOrbit = -1; // number of rofs per orbit
189+
int rofLength = -1; // number of bcs per ROF
190190
int rofShift = -1; // bc shift of ITS.
191191

192192
// variables to store run info
@@ -212,7 +212,7 @@ struct UpcVmRof {
212212
// reconstruction modes
213213
static constexpr int stdReco = 0;
214214
static constexpr int upcReco = 1;
215-
215+
216216
// information for selection collisions
217217
Configurable<float> maxAbsPosZ{"maxAbsPosZ", 10.0, "max |Z| position of vtx"};
218218
Configurable<float> maxAbsTimeFT0{"maxAbsTimeFT0", 4.0, "max |time| in a FT0 side"};
@@ -223,8 +223,6 @@ struct UpcVmRof {
223223
Configurable<float> maxTrkDcaZ{"maxTrkDcaZ", 2.0, "max DCA in z of track to vtx (cm)"};
224224
Configurable<int> tfPerBin{"tfPerBin", 10000, "timeframes per bin 1e4 means some 28 s"};
225225

226-
227-
228226
//--------------------------------------------------------------------------------
229227
// get ITS ROF info
230228
// code from https://github.com/AliceO2Group/O2Physics/blob/master/Common/Tools/EventSelectionModule.h#L779-L780
@@ -547,7 +545,7 @@ struct UpcVmRof {
547545
// select number of contributors
548546
bool isTwoContributors = (col.numContrib() == NTrksTwoBody);
549547
bool isFourContributors = (col.numContrib() == NTrksFourBody);
550-
if ( !isTwoContributors && !isFourContributors) {
548+
if (!isTwoContributors && !isFourContributors) {
551549
return;
552550
}
553551
if (isTwoContributors) {
@@ -603,11 +601,11 @@ struct UpcVmRof {
603601
selTrks.push_back(track);
604602
}
605603
bool isTwoBody = isTwoContributors && (selTrks.size() == NTrksTwoBody);
606-
bool isFourBody = isFourContributors && (selTrks.size() == NTrksFourBody);
604+
bool isFourBody = isFourContributors && (selTrks.size() == NTrksFourBody);
607605
if (!isTwoBody && !isFourBody) {
608606
return;
609607
}
610-
608+
611609
// selected events
612610
if (isTwoBody) {
613611
colTH1Pointers[Form("col/%d/colSel_H", runNumberCol)]->Fill(17);
@@ -738,8 +736,7 @@ struct UpcVmRof {
738736
} // ZDC info
739737

740738
// fill output table
741-
// int recoFlag = TESTBIT(col.flags(), dataformats::Vertex<o2::dataformats::TimeStamp<int>>::Flags::UPCMode) ? upcReco : stdReco;
742-
const int recoFlag= (col.flags() & dataformats::Vertex<o2::dataformats::TimeStamp<int>>::Flags::UPCMode) ? upcReco : stdReco;
739+
const int recoFlag = (col.flags() & dataformats::Vertex<o2::dataformats::TimeStamp<int>>::Flags::UPCMode) ? upcReco : stdReco;
743740
if (isTwoBody) {
744741
colTH1Pointers[Form("col/%d/twoTrkTF_H", runNumberCol)]->Fill(thisTF);
745742
twoTrkTable(runNumberCol, col.posX(), col.posY(), col.posZ(), col.chi2(), thisBC, thisTF, thisROF, recoFlag,

0 commit comments

Comments
 (0)