Skip to content

Commit 96b6464

Browse files
shahor02davidrohr
authored andcommitted
Store in LtrCalibData reference VDrift and creation time
1 parent 188820b commit 96b6464

3 files changed

Lines changed: 12 additions & 7 deletions

File tree

DataFormats/Detectors/TPC/include/DataFormatsTPC/LtrCalibData.h

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,12 @@ struct LtrCalibData {
2626
size_t processedTFs{}; ///< number of processed TFs with laser track candidates
2727
uint64_t firstTime{}; ///< first time stamp of processed TFs
2828
uint64_t lastTime{}; ///< last time stamp of processed TFs
29-
float dvCorrectionA{}; ///< drift velocity correction factor A-Side
30-
float dvCorrectionC{}; ///< drift velocity correction factor C-Side
29+
long creationTime{}; ///< time of creation
30+
float dvCorrectionA{}; ///< drift velocity correction factor A-Side (inverse multiplicative)
31+
float dvCorrectionC{}; ///< drift velocity correction factor C-Side (inverse multiplicative)
3132
float dvOffsetA{}; ///< drift velocity trigger offset A-Side
3233
float dvOffsetC{}; ///< drift velocity trigger offset C-Side
34+
float refVDrift{}; ///< reference vdrift for which factor was extracted
3335
uint16_t nTracksA{}; ///< number of tracks used for A-Side fit
3436
uint16_t nTracksC{}; ///< number of tracks used for C-Side fit
3537
std::vector<uint16_t> matchedLtrIDs; ///< list of matched laser track IDs
@@ -41,6 +43,7 @@ struct LtrCalibData {
4143
processedTFs = 0;
4244
firstTime = 0;
4345
lastTime = 0;
46+
creationTime = 0;
4447
dvCorrectionA = 0;
4548
dvCorrectionC = 0;
4649
dvOffsetA = 0;
@@ -51,7 +54,7 @@ struct LtrCalibData {
5154
matchedLtrIDs.clear();
5255
}
5356

54-
ClassDefNV(LtrCalibData, 1);
57+
ClassDefNV(LtrCalibData, 2);
5558
};
5659

5760
} // namespace o2::tpc

DataFormats/Detectors/TPC/include/DataFormatsTPC/VDriftCorrFact.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,12 @@
99
// granted to it by virtue of its status as an Intergovernmental Organization
1010
// or submit itself to any jurisdiction.
1111

12-
/// \file LtrCalibData.h
12+
/// \file VDriftCorrFact.h
1313
/// \brief calibration data from laser track calibration
1414
///
15-
/// This class holds the calibration output data of CalibLaserTracks
15+
/// This class holds the calibration output data ITS/TPC tgl difference calibration
1616
///
17-
/// \author Jens Wiechula, Jens.Wiechula@ikf.uni-frankfurt.de
17+
/// \author ruben.shahoyan@cern.ch
1818

1919
#ifndef AliceO2_TPC_VDRIFT_CORRFACT_H
2020
#define AliceO2_TPC_VDRIFT_CORRFACT_H

Detectors/TPC/calibration/src/CalibLaserTracks.cxx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
#include "TPCBase/ParameterElectronics.h"
1919
#include "TPCCalibration/CalibLaserTracks.h"
2020
#include "TLinearFitter.h"
21+
#include <chrono>
2122

2223
using namespace o2::tpc;
2324
void CalibLaserTracks::fill(std::vector<TrackTPC> const& tracks)
@@ -304,7 +305,8 @@ void CalibLaserTracks::fillCalibData(LtrCalibData& calibData, const std::vector<
304305
{
305306
auto dvA = fit(pairsA);
306307
auto dvC = fit(pairsC);
307-
308+
calibData.creationTime = std::chrono::duration_cast<std::chrono::milliseconds>(std::chrono::system_clock::now().time_since_epoch()).count();
309+
calibData.refVDrift = mDriftV;
308310
calibData.dvOffsetA = dvA.x1;
309311
calibData.dvCorrectionA = dvA.x2;
310312
calibData.nTracksA = uint16_t(pairsA.size());

0 commit comments

Comments
 (0)