134 static constexpr
short int N_COL = 1024;
135 static constexpr
short int N_ROW = 512;
140 short int N_RANGE = 51;
142 short int N_RANGE2 = 1;
144 static constexpr
short int N_PIX_DCOL = 50;
150 std::map<
short int,
std::map<
int,
std::vector<
std::vector<
std::vector<
unsigned short int>>>>> mPixelHits;
152 std::map<
short int,
std::array<
long int, 6>> mThresholds;
154 std::map<
short int,
std::vector<
int>> mNoisyPixID;
156 std::map<
short int,
std::vector<
int>> mIneffPixID;
158 std::map<
short int,
std::vector<
int>> mDeadPixID;
160 std::map<
short int,
std::array<
int, 200>> mpvCounter;
162 TFile* mRootOutfile =
nullptr;
163 TTree* mThresholdTree =
nullptr;
164 TTree* mScTree =
nullptr;
165 TTree* mSlopeTree =
nullptr;
166 short int vChipid[N_COL];
167 short int vRow[N_COL];
168 short int vThreshold[N_COL];
169 bool vSuccess[N_COL];
171 unsigned char vPoints[N_COL];
172 short int vMixData[N_COL];
174 float vIntercept[N_COL];
175 unsigned char vCharge[N_COL];
176 unsigned char vHits[N_COL];
177 short int mColStep = 8;
178 short int mRowStep = 1;
181 TH1F* mFitHist =
nullptr;
182 TF1* mFitFunction =
nullptr;
186 void extractAndUpdate(const
short int&, const
short int&);
187 std::vector<
float> calculatePulseParams(const
short int&);
188 std::vector<
float> calculatePulseParams2D(const
short int&);
189 void extractThresholdRow(const
short int&, const
short int&);
190 void finalizeOutput();
192 void setRunType(const
short int&);
195 void initThresholdTree(
bool recreate =
true);
196 bool findUpperLower(
std::vector<
std::vector<
unsigned short int>>, const
short int&,
short int&,
short int&,
bool,
int);
197 bool findThreshold(const
short int&,
std::vector<
std::vector<
unsigned short int>>, const
float*,
short int&,
float&,
float&,
int&,
int);
198 bool findThresholdFit(const
short int&,
std::vector<
std::vector<
unsigned short int>>, const
float*, const
short int&,
float&,
float&,
int&,
int);
199 bool findThresholdDerivative(
std::vector<
std::vector<
unsigned short int>>, const
float*, const
short int&,
float&,
float&,
int&,
int);
200 bool findThresholdHitcounting(
std::vector<
std::vector<
unsigned short int>>, const
float*, const
short int&,
float&,
int);
201 void findAverage(const
std::array<
long int, 6>&,
float&,
float&,
float&,
float&);
202 void saveThreshold();
205 void addDatabaseEntry(const
short int&, const
char*,
std::vector<
float>,
bool);
208 std::vector<
short int> getIntegerVect(
std::
string&);
209 short int getRUID(
short int chipID);
210 std::vector<
short int> getChipListFromRu(
short int,
bool*);
211 short int getLinkID(
short int,
short int);
212 short int getNumberOfActiveLinks(
bool*);
214 std::
string mSelfName;
215 std::
string mDictName;
216 std::
string mNoiseName;
219 bool mVerboseOutput =
false;
220 std::
string mMetaType;
221 std::
string mOutputDir;
222 std::
string mMetafileDir = "/
dev/null";
228 unsigned int mFileNumber = 0;
229 static constexpr unsigned int N_ROWS_PER_FILE = 150000;
230 unsigned int mRowCounter = 0;
232 short int mRunType = -1;
233 short int mRunTypeUp = -1;
234 short int mRunTypeRU[N_RU] = {0};
235 short int mRunTypeRUCopy[N_RU] = {0};
236 bool mFlagsRU[N_RU] = {0};
237 std::map<short int, std::map<short int, std::array<std::array<int, 500>, 500>>> mCdwCntRU;
238 short int mLoopVal[N_RU][N_ROW] = {{0}};
239 bool mActiveLinks[N_RU][3] = {{
false}};
240 std::set<short int> mRuSet;
242 char mScanType =
'\0';
243 short int mMin = -1, mMax = -1, mMin2 = 0, mMax2 = 0;
244 short int mStep = 1, mStep2 = 1;
245 short int mStrobeWindow = 5;
246 short int mRowScan = 512;
252 std::string PixelType;
254 std::string mHostname;
264 short int mCdwVersion = 0;
267 bool isEnded =
false;
270 bool mTagSinglePix =
false;
273 std::string mCcdbMgrUrl =
"";
275 bool mCheckExactRow =
false;
279 int mChipModBase = 1;
282 short int inMinVcasn = 30;
283 short int inMaxVcasn = 100;
284 short int inMinIthr = 25;
285 short int inMaxIthr = 100;
291 bool isManualMode =
false;
293 bool scaleNinj =
false;
294 short int manualMin, manualMin2 = 0;
295 short int manualMax, manualMax2 = 0;
296 short int manualStep = 1, manualStep2 = 1;
297 std::string manualScanType;
298 short int manualStrobeWindow = 5;
299 short int manualRowScan = 512;
302 bool isCRUITS =
false;
305 std::vector<int>* mConfDBmap;
309 bool isDumpS =
false;
311 std::string chipDumpS =
"";
312 int dumpCounterS[24120] = {0};
313 bool isChipDB[24120] = {0};
315 std::vector<short int> chipDumpList;
318 bool mRunStopRequested =
false;
321 bool doSlopeCalculation =
false;
322 bool mCalculate2DParams =
true;
330 short int mPercentageCut = 25;
333 short int isLocal =
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 Replace constant variables static by constexpr expressions false