@@ -387,7 +387,7 @@ struct Kstarqa {
387387 double massKa = o2::constants::physics::MassKPlus;
388388
389389 template <typename Coll>
390- bool selectionEvent (const Coll& collision, bool fillHist = false )
390+ bool selectionEvent (const Coll& collision, bool fillHist = false ) // default to false
391391 {
392392 if (fillHist)
393393 rEventSelection.fill (HIST (" hEventCut" ), 0 );
@@ -937,7 +937,7 @@ struct Kstarqa {
937937 int occupancy = collision.trackOccupancyInTimeRange ();
938938 rEventSelection.fill (HIST (" hOccupancy" ), occupancy);
939939
940- if (!selectionEvent (collision, true )) {
940+ if (!selectionEvent (collision, true )) { // fill event cut histogram
941941 return ;
942942 }
943943
@@ -1148,7 +1148,7 @@ struct Kstarqa {
11481148 // if (!c1.sel8() || !c2.sel8())
11491149 // continue;
11501150
1151- if (!selectionEvent (c1, false ) || !selectionEvent (c2, false )) {
1151+ if (!selectionEvent (c1, false ) || !selectionEvent (c2, false )) { // don't fill event cut histogram
11521152 continue ;
11531153 }
11541154
@@ -1214,7 +1214,7 @@ struct Kstarqa {
12141214 auto runMixing = [&](auto & pair, auto multiplicityGetter) {
12151215 for (const auto & [c1, tracks1, c2, tracks2] : pair) {
12161216
1217- if (!selectionEvent (c1, false ) || !selectionEvent (c2, false )) {
1217+ if (!selectionEvent (c1, false ) || !selectionEvent (c2, false )) { // don't fill event cut histogram
12181218 continue ;
12191219 }
12201220
@@ -1297,7 +1297,7 @@ struct Kstarqa {
12971297 int occupancy = collision.trackOccupancyInTimeRange ();
12981298 rEventSelection.fill (HIST (" hOccupancy" ), occupancy);
12991299
1300- if (!selectionEvent (collision, false )) {
1300+ if (!selectionEvent (collision, false )) { // don't fill event cut histogram
13011301 return ;
13021302 }
13031303
@@ -1533,7 +1533,7 @@ struct Kstarqa {
15331533 rEventSelection.fill (HIST (" eventsCheckGen" ), 2.5 );
15341534
15351535 for (const auto & collision : collisions) {
1536- if (!selectionEvent (collision, false )) {
1536+ if (!selectionEvent (collision, false )) { // don't fill event cut histogram
15371537 continue ;
15381538 }
15391539 multiplicity = collision.centFT0M ();
@@ -1657,7 +1657,7 @@ struct Kstarqa {
16571657 for (const auto & RecCollision : recCollisions) {
16581658 if (!RecCollision.has_mcCollision ())
16591659 continue ;
1660- if (!selectionEvent (RecCollision, false ))
1660+ if (!selectionEvent (RecCollision, false )) // don't fill event cut histogram
16611661 continue ;
16621662 // multiplicity1 = RecCollision.centFT0M();
16631663 const auto & mcCollisionRec = RecCollision.mcCollision_as <EventMCGenerated>();
@@ -1732,7 +1732,7 @@ struct Kstarqa {
17321732 hInvMass.fill (HIST (" hAllRecCollisions" ), multiplicity);
17331733 hInvMass.fill (HIST (" hAllRecCollisionsCalib" ), multiplicityRec);
17341734
1735- if (!selectionEvent (collision, false )) {
1735+ if (!selectionEvent (collision, false )) { // don't fill event cut histogram
17361736 return ;
17371737 }
17381738
@@ -1995,7 +1995,7 @@ struct Kstarqa {
19951995 hInvMass.fill (HIST (" hAllRecCollisions" ), multiplicity);
19961996 hInvMass.fill (HIST (" hAllRecCollisionsCalib" ), multiplicityRec);
19971997
1998- if (!selectionEvent (collision, false )) {
1998+ if (!selectionEvent (collision, false )) { // don't fill event cut histogram
19991999 return ;
20002000 }
20012001
0 commit comments