Skip to content
Snippets Groups Projects
Commit 140153f8 authored by Theodore Efremov's avatar Theodore Efremov :hibiscus:
Browse files

Moved the data year from the calib of the chio to the config file

parent 91b2f0ab
No related branches found
No related tags found
1 merge request!27Draft: [Epic] Preparation of the environement for the new GaseousDetectorScorers...
Pipeline #357268 passed
......@@ -100,12 +100,11 @@ void TICPhysics::BuildPhysicalEvent() {
if (fIC_Init[1]>0 && fIC_Init[5]>0) {
EtotInit = 0 ;
int DataYear = Cal->GetValue("IC/DATA_YEAR",0);
double ScalorInit = Cal->GetValue("IC/INIT_ETOT_SCALING",0);
for (int Seg = 0; Seg<10; Seg++){
if (Seg == 0 && DataYear == 2024 ){
if (Seg == 0 && m_Data_Year == 2024 ){
EtotInit += 0.75 * Cal->GetValue("IC/INIT_SEG"+NPL::itoa(Seg)+"_ALIGN",0);
}
......@@ -224,6 +223,13 @@ void TICPhysics::ReadAnalysisConfig() {
m_E_Threshold = atof(DataBuffer.c_str());
cout << whatToDo << " " << m_E_Threshold << endl;
}
else if (whatToDo=="DATA_YEAR") {
AnalysisConfigFile >> DataBuffer;
m_Data_Year = atof(DataBuffer.c_str());
cout << whatToDo << " " << m_Data_Year << endl;
}
else if (whatToDo=="LOAD_Z_SPLINE"){
AnalysisConfigFile >> DataBuffer;
m_Z_SPLINE_PATH = DataBuffer;
......@@ -310,7 +316,6 @@ void TICPhysics::AddParameterToCalibrationManager() {
//Calibration from online analysis
Cal->AddParameter("IC","INIT_ETOT_SCALING","IC_INIT_ETOT_SCALING");
Cal->AddParameter("IC","DATA_YEAR","IC_DATA_YEAR");
for (int segment=0; segment<11;segment++){
Cal->AddParameter("IC","INIT_SEG"+NPL::itoa(segment+1)+"_ALIGN","IC_INIT_SEG"+NPL::itoa(segment+1)+"_ALIGN");
}
......
......@@ -156,6 +156,9 @@ class TICPhysics : public TObject, public NPL::VDetector {
bool m_Z_SPLINE_CORRECTION; //!
TSpline3* m_Zspline; //!
//Year of acquisition
private:
double m_Data_Year; //!
// Static constructor to be passed to the Detector Factory
public:
static NPL::VDetector* Construct();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment