ATLAS Offline Software
LArPhysWave.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2019 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 
6 #ifndef LARPHYSWAVE_H
7 
8 #define LARPHYSWAVE_H
9 
10 #include "LArWave.h"
11 #include "LArWaveCumul.h"
12 #include <vector>
13 
14 class LArPhysWave : public LArWaveCumul {
15 
16  public:
17 
18  LArPhysWave();
19 
22  LArPhysWave(const std::vector<double>& theVector,
23  double dt,
24  int timeOffset,
25  unsigned flag=0);
26 
27  LArPhysWave(const std::vector<double>& theVector,
28  double dt,
29  unsigned flag=0);
30 
31  LArPhysWave(unsigned nSamples,
32  double dt,
33  int timeOffset,
34  unsigned flag=0);
35 
36  LArPhysWave(unsigned nSamples,
37  double dt,
38  unsigned flag=0);
39 
40  LArPhysWave(const std::vector<double>& vAmpl,
41  const std::vector<double>& vErr,
42  const std::vector<int>& vTrig,
43  double dt,
44  int timeOffset,
45  unsigned flag=0);
46 
47  LArPhysWave(const std::vector<double>& vAmpl,
48  const std::vector<double>& vErr,
49  const std::vector<int>& vTrig,
50  double dt,
51  unsigned flag=0);
52 
53  virtual ~LArPhysWave() = default;
54 
55  int getTimeOffset() const;
56  void setTimeOffset(int timeOffset);
57 
58  protected:
59 
61 
62 } ;
63 
65 // Inline definitions
67 
68 inline LArPhysWave::LArPhysWave() : LArWaveCumul(), m_timeOffset(0) {}
69 
70 inline LArPhysWave::LArPhysWave(const std::vector<double>& theVector, double dt,
71  int timeOffset, unsigned flag)
72  : LArWaveCumul(theVector,dt,flag), m_timeOffset(timeOffset) {}
73 
74 inline LArPhysWave::LArPhysWave(const std::vector<double>& theVector,
75  double dt, unsigned flag)
76  : LArWaveCumul(theVector,dt,flag), m_timeOffset(0) {}
77 
78 inline LArPhysWave::LArPhysWave(unsigned nSamples, double dt,
79  int timeOffset, unsigned flag)
80  : LArWaveCumul(nSamples, dt, flag), m_timeOffset(timeOffset) {}
81 
82 inline LArPhysWave::LArPhysWave(unsigned nSamples, double dt, unsigned flag)
83  : LArWaveCumul(nSamples,dt,flag), m_timeOffset(0) {}
84 
85 inline LArPhysWave::LArPhysWave(const std::vector<double>& vAmpl,
86  const std::vector<double>& vErr,
87  const std::vector<int>& vTrig,
88  double dt, int timeOffset, unsigned flag)
89  : LArWaveCumul(vAmpl,vErr,vTrig,dt,flag), m_timeOffset(timeOffset) {}
90 
91 inline LArPhysWave::LArPhysWave(const std::vector<double>& vAmpl,
92  const std::vector<double>& vErr,
93  const std::vector<int>& vTrig,
94  double dt, unsigned flag)
95  : LArWaveCumul(vAmpl,vErr,vTrig,dt,flag), m_timeOffset(0) {}
96 
97 inline int LArPhysWave::getTimeOffset() const {return m_timeOffset; }
98 inline void LArPhysWave::setTimeOffset(int timeOffset) { m_timeOffset = timeOffset; }
99 
100 #endif // LARPHYSWAVE_H
LArWaveCumul
Definition: LArWaveCumul.h:30
LArPhysWave
Definition: LArPhysWave.h:14
LArPhysWave::LArPhysWave
LArPhysWave()
Definition: LArPhysWave.h:68
CaloNoise_fillDB.dt
dt
Definition: CaloNoise_fillDB.py:58
master.flag
bool flag
Definition: master.py:29
LArPhysWave::getTimeOffset
int getTimeOffset() const
Definition: LArPhysWave.h:97
LArPhysWave::~LArPhysWave
virtual ~LArPhysWave()=default
LArPhysWave::setTimeOffset
void setTimeOffset(int timeOffset)
Definition: LArPhysWave.h:98
LArPhysWave::m_timeOffset
int m_timeOffset
Definition: LArPhysWave.h:60
LArWaveCumul.h
LArDigits2NtupleDumper.nSamples
nSamples
Definition: LArDigits2NtupleDumper.py:70
LArWave.h