Skip to content

Commit

Permalink
Add BC selection flags for x-checks
Browse files Browse the repository at this point in the history
  • Loading branch information
ddobrigk authored Oct 29, 2024
1 parent 755433d commit 4fb8ce1
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions Common/Tasks/centralityStudy.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,10 @@ struct centralityStudy {

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

Configurable<bool> selectCollidingBCs{"selectCollidingBCs", true, "BC analysis: select colliding BCs"};
Configurable<bool> selectTVX{"selectTVX", true, "BC analysis: select TVX"};
Configurable<bool> selectFV0OrA{"selectFV0OrA", true, "BC analysis: select FV0OrA"};

Configurable<float> minTimeDelta{"minTimeDelta", -1.0f, "reject collision if another collision is this close or less in time"};
Configurable<float> minFT0CforVertexZ{"minFT0CforVertexZ", 250, "minimum FT0C for vertex-Z profile calculation"};

Expand Down Expand Up @@ -246,13 +250,13 @@ struct centralityStudy {
// process BCs, calculate FT0C distribution
// conditionals suggested by FIT team (Jacek O. et al)
histos.fill(HIST("hBCSelection"), 0); // all BCs
if (!multbc.multBCColliding())
if (selectCollidingBCs && !multbc.multBCColliding())
return;
histos.fill(HIST("hBCSelection"), 1); // colliding
if (!multbc.multBCTVX())
if (selectTVX && !multbc.multBCTVX())
return;
histos.fill(HIST("hBCSelection"), 2); // TVX
if (!multbc.multBCFV0OrA())
if (selectFV0OrA && !multbc.multBCFV0OrA())
return;
histos.fill(HIST("hBCSelection"), 3); // FV0OrA

Expand Down

0 comments on commit 4fb8ce1

Please sign in to comment.