@@ -76,6 +76,7 @@ struct EmcalCorrectionTask {
76
76
OutputObj<TH2I> hCellRowCol{" hCellRowCol" };
77
77
OutputObj<TH1F> hClusterE{" hClusterE" };
78
78
OutputObj<TH2F> hClusterEtaPhi{" hClusterEtaPhi" };
79
+ OutputObj<TH1F> hCollisionMatching{" hCollisionMatching" };
79
80
80
81
void init (InitContext const &)
81
82
{
@@ -137,6 +138,7 @@ struct EmcalCorrectionTask {
137
138
hCellRowCol.setObject (new TH2I (" hCellRowCol" , " hCellRowCol;Column;Row" , 97 , 0 , 97 , 600 , 0 , 600 ));
138
139
hClusterE.setObject (new TH1F (" hClusterE" , " hClusterE" , 200 , 0.0 , 100 ));
139
140
hClusterEtaPhi.setObject (new TH2F (" hClusterEtaPhi" , " hClusterEtaPhi" , 160 , -0.8 , 0.8 , 72 , 0 , 2 * 3.14159 ));
141
+ hCollisionMatching.setObject (new TH1F (" hCollisionMatching" , " hCollisionMatching" , 3 , -0.5 , 2.5 )); // 0, no vertex,1 vertex found , 2 multiple vertices found
140
142
}
141
143
142
144
// void process(aod::Collision const& collision, soa::Filtered<aod::Tracks> const& fullTracks, aod::Calos const& cells)
@@ -220,6 +222,8 @@ struct EmcalCorrectionTask {
220
222
float vx = 0 , vy = 0 , vz = 0 ;
221
223
bool hasCollision = false ;
222
224
if (collisions.size () > 1 ) {
225
+ if (i == 0 )
226
+ hCollisionMatching->Fill (2 );
223
227
LOG (error) << " More than one collision in the bc. This is not supported." ;
224
228
} else {
225
229
// dummy loop to get the first collision
@@ -228,6 +232,8 @@ struct EmcalCorrectionTask {
228
232
vy = col.posY ();
229
233
vz = col.posZ ();
230
234
hasCollision = true ;
235
+ if (i == 0 )
236
+ hCollisionMatching->Fill (1 );
231
237
232
238
// store positions of all tracks of collision
233
239
auto groupedTracks = tracks.sliceBy (perCollision, col.globalIndex ());
@@ -298,7 +304,9 @@ struct EmcalCorrectionTask {
298
304
} // end of collision loop
299
305
}
300
306
if (!hasCollision) {
301
- LOG (warning) << " No vertex found for event. Assuming (0,0,0)." ;
307
+ if (i == 0 )
308
+ hCollisionMatching->Fill (0 );
309
+ // LOG(warning) << "No vertex found for event. Assuming (0,0,0).";
302
310
}
303
311
304
312
// Store the clusters in the table where a mathcing collision could
0 commit comments