Skip to content

Commit

Permalink
Update centralityStudy.cxx
Browse files Browse the repository at this point in the history
  • Loading branch information
ddobrigk authored Oct 29, 2024
1 parent e13a36c commit 8afa2a2
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions Common/Tasks/centralityStudy.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ struct centralityStudy {

Configurable<bool> rejectITSinROFpileupStandard{"rejectITSinROFpileupStandard", false, "reject collisions in case of in-ROF ITS pileup (standard)"};
Configurable<bool> rejectITSinROFpileupStrict{"rejectITSinROFpileupStrict", false, "reject collisions in case of in-ROF ITS pileup (strict)"};
Configurable<bool> rejectCollInTimeRangeNarrow{"rejectCollInTimeRangeNarrow", false, "reject if extra colls in time range (narrow)"};

Configurable<bool> selectUPCcollisions{"selectUPCcollisions", false, "select collisions tagged with UPC flag"};

Expand Down Expand Up @@ -208,6 +209,12 @@ struct centralityStudy {
}
histos.fill(HIST("hCollisionSelection"), 13 /* is UPC event */);

if (rejectCollInTimeRangeNarrow && !collision.selection_bit(o2::aod::evsel::kNoCollInTimeRangeNarrow)) {
return;
}
histos.fill(HIST("hCollisionSelection"), 14 /* Not ITS ROF pileup (strict) */);


// if we got here, we also finally fill the FT0C histogram, please
histos.fill(HIST("hNPVContributors"), collision.multPVTotalContributors());
histos.fill(HIST("hFT0C_Collisions"), collision.multFT0C());
Expand Down Expand Up @@ -260,10 +267,10 @@ struct centralityStudy {
if (selectFV0OrA && !multbc.multBCFV0OrA())
return;
histos.fill(HIST("hBCSelection"), 3); // FV0OrA
if (vertexZwithT0 < 100.0f) {
if(vertexZwithT0<100.0f){

Check failure on line 270 in Common/Tasks/centralityStudy.cxx

View workflow job for this annotation

GitHub Actions / PR formatting / whitespace

Trailing spaces

Remove the trailing spaces at the end of the line.
if (!multbc.multBCFT0PosZValid())
return;
if (TMath::Abs(multbc.multBCFT0PosZ()) > vertexZwithT0)
if (TMath::Abs(multbc.multBCFT0PosZ())>vertexZwithT0)
return;
}
histos.fill(HIST("hBCSelection"), 4); // FV0OrA
Expand Down

0 comments on commit 8afa2a2

Please sign in to comment.