|
| 1 | +// Copyright 2019-2020 CERN and copyright holders of ALICE O2. |
| 2 | +// See https://alice-o2.web.cern.ch/copyright for details of the copyright holders. |
| 3 | +// All rights not expressly granted are reserved. |
| 4 | +// |
| 5 | +// This software is distributed under the terms of the GNU General Public |
| 6 | +// License v3 (GPL Version 3), copied verbatim in the file "COPYING". |
| 7 | +// |
| 8 | +// In applying this license CERN does not waive the privileges and immunities |
| 9 | +// granted to it by virtue of its status as an Intergovernmental Organization |
| 10 | +// or submit itself to any jurisdiction. |
| 11 | + |
| 12 | +/// \file LtrCalibData.h |
| 13 | +/// \brief calibration data from laser track calibration |
| 14 | +/// |
| 15 | +/// This class holds the calibration output data of CalibLaserTracks |
| 16 | +/// |
| 17 | +/// \author Jens Wiechula, Jens.Wiechula@ikf.uni-frankfurt.de |
| 18 | + |
| 19 | +#ifndef AliceO2_TPC_LtrCalibData_H_ |
| 20 | +#define AliceO2_TPC_LtrCalibData_H_ |
| 21 | + |
| 22 | +namespace o2::tpc |
| 23 | +{ |
| 24 | + |
| 25 | +struct LtrCalibData { |
| 26 | + size_t processedTFs{}; ///< number of processed TFs with laser track candidates |
| 27 | + uint64_t firstTime{}; ///< first time stamp of processed TFs |
| 28 | + 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 |
| 31 | + float dvOffsetA{}; ///< drift velocity trigger offset A-Side |
| 32 | + float dvOffsetC{}; ///< drift velocity trigger offset C-Side |
| 33 | + uint16_t nTracksA{}; ///< number of tracks used for A-Side fit |
| 34 | + uint16_t nTracksC{}; ///< number of tracks used for C-Side fit |
| 35 | + std::vector<uint16_t> matchedLtrIDs; ///< list of matched laser track IDs |
| 36 | + |
| 37 | + float getDriftVCorrection() const { return 0.5f * (dvCorrectionA + dvCorrectionC); } |
| 38 | + |
| 39 | + void reset() |
| 40 | + { |
| 41 | + processedTFs = 0; |
| 42 | + firstTime = 0; |
| 43 | + lastTime = 0; |
| 44 | + dvCorrectionA = 0; |
| 45 | + dvCorrectionC = 0; |
| 46 | + dvOffsetA = 0; |
| 47 | + dvOffsetC = 0; |
| 48 | + nTracksA = 0; |
| 49 | + nTracksC = 0; |
| 50 | + |
| 51 | + matchedLtrIDs.clear(); |
| 52 | + } |
| 53 | + |
| 54 | + ClassDefNV(LtrCalibData, 1); |
| 55 | +}; |
| 56 | + |
| 57 | +} // namespace o2::tpc |
| 58 | +#endif |
0 commit comments