Skip to content

Commit 71a83e7

Browse files
author
contrgui
committed
Small changes according to results of checks and from Vit's request
1 parent aebc723 commit 71a83e7

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

PWGUD/Tasks/upcVmRof.cxx

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@
2626
#include <DataFormatsParameters/AggregatedRunInfo.h>
2727
#include <DataFormatsParameters/GRPLHCIFData.h>
2828
#include <DataFormatsITSMFT/DPLAlpideParam.h>
29-
//#include <ITSMFTBase/DPLAlpideParam.h>
3029
#include <Framework/ASoA.h>
3130
#include <Framework/AnalysisDataModel.h>
3231
#include <Framework/AnalysisHelpers.h>
@@ -166,7 +165,7 @@ struct UpcVmRof {
166165
Produces<o2::aod::FourTrkTable> fourTrkTable;
167166

168167
// services
169-
Service<o2::ccdb::BasicCCDBManager> ccdb; // access to database
168+
Service<o2::ccdb::BasicCCDBManager> ccdb{}; // access to database
170169

171170
// histograms
172171
HistogramRegistry bcTH1Registry{"bcTH1Registry", {}};
@@ -250,7 +249,7 @@ struct UpcVmRof {
250249
for (int i = 0; i < o2::constants::lhc::LHCMaxBunches; i++) {
251250
bcbIdx.push_back(-1);
252251
if (bcPatternB.test(i)) {
253-
bcbIdx[i]=nbcB;
252+
bcbIdx[i] = nbcB;
254253
nbcB++;
255254
}
256255
}
@@ -712,7 +711,7 @@ struct UpcVmRof {
712711
} // ZDC info
713712

714713
// fill output table
715-
int recoFlag = (col.flags() & dataformats::Vertex<o2::dataformats::TimeStamp<int>>::Flags::UPCMode) ? 1 : 0;
714+
int recoFlag = static_cast<int>((col.flags() & dataformats::Vertex<o2::dataformats::TimeStamp<int>>::Flags::UPCMode) ? true : false);
716715
if (selTrks.size() == NTrksTwoBody) {
717716
colTH1Pointers[Form("col/%d/twoTrkTF_H", runNumberCol)]->Fill(thisTF);
718717
twoTrkTable(runNumberCol, col.posX(), col.posY(), col.posZ(), col.chi2(), thisBC, thisTF, thisROF, recoFlag,

0 commit comments

Comments
 (0)