11#ifndef ALICEO2_EMCAL_TRIGGERMAPPINGV2_H_
12#define ALICEO2_EMCAL_TRIGGERMAPPINGV2_H_
39 static constexpr unsigned int ALLTRUS = 52;
365 std::array<unsigned int, ALLTRUS> mTRUFastOROffsetX;
366 std::array<unsigned int, ALLTRUS> mTRUFastOROffsetY;
367 std::array<unsigned int, ALLTRUS> mNFastORInTRUPhi;
368 std::array<unsigned int, ALLTRUS> mNFastORInTRUEta;
369 std::bitset<ALLTRUS> mTRUIsCside;
371 std::array<unsigned int, SUPERMODULES> mSMFastOROffsetX;
372 std::array<unsigned int, SUPERMODULES> mSMFastOROffsetY;
373 std::array<unsigned int, SUPERMODULES> mNFastORInSMPhi;
374 std::array<unsigned int, SUPERMODULES> mNFastORInSMEta;
376 std::array<unsigned int, 5> mNModuleInEMCALPhi;
383 void init_TRU_offset();
384 void init_SM_offset();
433 if (supermoduleID < 10) {
436 if (supermoduleID < 12) {
439 if (supermoduleID < 18) {
442 if (supermoduleID < 20) {
446 throw SupermoduleIndexException(supermoduleID,
SUPERMODULES);
454 return (supermoduleID % 2 == 1) ?
true :
false;
configStandalone Reconstruction rec_tpc multiplier for the combined cluster track error during track following area in cm for the search of for z only used if decrease removal by when above this local occupancy rowx Shift of TPC revert cluster flag edge bit distance to edge exceeds this ZOffset for secondary multiple of radius max P of electron K BB bands crossing max P of electron p BB bands crossing max P of electron d BB bands crossing max P of electron t BB bands crossing min accepted dEdxMaxTPC of the track Additive extra cluster error for Y2 if edge flag set Additive extra cluster error for Y2 if single set Additive extra cluster error for Y2 if or single set Additive extra cluster error for Z2 if or single set Extra errors to add to track when crossing depending on addErrorsCECrossing Inner portion of y range in sector that is not used in searching for extrapolated track candidates factor2YS for track merging factor2K for track merging Margin in cm of Y position when rejecting edge clusters based on uncorrected track Y Max fraction of shared clusters for tracklet Except pad from cluster finding if total number of charges in a fragment is above this Except pad from cluster finding if number of consecutive charges in a fragment is above this Threshold where a timebin is considered disabling the noisy pad check for that pad Treat signal above this minimum as saturated Smoothing factor for the exponential Highly Ionising Particle tail filter Number of timebins to use for the averaging Add additional custom track errors when crossing relative as fraction of Do N fit passes in final fit of< 0:reject at max -n hits") AddOptionRTC(rejectIFCLowRadiusCluster, uint8_t, 1, "", 0, "Reject clusters that get the IFC mask error during refit") AddOptionRTC(dEdxTruncLow, uint8_t, 2, "", 0, "Low truncation threshold, fraction of 128") AddOptionRTC(dEdxTruncHigh, uint8_t, 77, "", 0, "High truncation threshold, fraction of 128") AddOptionRTC(extrapolationTracking, int8_t, 1, "", 0, "Enable Extrapolation Tracking(prolong tracks to adjacent sectors to find short segments)") AddOptionRTC(disableRefitAttachment, uint8_t, 0, "", 0, "Bitmask to disable certain attachment steps during refit(1:attachment, 2:propagation, 4:loop following, 8:mirroring)") AddOptionRTC(rejectionStrategy, uint8_t, o2::gpu::GPUSettings::RejectionStrategyA, "", 0, "Enable rejection of TPC clusters for compression(0=no, 1=strategy A, 2=strategy B)") AddOptionRTC(mergeLoopersAfterburner, uint8_t, 1, "", 0, "Run afterburner for additional looper merging") AddOptionRTC(compressionTypeMask, uint8_t, o2::gpu::GPUSettings::CompressionFull, "", 0, "TPC Compression mode bits(1=truncate charge/width LSB, 2=differences, 4=track-model)") AddOptionRTC(compressionSortOrder, uint8_t, o2::gpu::GPUSettings::SortTime, "", 0, "Sort order of TPC compression(0=time, 1=pad, 2=Z-time-pad, 3=Z-pad-time, 4=no sorting(use incoming order))") AddOptionRTC(sigBitsCharge, uint8_t, 4, "", 0, "Number of significant bits for TPC cluster charge in compression mode 1") AddOptionRTC(sigBitsWidth, uint8_t, 3, "", 0, "Number of significant bits for TPC cluster width in compression mode 1") AddOptionRTC(dropLoopers, uint8_t, 0, "", 0, "Drop looping tracks starting from second loop") AddOptionRTC(mergerInterpolateErrors, uint8_t, 1, "", 0, "Use interpolation instead of extrapolation for chi2 based cluster rejection") AddOptionRTC(mergerInterpolateRejectAlsoOnCurrentPosition, uint8_t, 1, "", 0, "When using mergerInterpolateErrors, reject based on chi2 twice computed with interpolated and current track position starting from NDF > mergerNonInterpolateRejectMinNDF Merge tracks accross the central electrode Enable PID response Add sub threshold clusters in TPC dEdx computation OR mask of TPC flags that will reject the cluster in alternative dEdx Reject edge clusters based on uncorrected track Y during track fit Increase decrease removal by when on this number of pads from the edge h configStandalone Reconstruction rec_trd Max chi2 for TRD tracklets to be matched to a track Chi2 cut for strict matching mode Number of sigmas for ITS TPC track time error estimate Addition to search road around track prolongation along Y in cm Optimal tracklet rphi resolution in maximum chi2 per attached tracklet for TRD tracks take into account the full likelihood of the slope including exponential tails Tracks with less attached tracklets are discarded after the tracking Post trigger Pile up integration time in BCs fits all iterations but the last one in projections Use material lookup table for TPC refit Apply workarounds to avoid cyclic merge should not be needed tpc dyn configStandalone Processing proc_rtc true
EMCAL geometry definition.
Handling error due to invalid supermodule.
Trigger mapping starting from Run2.
static constexpr unsigned int FASTORSPHITRU
Number of FastOR/TRU in Phi.
static constexpr unsigned int FASTORSTRU
Number of FastOR/TRU.
const std::array< unsigned int, SUPERMODULES > & getArraySMFastOROffsetY() const
std::tuple< IndexColumnEta, IndexRowPhi > getPositionInEMCALFromAbsFastORIndex(IndexFastOR fastORAbsID) const
Get the position in the Detector from the absolute FastOR ID.
IndexTRU convertTRUIndexSTUtoTRU(IndexTRU truIndexSTU, DetType_t detector) const
Convert the TRU index from the STU numbering scheme into the TRU numbering scheme.
std::tuple< IndexTRU, IndexColumnEta, IndexRowPhi > convertFastORPositionSTUtoTRU(IndexTRU truIndexSTU, IndexColumnEta truEtaSTU, IndexRowPhi truPhiSTU, DetType_t detector) const
Convert TRU and FastOR position in TRU from STU number scheme to TRU number scheme.
DetType_t
Calorimeter type.
IndexFastOR getAbsFastORIndexFromPositionInEMCAL(IndexColumnEta etaColumn, IndexRowPhi phiRow) const
Get the absolute index of the FastOR from the geometric position in EMCAL.
std::tuple< IndexTRU, IndexColumnEta, IndexRowPhi > getPositionInTRUFromAbsFastORIndex(IndexFastOR fastORAbsID) const
Get the position of a FastOR inside the TRU from the absolute FastOR ID.
const std::array< unsigned int, ALLTRUS > & getNFastORInTRUPhi() const
IndexFastOR getAbsFastORIndexFromIndexInTRU(IndexTRU truIndex, IndexFastOR fastorIndexTRU) const
Get the absolute index of the FastOr from the index in the TRU.
unsigned int IndexSupermodule
IndexFastOR getAbsFastORIndexFromPHOSSubregion(unsigned int phosRegionID) const
const std::array< unsigned int, SUPERMODULES > & getArrayNFastORInSMEta() const
std::tuple< IndexTRU, IndexColumnEta, IndexRowPhi > convertFastORPositionTRUtoSTU(IndexTRU truIndexTRU, IndexColumnEta etaTRU, IndexRowPhi phiTRU) const
Convert TRU and FastOR position in TRU from TRU number scheme to STU number scheme.
IndexTRU convertTRUIndexTRUtoSTU(IndexTRU truIndexTRU) const
static constexpr unsigned int TRUSETASM
Number of TRUs/SM in Eta.
TriggerMappingV2()
Default constructor.
static constexpr unsigned int TRUSPHISM
Number of TRUs/SM in Phi.
IndexFastOR getAbsFastORIndexFromPositionInTRU(IndexTRU truIndex, IndexColumnEta etaColumn, IndexRowPhi phiRow) const
Get the absolute index of the FastOr from geometric position in TRU.
std::tuple< IndexSupermodule, IndexColumnEta, IndexRowPhi > getPositionInSupermoduleFromAbsFastORIndex(IndexFastOR fastORAbsID) const
Get the position inside the supermodule from the absolute FastOR ID.
IndexFastOR getAbsFastORIndexFromPositionInSupermodule(IndexSupermodule supermoduleID, IndexColumnEta etaColumn, IndexRowPhi phiRow) const
Get the absolute index of the FastOr from the geometric position in the supermodule.
const std::array< unsigned int, ALLTRUS > & getArrayTRUFastOROffsetX() const
static constexpr unsigned int FASTORSPHI
Number of FastOR/EMCALs in Phi.
IndexTRU getTRUIndexFromOnlineIndex(IndexOnline onlineIndex) const noexcept
Get the TRU index from the online index.
const std::array< unsigned int, 5 > & getArrayNModuleInEMCALPhi() const
const std::array< unsigned int, ALLTRUS > & getTRUFastOROffsetY() const
static constexpr unsigned int FASTORSETATRU
Number of FastOR/TRU in Eta.
static constexpr unsigned int FASTORSETA
EMCAL+DCAL region eta size.
static constexpr unsigned int SUPERMODULES
Total number of supermodules in EMCAL.
static constexpr unsigned int FASTORSPHISM
Number of FastOR/SM in Phi.
const std::array< unsigned int, ALLTRUS > & getNFastORInTRUEta() const
static constexpr unsigned int FASTORSETASM
Number of FastOR/SM in Eta.
std::tuple< IndexTRU, IndexFastOR > convertFastORIndexTRUtoSTU(IndexTRU truIndexTRU, IndexFastOR fastorIndexTRU) const
Convert TRU and FastOR index in TRU from TRU number scheme to STU number scheme.
const std::array< unsigned int, SUPERMODULES > & getArrayNFastORInSMPhi() const
~TriggerMappingV2()=default
Destructor.
static constexpr unsigned int TRUSSUPERMODULE
Number of TRUs/SM.
IndexOnline getOnlineIndexFromTRUIndex(IndexTRU truIndex) const
Get the online index from the TRU index.
const std::array< unsigned int, SUPERMODULES > & getArraySMFastOROffsetX() const
std::array< IndexCell, 4 > getCellIndexFromAbsFastORIndex(IndexFastOR fastORAbsID) const
Get the indices of the cells in the module of a given FastOR.
IndexTRU getTRUIndexFromOnlineHardareAddree(int hardwareAddress, unsigned int ddlID, unsigned int supermoduleID) const
Get the TRU Index from the hardware address of the ALTRO channel (TRU rawdata)
std::tuple< IndexTRU, IndexFastOR > convertFastORIndexSTUtoTRU(IndexTRU truIndexSTU, IndexFastOR fastOrIndexSTU, DetType_t detector) const
Convert TRU and FastOR index in TRU from STU number scheme to TRU number scheme.
FastORInformation getInfoFromAbsFastORIndex(IndexFastOR absFastORID) const
IndexFastOR getAbsFastORIndexFromCellIndex(IndexCell cellIndex) const
Get the absolute FastOR index of the module containing a given cell.
std::array< unsigned int, 4 > getFastORIndexFromL0Index(IndexTRU iTRU, IndexFastOR l0index, int size) const
static constexpr unsigned int ALLFASTORS
Number of FastOR/EMCALs.
std::tuple< IndexTRU, IndexFastOR > getTRUFromAbsFastORIndex(IndexFastOR fastOrAbsID) const
Get the TRU index and FastOR index in TRU from the absolute FastOR ID.
static constexpr unsigned int ALLTRUS
Total number of TRUs in EMCAL.
static constexpr unsigned int PATCHESINTRU
a couple of static helper functions to create timestamp values for CCDB queries or override obsolete ...