12#ifndef O2_TRD_FEEPARAM_H
13#define O2_TRD_FEEPARAM_H
64 static int extAliToAli(
unsigned int dest,
unsigned short linkpair,
unsigned short rocType,
int* list,
int listSize);
65 static short chipmaskToMCMlist(
unsigned int cmA,
unsigned int cmB,
unsigned short linkpair,
int* mcmList,
int listSize);
66 static short getRobAB(
unsigned short robsel,
unsigned short linkpair);
69 static int getORI(
int detector,
int readoutboard);
75 void setTracklet(
bool trackletSim =
true) { mTracklet = trackletSim; }
94 mInvPtMin = 1 / mPtMin;
119 void getDyRange(
int det,
int rob,
int mcm,
int ch,
int& dyMinInt,
int& dyMaxInt)
const;
121 unsigned int& cor0,
unsigned int& cor1,
float gain = 1.)
const;
136 std::array<short, constants::NCOLUMN> mLUTPadNumbering;
138 void fillPad2MCMLookUpTable();
141 bool mTracklet{
true};
142 bool mRejectMultipleTracklets{
false};
143 bool mUseMisalignCorr{
false};
144 bool mUseTimeOffset{
false};
148 const int mkMaxRAWversion = 3;
151 std::array<float, constants::NCHAMBERPERSEC> mZrow{
152 301, 177, 53, -57, -181,
153 301, 177, 53, -57, -181,
154 315, 184, 53, -57, -188,
155 329, 191, 53, -57, -195,
156 343, 198, 53, -57, -202,
157 347, 200, 53, -57, -204};
158 std::array<float, constants::NLAYER> mX{300.65, 313.25, 325.85, 338.45, 351.05, 363.65};
159 std::array<float, constants::NLAYER> mInvX;
160 std::array<float, constants::NLAYER> mTiltingAngle{-2., 2., -2., 2., -2., 2.};
161 std::array<float, constants::NLAYER> mTiltingAngleTan;
162 std::array<float, constants::NLAYER> mWidthPad{0.635, 0.665, 0.695, 0.725, 0.755, 0.785};
163 std::array<float, constants::NLAYER> mInvWidthPad;
164 float mLengthInnerPadC0{9.f};
165 float mLengthOuterPadC0{8.f};
166 std::array<float, constants::NLAYER> mLengthInnerPadC1{7.5, 7.5, 8.0, 8.5, 9.0, 9.0};
167 std::array<float, constants::NLAYER> mLengthOuterPadC1{7.5, 7.5, 7.5, 7.5, 7.5, 8.5};
168 float mScalePad{256. * 32.};
169 float mDriftLength{3.};
171 float mBinDy{140
e-4};
178 float mMagField{0.f};
179 float mOmegaTau{0.f};
181 float mInvPtMin{1.f / mPtMin};
182 int mNtimebins{20 << 5};
183 unsigned int mScaleQ0{0};
184 unsigned int mScaleQ1{0};
185 bool mPidTracklengthCorr{
false};
186 bool mTiltCorr{
false};
187 bool mPidGainCorr{
false};
190 ClassDefNV(FeeParam, 1);
Timeframe settings Average distance in cm of events merged into Randomize distance around average distance of merged events Simulate correct bunch interactions instead of placing only the average number of events A value[n] sets TFlen for[n] collisions in Number of bunches per trainsort Number of bunch trains Instantaneous interaction rate Do not simulate border Total number of collisions to be placed in the interior of all time Do not select random but walk over array of events in stride steps h Event generator settings h configStandalone Use CPU for GPU Force usage of the specified GPU device no CPU fallback Continue processing after an error First event to Number of events to Number of iterations to Number of iterations to Number of initial iterations excluded from const char e
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 trd
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 bool
configStandalone Reconstruction rec_tpc float
void setTiltCorrectionEnable(int data)
void setRawTiltCorrectionEnable(bool data)
void setMagField(int data)
void setScaleQ1(int data)
void setRawScaleQ0(int data)
static int getROBSide(int irob)
bool getUseTimeOffset() const
void setLengthCorrectionEnable(int data)
void setScaleQ0(int data)
static int getPadRowFromMCM(int irob, int imcm)
void setRawMagField(float data)
void setRAWversion(int rawver)
int getRAWversion() const
static int getORI(int detector, int readoutboard)
void setRejectMultipleTracklets(bool rej=true)
FeeParam & operator=(const FeeParam &)=delete
void setPIDgainCorrectionEnable(bool data)
float getElongation(int det, int rob, int mcm, int) const
static int getPadColFromADC(int irob, int imcm, int iadc)
void getDyRange(int det, int rob, int mcm, int ch, int &dyMinInt, int &dyMaxInt) const
void setTracklet(bool trackletSim=true)
void setRawPIDgainCorrectionEnable(bool data)
void setRawNtimebins(int data)
static int getROBfromPad(int irow, int icol)
void getCorrectionFactors(int det, int rob, int mcm, int ch, unsigned int &cor0, unsigned int &cor1, float gain=1.) const
void setOmegaTau(int data)
static int getExtendedPadColFromADC(int irob, int imcm, int iadc)
float getLocalY(int det, int rob, int mcm, int ch) const
static int getMCMfromSharedPad(int irow, int icol)
void setRawScaleQ1(int data)
float getX(int det, int rob, int mcm) const
void setRawLengthCorrectionEnable(bool data)
static short getRobAB(unsigned short robsel, unsigned short linkpair)
void setRawPtMin(float data)
static int extAliToAli(unsigned int dest, unsigned short linkpair, unsigned short rocType, int *list, int listSize)
FeeParam(const FeeParam &)=delete
static short chipmaskToMCMlist(unsigned int cmA, unsigned int cmB, unsigned short linkpair, int *mcmList, int listSize)
static unsigned int aliToExtAli(int rob, int aliid)
short padMcmLUT(int index)
float getDist(int det, int rob, int mcm, int ch) const
void setRawOmegaTau(float data)
static FeeParam * instance()
void setNtimebins(int data)
void setUseMisalignCorr(bool misalign=true)
float getPerp(int det, int rob, int mcm, int ch) const
static int getColSide(int icol)
static void unpackORI(int link, int side, int &stack, int &layer, int &halfchamberside)
static int getMCMfromPad(int irow, int icol)
bool getUseMisalignCorr() const
int getDyCorrection(int det, int rob, int mcm) const
float getLocalZ(int det, int rob, int mcm) const
void setUseTimeOffset(bool timeOffset=true)
bool getRejectMultipleTracklets() const
static int getROBfromSharedPad(int irow, int icol)
float getPhi(int det, int rob, int mcm, int ch) const
GLenum GLuint GLint GLint layer
a couple of static helper functions to create timestamp values for CCDB queries or override obsolete ...