ATLAS Offline Software
Loading...
Searching...
No Matches
LArCaliWave.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
3*/
4
5//Dear emacs, this is -*-c++-*-
6
26
27#ifndef LARRAWCONDITIONS_LARCALIWAVE_H
28#define LARRAWCONDITIONS_LARCALIWAVE_H
36
39#include <vector>
40#include <iostream>
41#include <stdint.h>
42
43
44class LArCaliWave : public LArWaveCumul {
45
46public:
47
49
51
52 LArCaliWave(const std::vector<double>&
53 theVector,
54 double dt,
55 int DAC,
56 int isPulsed,
57 unsigned flag);
58
59 LArCaliWave(unsigned nSamples,
60 double dt,
61 int DAC,
62 int isPulsed,
63 unsigned flag);
64
65 LArCaliWave(const std::vector<double>& vAmpl,
66 const std::vector<double>& vErr,
67 const std::vector<int>& vTrig,
68 double dt,
69 int DAC,
70 int isPulsed,
71 unsigned flag);
72
73 virtual ~LArCaliWave() = default;
75
77
78
79 int getDAC() const;
81 int getIsPulsedInt() const;
83
84 protected:
85
86 int m_DAC;
88
89};
90// Need real class for CaliWave vector:
91class LArCaliWaveVec : public std::vector<LArCaliWave> {
92 public:
94 bool isEmpty() const;
95};
96
97
98// INLINE FUNCTIONS
99
100
101inline
103 return (this->size()==0);
104}
105
106
107inline
111
112inline
113LArCaliWave::LArCaliWave(const std::vector<double>& theVector,
114 double dt,
115 int DAC,
116 int isPulsed,
117 unsigned flag)
118 :
119 LArWaveCumul(theVector,dt,flag),
120 m_DAC(DAC),m_isPulsed(isPulsed)
121{}
122
123inline
124LArCaliWave::LArCaliWave(unsigned nSamples,
125 double dt,
126 int DAC,
127 int isPulsed,
128 unsigned flag)
129 :
130 LArWaveCumul(nSamples,dt,flag),
131 m_DAC(DAC),m_isPulsed(isPulsed)
132{}
133
134inline
135LArCaliWave::LArCaliWave(const std::vector<double>& vAmpl,
136 const std::vector<double>& vErr,
137 const std::vector<int>& vTrig,
138 double dt,
139 int DAC,
140 int isPulsed,
141 unsigned flag)
142 :
143 LArWaveCumul(vAmpl,vErr,vTrig,dt,flag),
144 m_DAC(DAC),m_isPulsed(isPulsed)
145{}
146
147/*old one*/
148//inline
149//int
150//LArCaliWave::getDAC() const
151//{ return m_DAC; }
152
153
154inline
155int
157{
158 return m_DAC;
159}
160
161inline
162int
164{
165 return m_isPulsed;
166}
167
168
169
170
171#endif // LARRAWCONDITIONS_LARCALIWAVE_H
bool isEmpty() const
virtual ~LArCaliWave()=default
int getIsPulsedInt() const
isPulsed value
int getDAC() const
DAC value.