Skip to content

Commit 5ee80c3

Browse files
committed
Index access fix
1 parent 769587b commit 5ee80c3

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

Common/TableProducer/PID/pidTPCModule.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -545,7 +545,7 @@ class pidTPCModule
545545

546546
// faster counting
547547
for (const auto& track : tracks) {
548-
if(track.hasTPC()){
548+
if(track.hasTPC()&&track.collisionId()>-1){
549549
pidmults[track.collisionId()]++;
550550
totalTPCtracks++;
551551
if(track.hasITS()||track.hasTOF()||track.hasTRD()){

Common/TableProducer/PID/pidTPCService.cxx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ using namespace o2::framework;
5454

5555
o2::common::core::MetadataHelper metadataInfo; // Metadata helper
5656

57-
struct pidTPCService {
57+
struct pidTpcService {
5858

5959
// CCDB boilerplate declarations
6060
o2::framework::Configurable<std::string> ccdburl{"ccdburl", "http://alice-ccdb.cern.ch", "url of the ccdb repository"};
@@ -94,9 +94,9 @@ struct pidTPCService {
9494
pidTPC.process(ccdb, ccdbApi, bcs, collisions, tracks, static_cast<TObject*>(nullptr), products);
9595
}
9696

97-
PROCESS_SWITCH(pidTPCService, processTracks, "Process Tracks", false);
98-
PROCESS_SWITCH(pidTPCService, processTracksMC, "Process Tracks in MC (enables tune-on-data)", false);
99-
PROCESS_SWITCH(pidTPCService, processTracksIU, "Process TracksIU (experimental)", true);
97+
PROCESS_SWITCH(pidTpcService, processTracks, "Process Tracks", false);
98+
PROCESS_SWITCH(pidTpcService, processTracksMC, "Process Tracks in MC (enables tune-on-data)", false);
99+
PROCESS_SWITCH(pidTpcService, processTracksIU, "Process TracksIU (experimental)", true);
100100
};
101101

102102
//****************************************************************************************
@@ -109,6 +109,6 @@ WorkflowSpec defineDataProcessing(ConfigContext const& cfgc)
109109
// Parse the metadata for later too
110110
metadataInfo.initMetadata(cfgc);
111111

112-
WorkflowSpec workflow{adaptAnalysisTask<pidTPCService>(cfgc)};
112+
WorkflowSpec workflow{adaptAnalysisTask<pidTpcService>(cfgc)};
113113
return workflow;
114114
}

0 commit comments

Comments
 (0)