Skip to content

Commit b1ec2ec

Browse files
authored
Change trending to proper offset value (#1979)
Change from drift velocity fit parameter to the correct laser trigger t0 offset
1 parent 82ea985 commit b1ec2ec

4 files changed

Lines changed: 22 additions & 18 deletions

File tree

Modules/TPC/include/TPC/LtrCalibReductor.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,8 @@ class LtrCalibReductor : public quality_control::postprocessing::Reductor
4444
double dvCorrection;
4545
double dvOffsetA;
4646
double dvOffsetC;
47+
double t0A;
48+
double t0C;
4749
double nTracksA;
4850
double nTracksC;
4951
double dvAbsolute;
@@ -53,4 +55,4 @@ class LtrCalibReductor : public quality_control::postprocessing::Reductor
5355
};
5456

5557
} // namespace o2::quality_control_modules::tpc
56-
#endif // QC_MODULE_TPC_LTRCALIBREDUCTOR_H
58+
#endif // QC_MODULE_TPC_LTRCALIBREDUCTOR_H

Modules/TPC/run/tpcQCCheckTrending_laserCalib.json

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
"dataSource" : [ {
3333
"type" : "PostProcessing",
3434
"name" : "LaserCalibration_Trending",
35-
"MOs" : [ "processedTFs_Trend", "dvCorrectionA_Trend","dvCorrectionC_Trend", "dvCorrection_Trend", "dvOffsetA_Trend", "dvOffsetC_Trend", "nTracksA_Trend","nTracksC_Trend"]
35+
"MOs" : [ "processedTFs_Trend", "dvCorrectionA_Trend","dvCorrectionC_Trend", "dvCorrection_Trend", "t0A_Trend", "t0C_Trend", "nTracksA_Trend","nTracksC_Trend"]
3636
} ]
3737
}
3838
},
@@ -85,17 +85,17 @@
8585
"graphErrors": ""
8686
},
8787
{
88-
"name": "dvOffsetA_Trend",
89-
"title": "Trend of the drift velocity offset (A side)",
90-
"varexp": "Calib_Values.dvOffsetA:time",
88+
"name": "t0A_Trend",
89+
"title": "Trend of the laser trigger t0 offset (A side)",
90+
"varexp": "Calib_Values.t0A:time",
9191
"selection": "",
9292
"option": "*L",
9393
"graphErrors": ""
9494
},
9595
{
96-
"name": "dvOffsetC_Trend",
97-
"title": "Trend of the drift velocity offset (C side)",
98-
"varexp": "Calib_Values.dvOffsetC:time",
96+
"name": "t0C_Trend",
97+
"title": "Trend of the laser trigger t0 offset (C side)",
98+
"varexp": "Calib_Values.t0C:time",
9999
"selection": "",
100100
"option": "*L",
101101
"graphErrors": ""
@@ -129,4 +129,4 @@
129129
}
130130
}
131131
}
132-
}
132+
}

Modules/TPC/run/tpcQCTrending_laserCalib.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -71,17 +71,17 @@
7171
"graphErrors": ""
7272
},
7373
{
74-
"name": "dvOffsetA_Trend",
75-
"title": "Trend of the drift velocity offset (A side)",
76-
"varexp": "Calib_Values.dvOffsetA:time",
74+
"name": "t0A_Trend",
75+
"title": "Trend of the laser trigger t0 offset (A side)",
76+
"varexp": "Calib_Values.t0A:time",
7777
"selection": "",
7878
"option": "*L",
7979
"graphErrors": ""
8080
},
8181
{
82-
"name": "dvOffsetC_Trend",
83-
"title": "Trend of the drift velocity offset (C side)",
84-
"varexp": "Calib_Values.dvOffsetC:time",
82+
"name": "t0C_Trend",
83+
"title": "Trend of the laser trigger t0 offset (C side)",
84+
"varexp": "Calib_Values.t0C:time",
8585
"selection": "",
8686
"option": "*L",
8787
"graphErrors": ""
@@ -123,4 +123,4 @@
123123
}
124124
}
125125
}
126-
}
126+
}

Modules/TPC/src/LtrCalibReductor.cxx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ void* LtrCalibReductor::getBranchAddress()
3333
const char* LtrCalibReductor::getBranchLeafList()
3434
{
3535
// return "processedTFs/g:dvCorrectionA/F:dvCorrectionC:dvOffsetA:dvOffsetC:nTracksA/s:nTracksC";
36-
return "processedTFs/D:dvCorrectionA:dvCorrectionC:dvCorrection:dvOffsetA:dvOffsetC:nTracksA:nTracksC:dvAbsolute";
36+
return "processedTFs/D:dvCorrectionA:dvCorrectionC:dvCorrection:dvOffsetA:dvOffsetC:t0A:t0C:nTracksA:nTracksC:dvAbsolute";
3737
}
3838

3939
void LtrCalibReductor::update(TObject* obj)
@@ -50,6 +50,8 @@ void LtrCalibReductor::update(TObject* obj)
5050
mLtrCalib.dvCorrection = getValue((TText*)blocText->GetLineWith("dvCorrection:"));
5151
mLtrCalib.dvOffsetA = getValue((TText*)blocText->GetLineWith("dvOffsetA:"));
5252
mLtrCalib.dvOffsetC = getValue((TText*)blocText->GetLineWith("dvOffsetC:"));
53+
mLtrCalib.t0A = getValue((TText*)blocText->GetLineWith("t0A:"));
54+
mLtrCalib.t0C = getValue((TText*)blocText->GetLineWith("t0C:"));
5355
mLtrCalib.nTracksA = getValue((TText*)blocText->GetLineWith("nTracksA:"));
5456
mLtrCalib.nTracksC = getValue((TText*)blocText->GetLineWith("nTracksC:"));
5557
mLtrCalib.dvAbsolute = getValue((TText*)blocText->GetLineWith("dvAbsolute:"));
@@ -75,4 +77,4 @@ double LtrCalibReductor::getValue(TText* line)
7577
return value;
7678
}
7779

78-
} // namespace o2::quality_control_modules::tpc
80+
} // namespace o2::quality_control_modules::tpc

0 commit comments

Comments
 (0)