ATLAS Offline Software
Loading...
Searching...
No Matches
ToFVtxParamData.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
3*/
4
13
14
15#ifndef AFP_DBTOOLS_TOFVTXPARAMDATA_H
16#define AFP_DBTOOLS_TOFVTXPARAMDATA_H
17
18
19namespace AFP
20{
21
24 {
25 public:
26
27 ToFVtxParamData(int st): m_stationID(st), m_timeGlobalOffset(0.), m_timeOffset{0.,0.,0.,0.}, m_timeSlope{0.,0.,0.,0.}, m_trainEdge{0.,0.,0.,0.,0.} {}
28 ToFVtxParamData(int st, double go, const std::vector<double>& o, const std::vector<double>& s, const std::vector<double>& e) : m_stationID(st), m_timeGlobalOffset(go), m_timeOffset(o), m_timeSlope(s), m_trainEdge(e) {}
29
30
32 int stationID () const {return m_stationID;}
33
35 double timeGlobalOffset () const {return m_timeGlobalOffset;}
36
38 const std::vector<double>& timeOffset () const {return m_timeOffset;}
39 double timeOffset(int tr) const {return m_timeOffset.at(tr);}
40
42 const std::vector<double>& timeSlope () const {return m_timeSlope;}
43 double timeSlope(int tr) const {return m_timeSlope.at(tr);}
44
46 const std::vector<double>& trainEdge () const {return m_trainEdge;}
47 double trainEdge(int tr) const {return m_trainEdge.at(tr);}
48
49 private:
52 std::vector<double> m_timeOffset;
53 std::vector<double> m_timeSlope;
54 std::vector<double> m_trainEdge;
55 };
56
57} // namespace AFP
58
59#endif // AFP_DBTOOLS_TOFVTXPARAMDATA_H
std::vector< double > m_timeSlope
std::vector< double > m_timeOffset
double trainEdge(int tr) const
const std::vector< double > & timeOffset() const
Time offsets for the trains.
std::vector< double > m_trainEdge
const std::vector< double > & timeSlope() const
Time slopes for the trains.
ToFVtxParamData(int st, double go, const std::vector< double > &o, const std::vector< double > &s, const std::vector< double > &e)
double timeOffset(int tr) const
const std::vector< double > & trainEdge() const
Train edges; the end of n-th train is also the beginning of the (n+1)-th train.
int stationID() const
ID of the station to which parameters apply (see xAOD::AFPStationID)
double timeSlope(int tr) const
double timeGlobalOffset() const
Global offset of the whole station.
Header file for interface of SiGlobAlignDBTool used to read global alignment for database.