forked from AliceO2Group/O2Physics
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Common,DPG] Added time-dependent ITS dead-zone flags (AliceO2Group#9038
- Loading branch information
Showing
4 changed files
with
283 additions
and
187 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,6 +9,13 @@ | |
// granted to it by virtue of its status as an Intergovernmental Organization | ||
// or submit itself to any jurisdiction. | ||
|
||
/// \file EventSelectionParams.cxx | ||
/// \brief Event selection parameters | ||
/// | ||
/// \author Evgeny Kryshen <[email protected]> and Igor Altsybeev <[email protected]> | ||
|
||
// o2-linter: disable=name/workflow-file | ||
|
||
#include "EventSelectionParams.h" | ||
|
||
namespace o2::aod::evsel | ||
|
@@ -61,7 +68,10 @@ const char* selectionLabels[kNsel] = { | |
"kNoCollInTimeRangeVzDependent", | ||
"kNoCollInRofStrict", | ||
"kNoCollInRofStandard", | ||
"kNoHighMultCollInPrevRof"}; | ||
"kNoHighMultCollInPrevRof", | ||
"kIsGoodITSLayer3", | ||
"kIsGoodITSLayer0123", | ||
"kIsGoodITSLayersAll"}; | ||
} // namespace o2::aod::evsel | ||
|
||
using namespace o2::aod::evsel; | ||
|
@@ -166,7 +176,7 @@ EventSelectionParams::EventSelectionParams(int system, int run) | |
} | ||
} | ||
|
||
void EventSelectionParams::DisableOutOfBunchPileupCuts() | ||
void EventSelectionParams::disableOutOfBunchPileupCuts() | ||
{ | ||
selectionBarrel[kNoV0MOnVsOfPileup] = 0; | ||
selectionBarrel[kNoSPDOnVsOfPileup] = 0; | ||
|
@@ -184,15 +194,15 @@ void EventSelectionParams::DisableOutOfBunchPileupCuts() | |
selectionMuonWithoutPileupCuts[kNoV0PFPileup] = 0; | ||
} | ||
|
||
void EventSelectionParams::SetOnVsOfParams(float newV0MOnVsOfA, float newV0MOnVsOfB, float newSPDOnVsOfA, float newSPDOnVsOfB) | ||
void EventSelectionParams::setOnVsOfParams(float newV0MOnVsOfA, float newV0MOnVsOfB, float newSPDOnVsOfA, float newSPDOnVsOfB) | ||
{ | ||
fV0MOnVsOfA = newV0MOnVsOfA; | ||
fV0MOnVsOfB = newV0MOnVsOfB; | ||
fSPDOnVsOfA = newSPDOnVsOfA; | ||
fSPDOnVsOfB = newSPDOnVsOfB; | ||
} | ||
|
||
bool* EventSelectionParams::GetSelection(int iSelection) | ||
bool* EventSelectionParams::getSelection(int iSelection) | ||
{ | ||
if (iSelection == 0) { | ||
return selectionBarrel; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,6 +9,11 @@ | |
// granted to it by virtue of its status as an Intergovernmental Organization | ||
// or submit itself to any jurisdiction. | ||
|
||
/// \file EventSelectionParams.h | ||
/// \brief Event selection parameters | ||
/// | ||
/// \author Evgeny Kryshen <[email protected]> and Igor Altsybeev <[email protected]> | ||
|
||
#ifndef COMMON_CCDB_EVENTSELECTIONPARAMS_H_ | ||
#define COMMON_CCDB_EVENTSELECTIONPARAMS_H_ | ||
|
||
|
@@ -67,6 +72,9 @@ enum EventSelectionFlags { | |
kNoCollInRofStrict, // no other collisions in this Readout Frame | ||
kNoCollInRofStandard, // no other collisions in this Readout Frame with per-collision multiplicity above threshold | ||
kNoHighMultCollInPrevRof, // veto an event if FT0C amplitude in previous ITS ROF is above threshold | ||
kIsGoodITSLayer3, // number of inactive chips on ITS layer 3 is below maximum allowed value | ||
kIsGoodITSLayer0123, // numbers of inactive chips on ITS layers 0-3 are below maximum allowed values | ||
kIsGoodITSLayersAll, // numbers of inactive chips on all ITS layers are below maximum allowed values | ||
kNsel // counter | ||
}; | ||
|
||
|
@@ -77,10 +85,10 @@ extern const char* selectionLabels[kNsel]; | |
class EventSelectionParams | ||
{ | ||
public: | ||
explicit EventSelectionParams(int system = 0, int run = 2); | ||
void DisableOutOfBunchPileupCuts(); | ||
void SetOnVsOfParams(float newV0MOnVsOfA, float newV0MOnVsOfB, float newSPDOnVsOfA, float newSPDOnVsOfB); | ||
bool* GetSelection(int iSelection); | ||
explicit EventSelectionParams(int system = 0, int run = 2); // o2-linter: disable=name/function-variable | ||
void disableOutOfBunchPileupCuts(); | ||
void setOnVsOfParams(float newV0MOnVsOfA, float newV0MOnVsOfB, float newSPDOnVsOfA, float newSPDOnVsOfB); | ||
bool* getSelection(int iSelection); | ||
|
||
bool selectionBarrel[o2::aod::evsel::kNsel]; | ||
bool selectionMuonWithPileupCuts[o2::aod::evsel::kNsel]; | ||
|
@@ -154,7 +162,7 @@ class EventSelectionParams | |
int fITSROFrameStartBorderMargin = 10; // number of bcs to cut in the beginning of ITS readout frame | ||
int fITSROFrameEndBorderMargin = 20; // number of bcs to cut in the end of ITS readout frame | ||
|
||
ClassDefNV(EventSelectionParams, 6) | ||
ClassDefNV(EventSelectionParams, 7) | ||
}; | ||
|
||
#endif // COMMON_CCDB_EVENTSELECTIONPARAMS_H_ |
Oops, something went wrong.