ATLAS Offline Software
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 
15 #ifndef AFP_DBTOOLS_TOFVTXPARAMDATA_H
16 #define AFP_DBTOOLS_TOFVTXPARAMDATA_H
17 
18 
19 namespace 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
AllowedVariables::e
e
Definition: AsgElectronSelectorTool.cxx:37
AFP::ToFVtxParamData::m_stationID
int m_stationID
Definition: ToFVtxParamData.h:50
python.SystemOfUnits.s
int s
Definition: SystemOfUnits.py:131
AFP::ToFVtxParamData::m_timeSlope
std::vector< double > m_timeSlope
Definition: ToFVtxParamData.h:53
AFP::ToFVtxParamData::trainEdge
double trainEdge(int tr) const
Definition: ToFVtxParamData.h:47
AFP
Header file for interface of SiGlobAlignDBTool used to read global alignment for database.
Definition: ISiGlobAlignDBTool.h:18
AFP::ToFVtxParamData::stationID
int stationID() const
ID of the station to which parameters apply (see xAOD::AFPStationID)
Definition: ToFVtxParamData.h:32
AFP::ToFVtxParamData
Class storing information about alignment.
Definition: ToFVtxParamData.h:24
AFP::ToFVtxParamData::timeOffset
const std::vector< double > & timeOffset() const
Time offsets for the trains.
Definition: ToFVtxParamData.h:38
AFP::ToFVtxParamData::timeOffset
double timeOffset(int tr) const
Definition: ToFVtxParamData.h:39
AFP::ToFVtxParamData::ToFVtxParamData
ToFVtxParamData(int st, double go, const std::vector< double > &o, const std::vector< double > &s, const std::vector< double > &e)
Definition: ToFVtxParamData.h:28
AFP::ToFVtxParamData::timeSlope
double timeSlope(int tr) const
Definition: ToFVtxParamData.h:43
AFP::ToFVtxParamData::ToFVtxParamData
ToFVtxParamData(int st)
Definition: ToFVtxParamData.h:27
AFP::ToFVtxParamData::m_timeGlobalOffset
double m_timeGlobalOffset
Definition: ToFVtxParamData.h:51
AFP::ToFVtxParamData::m_timeOffset
std::vector< double > m_timeOffset
Definition: ToFVtxParamData.h:52
AFP::ToFVtxParamData::trainEdge
const std::vector< double > & trainEdge() const
Train edges; the end of n-th train is also the beginning of the (n+1)-th train.
Definition: ToFVtxParamData.h:46
python.doZLumi.go
def go(fname)
Definition: doZLumi.py:78
AFP::ToFVtxParamData::timeSlope
const std::vector< double > & timeSlope() const
Time slopes for the trains.
Definition: ToFVtxParamData.h:42
AFP::ToFVtxParamData::m_trainEdge
std::vector< double > m_trainEdge
Definition: ToFVtxParamData.h:54
AFP::ToFVtxParamData::timeGlobalOffset
double timeGlobalOffset() const
Global offset of the whole station.
Definition: ToFVtxParamData.h:35