ATLAS Offline Software
Loading...
Searching...
No Matches
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
14class LArPhysWave : public LArWaveCumul {
15
16 public:
17
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
69
70inline LArPhysWave::LArPhysWave(const std::vector<double>& theVector, double dt,
71 int timeOffset, unsigned flag)
72 : LArWaveCumul(theVector,dt,flag), m_timeOffset(timeOffset) {}
73
74inline LArPhysWave::LArPhysWave(const std::vector<double>& theVector,
75 double dt, unsigned flag)
76 : LArWaveCumul(theVector,dt,flag), m_timeOffset(0) {}
77
78inline LArPhysWave::LArPhysWave(unsigned nSamples, double dt,
79 int timeOffset, unsigned flag)
80 : LArWaveCumul(nSamples, dt, flag), m_timeOffset(timeOffset) {}
81
82inline LArPhysWave::LArPhysWave(unsigned nSamples, double dt, unsigned flag)
83 : LArWaveCumul(nSamples,dt,flag), m_timeOffset(0) {}
84
85inline 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
91inline 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
97inline int LArPhysWave::getTimeOffset() const {return m_timeOffset; }
98inline void LArPhysWave::setTimeOffset(int timeOffset) { m_timeOffset = timeOffset; }
99
100#endif // LARPHYSWAVE_H
void setTimeOffset(int timeOffset)
Definition LArPhysWave.h:98
virtual ~LArPhysWave()=default
int getTimeOffset() const
Definition LArPhysWave.h:97