Skip to content

Commit

Permalink
update of occupancy-based event selection (#6548)
Browse files Browse the repository at this point in the history
* Update EventSelectionParams.h

new flags for occupancy-based seleciton

* Update EventSelectionParams.cxx

new flags for occupancy-based selection

* Update eventSelection.cxx

update on occupancy selection: weighted occupancy and occupancy selection bits

* Update EventSelectionParams.cxx

* Update eventSelection.cxx

* Update eventSelection.cxx
  • Loading branch information
altsybee committed Jun 16, 2024
1 parent f680601 commit 1c2fb57
Show file tree
Hide file tree
Showing 3 changed files with 161 additions and 61 deletions.
11 changes: 9 additions & 2 deletions Common/CCDB/EventSelectionParams.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ const char* selectionLabels[kNsel] = {
"kNoV0C012vsTklBG",
"kNoInconsistentVtx",
"kNoPileupInMultBins",
"kNoPilupMV",
"kNoPileupMV",
"kNoPileupTPC",
"kIsTriggerTVX",
"kIsINT1",
Expand All @@ -54,7 +54,14 @@ const char* selectionLabels[kNsel] = {
"kIsGoodZvtxFT0vsPV",
"kIsVertexITSTPC",
"kIsVertexTOFmatched",
"kIsVertexTRDmatched"};
"kIsVertexTRDmatched",
"kNoHighOccupancyAgressive",
"kNoHighOccupancyStrict",
"kNoHighOccupancyMedium",
"kNoHighOccupancyRelaxed",
"kNoHighOccupancyGentle",
"kNoCollInTimeRangeStandard",
"kNoCollInTimeRangeNarrow"};
} // namespace o2::aod::evsel

using namespace o2::aod::evsel;
Expand Down
93 changes: 50 additions & 43 deletions Common/CCDB/EventSelectionParams.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,48 +19,55 @@ namespace o2::aod::evsel
{
// Event selection criteria
enum EventSelectionFlags {
kIsBBV0A = 0, // cell-averaged time in V0A in beam-beam window
kIsBBV0C, // cell-averaged time in V0C in beam-beam window (for Run 2 only)
kIsBBFDA, // cell-averaged time in FDA (or AD in Run2) in beam-beam window
kIsBBFDC, // cell-averaged time in FDC (or AD in Run2) in beam-beam window
kIsBBT0A, // cell-averaged time in T0A in beam-beam window
kIsBBT0C, // cell-averaged time in T0C in beam-beam window
kNoBGV0A, // cell-averaged time in V0A in beam-gas window
kNoBGV0C, // cell-averaged time in V0C in beam-gas window (for Run 2 only)
kNoBGFDA, // cell-averaged time in FDA (AD in Run2) in beam-gas window
kNoBGFDC, // cell-averaged time in FDC (AD in Run2) in beam-gas window
kNoBGT0A, // cell-averaged time in T0A in beam-gas window
kNoBGT0C, // cell-averaged time in T0C in beam-gas window
kIsBBZNA, // time in common ZNA channel in beam-beam window
kIsBBZNC, // time in common ZNC channel in beam-beam window
kIsBBZAC, // time in ZNA and ZNC in beam-beam window - circular cut in ZNA-ZNC plane
kNoBGZNA, // time in common ZNA channel is outside of beam-gas window
kNoBGZNC, // time in common ZNC channel is outside of beam-gas window
kNoV0MOnVsOfPileup, // no out-of-bunch pileup according to online-vs-offline VOM correlation
kNoSPDOnVsOfPileup, // no out-of-bunch pileup according to online-vs-offline SPD correlation
kNoV0Casymmetry, // no beam-gas according to correlation of V0C multiplicities in V0C3 and V0C012
kIsGoodTimeRange, // good time range
kNoIncompleteDAQ, // complete event according to DAQ flags
kNoTPCLaserWarmUp, // no TPC laser warm-up event (used in Run 1)
kNoTPCHVdip, // no TPC HV dip
kNoPileupFromSPD, // no pileup according to SPD vertexer
kNoV0PFPileup, // no out-of-bunch pileup according to V0 past-future info
kNoSPDClsVsTklBG, // no beam-gas according to cluster-vs-tracklet correlation
kNoV0C012vsTklBG, // no beam-gas according to V0C012-vs-tracklet correlation
kNoInconsistentVtx, // no inconsistency in SPD and Track vertices
kNoPileupInMultBins, // no pileup according to multiplicity-differential pileup checks
kNoPileupMV, // no pileup according to multi-vertexer
kNoPileupTPC, // no pileup in TPC
kIsTriggerTVX, // FT0 vertex (acceptable FT0C-FT0A time difference) at trigger level
kIsINT1, // SPDGFO >= 1 || V0A || V0C
kNoITSROFrameBorder, // bunch crossing is far from ITS RO Frame border
kNoTimeFrameBorder, // bunch crossing is far from Time Frame borders
kNoSameBunchPileup, // reject collisions in case of pileup with another collision in the same foundBC
kIsGoodZvtxFT0vsPV, // small difference between z-vertex from PV and from FT0
kIsVertexITSTPC, // at least one ITS-TPC track (reject vertices built from ITS-only tracks)
kIsVertexTOFmatched, // at least one of vertex contributors is matched to TOF
kIsVertexTRDmatched, // at least one of vertex contributors is matched to TRD
kNsel // counter
kIsBBV0A = 0, // cell-averaged time in V0A in beam-beam window
kIsBBV0C, // cell-averaged time in V0C in beam-beam window (for Run 2 only)
kIsBBFDA, // cell-averaged time in FDA (or AD in Run2) in beam-beam window
kIsBBFDC, // cell-averaged time in FDC (or AD in Run2) in beam-beam window
kIsBBT0A, // cell-averaged time in T0A in beam-beam window
kIsBBT0C, // cell-averaged time in T0C in beam-beam window
kNoBGV0A, // cell-averaged time in V0A in beam-gas window
kNoBGV0C, // cell-averaged time in V0C in beam-gas window (for Run 2 only)
kNoBGFDA, // cell-averaged time in FDA (AD in Run2) in beam-gas window
kNoBGFDC, // cell-averaged time in FDC (AD in Run2) in beam-gas window
kNoBGT0A, // cell-averaged time in T0A in beam-gas window
kNoBGT0C, // cell-averaged time in T0C in beam-gas window
kIsBBZNA, // time in common ZNA channel in beam-beam window
kIsBBZNC, // time in common ZNC channel in beam-beam window
kIsBBZAC, // time in ZNA and ZNC in beam-beam window - circular cut in ZNA-ZNC plane
kNoBGZNA, // time in common ZNA channel is outside of beam-gas window
kNoBGZNC, // time in common ZNC channel is outside of beam-gas window
kNoV0MOnVsOfPileup, // no out-of-bunch pileup according to online-vs-offline VOM correlation
kNoSPDOnVsOfPileup, // no out-of-bunch pileup according to online-vs-offline SPD correlation
kNoV0Casymmetry, // no beam-gas according to correlation of V0C multiplicities in V0C3 and V0C012
kIsGoodTimeRange, // good time range
kNoIncompleteDAQ, // complete event according to DAQ flags
kNoTPCLaserWarmUp, // no TPC laser warm-up event (used in Run 1)
kNoTPCHVdip, // no TPC HV dip
kNoPileupFromSPD, // no pileup according to SPD vertexer
kNoV0PFPileup, // no out-of-bunch pileup according to V0 past-future info
kNoSPDClsVsTklBG, // no beam-gas according to cluster-vs-tracklet correlation
kNoV0C012vsTklBG, // no beam-gas according to V0C012-vs-tracklet correlation
kNoInconsistentVtx, // no inconsistency in SPD and Track vertices
kNoPileupInMultBins, // no pileup according to multiplicity-differential pileup checks
kNoPileupMV, // no pileup according to multi-vertexer
kNoPileupTPC, // no pileup in TPC
kIsTriggerTVX, // FT0 vertex (acceptable FT0C-FT0A time difference) at trigger level
kIsINT1, // SPDGFO >= 1 || V0A || V0C
kNoITSROFrameBorder, // bunch crossing is far from ITS RO Frame border
kNoTimeFrameBorder, // bunch crossing is far from Time Frame borders
kNoSameBunchPileup, // reject collisions in case of pileup with another collision in the same foundBC
kIsGoodZvtxFT0vsPV, // small difference between z-vertex from PV and from FT0
kIsVertexITSTPC, // at least one ITS-TPC track (reject vertices built from ITS-only tracks)
kIsVertexTOFmatched, // at least one of vertex contributors is matched to TOF
kIsVertexTRDmatched, // at least one of vertex contributors is matched to TRD
kNoHighOccupancyAgressive, // no occupancy according to the agressive cuts
kNoHighOccupancyStrict, // no occupancy according to the strict cuts
kNoHighOccupancyMedium, // no occupancy according to the medium cuts
kNoHighOccupancyRelaxed, // no occupancy according to the relaxed cuts
kNoHighOccupancyGentle, // no occupancy according to the gentle cuts
kNoCollInTimeRangeStandard, // no collisions in specified time range
kNoCollInTimeRangeNarrow, // no collisions in specified time range (narrower than Standard)
kNsel // counter
};

extern const char* selectionLabels[kNsel];
Expand Down Expand Up @@ -147,7 +154,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, 5)
ClassDefNV(EventSelectionParams, 6)
};

#endif // COMMON_CCDB_EVENTSELECTIONPARAMS_H_
Loading

0 comments on commit 1c2fb57

Please sign in to comment.