@@ -87,6 +87,9 @@ enum RunTypes {
8787 PULSELENGTH_SCAN = 32 ,
8888 TOT_CALIBRATION = 36 ,
8989 TOT_CALIBRATION_1_ROW = 41 ,
90+ VRESETD_150 = 38 ,
91+ VRESETD_300 = 39 ,
92+ VRESETD_2D = 42 ,
9093 END_RUN = 0
9194};
9295
@@ -161,7 +164,7 @@ class ITSThresholdCalibrator : public Task
161164 short int vThreshold[N_COL ];
162165 bool vSuccess[N_COL ];
163166 unsigned char vNoise[N_COL ];
164- short int vStrobeDel [N_COL ];
167+ short int vMixData [N_COL ];
165168 unsigned char vCharge[N_COL ];
166169 float vSlope[N_COL ];
167170 float vIntercept[N_COL ];
@@ -182,11 +185,11 @@ class ITSThresholdCalibrator : public Task
182185
183186 // Helper functions related to threshold extraction
184187 void initThresholdTree (bool recreate = true );
185- bool findUpperLower (std::vector<std::vector<unsigned short int >>, const short int &, short int &, short int &, bool );
186- bool findThreshold (const short int &, std::vector<std::vector<unsigned short int >>, const float *, short int &, float &, float &);
187- bool findThresholdFit (const short int &, std::vector<std::vector<unsigned short int >>, const float *, const short int &, float &, float &);
188- bool findThresholdDerivative (std::vector<std::vector<unsigned short int >>, const float *, const short int &, float &, float &);
189- bool findThresholdHitcounting (std::vector<std::vector<unsigned short int >>, const float *, const short int &, float &);
188+ bool findUpperLower (std::vector<std::vector<unsigned short int >>, const short int &, short int &, short int &, bool , int );
189+ bool findThreshold (const short int &, std::vector<std::vector<unsigned short int >>, const float *, short int &, float &, float &, int );
190+ bool findThresholdFit (const short int &, std::vector<std::vector<unsigned short int >>, const float *, const short int &, float &, float &, int );
191+ bool findThresholdDerivative (std::vector<std::vector<unsigned short int >>, const float *, const short int &, float &, float &, int );
192+ bool findThresholdHitcounting (std::vector<std::vector<unsigned short int >>, const float *, const short int &, float &, int );
190193 bool isScanFinished (const short int &, const short int &, const short int &);
191194 void findAverage (const std::array<long int , 6 >&, float &, float &, float &, float &);
192195 void saveThreshold ();
@@ -207,6 +210,7 @@ class ITSThresholdCalibrator : public Task
207210
208211 int mTFCounter = 0 ;
209212 bool mVerboseOutput = false ;
213+ bool isFinalizeEos = false ;
210214 std::string mMetaType ;
211215 std::string mOutputDir ;
212216 std::string mMetafileDir = " /dev/null" ;
0 commit comments