16#ifndef ALICEO2_GLOBTRACKING_COLLECTCALIBINFOTOF_
17#define ALICEO2_GLOBTRACKING_COLLECTCALIBINFOTOF_
23#include <TStopwatch.h>
24#include <TParameter.h>
34namespace globaltracking
73 void attachInputTrees();
74 bool loadTOFCalibInfo();
86 bool mInitDone =
false;
87 int mCurrTOFInfoTreeEntry = -1;
93 TTree* mTreeTOFCalibInfo =
nullptr;
95 TTree* mOutputTree =
nullptr;
99 std::vector<o2::dataformats::CalibInfoTOF>* mTOFCalibInfo =
nullptr;
101 std::vector<o2::dataformats::CalibInfoTOFshort> mTOFCollectedCalibInfo[
Geo::NCHANNELS];
102 std::vector<o2::dataformats::CalibInfoTOFshort>* mTOFCalibInfoOut =
nullptr;
104 std::string mTOFCalibInfoBranchName =
"TOFCalibInfo";
105 std::string mOutputBranchName =
"TOFCollectedCalibInfo";
107 TStopwatch mTimerTot;
108 TStopwatch mTimerDBG;
110 TParameter<int> mMinTimestamp;
113 TParameter<int> mMaxTimestamp;
Class to store the output of the matching to TOF for calibration.
Class to store the output of the matching to TOF for calibration (no channel info,...
const TParameter< int > & getMinTimestamp() const
void setTOFCalibInfoBranchName(const std::string &nm)
void setOutputBranchName(const std::string &nm)
get input branch names for the input from the tree
const std::string & getOutputBranchName() const
get the min/max timestamp for following calibration of LHCPhase
void run()
perform all initializations
static constexpr int MAXNUMBEROFHITS
void setInputTreeTOFCalibInfo(TTree *tree)
set output tree to write matched tracks
void init()
set tree/chain containing TOF calib info
void setOutputTree(TTree *tr)
set input branch names for the input from the tree
const TParameter< int > & getMaxTimestamp() const
print settings
CollectCalibInfoTOF()
collect the CalibInfo for the TOF channels
const std::string & getTOFCalibInfoBranchName() const
TOF geo parameters (only statics)
static constexpr int NCHANNELS
a couple of static helper functions to create timestamp values for CCDB queries or override obsolete ...
std::unique_ptr< TTree > tree((TTree *) flIn.Get(std::string(o2::base::NameConf::CTFTREENAME).c_str()))