#include <LArCaliWave.h>
|
|
| LArCaliWave () |
|
| LArCaliWave (const std::vector< double > &theVector, double dt, int DAC, int isPulsed, unsigned flag) |
|
| LArCaliWave (unsigned nSamples, double dt, int DAC, int isPulsed, unsigned flag) |
|
| LArCaliWave (const std::vector< double > &vAmpl, const std::vector< double > &vErr, const std::vector< int > &vTrig, double dt, int DAC, int isPulsed, unsigned flag) |
|
virtual | ~LArCaliWave ()=default |
|
|
double | m_dt |
|
std::vector< double > | m_amplitudes |
|
unsigned | m_flag |
|
LArWave | operator+ (const LArWave &bWave) const |
|
LArWave | operator+ (const double aBias) const |
|
LArWave | operator- (const LArWave &bWave) const |
|
LArWave | operator* (const LArWave &bWave) const |
|
LArWave | operator* (const double aScale) const |
|
LArWave | operator/ (const LArWave &bWave) const |
|
LArWave | operator% (const LArWave &bWave) const |
|
LArWave & | operator+= (const LArWave &bWave) |
|
LArWave & | operator-= (const LArWave &bWave) |
|
LArWave & | operator*= (const double aScale) |
|
enum | {
meas = 01,
mwf = 02,
mwfN = 03,
dac0 = 04,
xtalkcorr = 05,
pred = 10,
predCali = 11,
predFitPhys = 12,
predMeasPar = 13,
model = 20,
patch = 30,
unknown = 0
} |
|
Definition at line 44 of file LArCaliWave.h.
◆ anonymous enum
Enumerator |
---|
meas | |
mwf | |
mwfN | |
dac0 | |
xtalkcorr | |
pred | |
predCali | |
predFitPhys | |
predMeasPar | |
model | |
patch | |
unknown | |
Definition at line 121 of file LArWave.h.
◆ LArCaliWave() [1/4]
LArCaliWave::LArCaliWave |
( |
| ) |
|
|
inline |
◆ LArCaliWave() [2/4]
LArCaliWave::LArCaliWave |
( |
const std::vector< double > & |
theVector, |
|
|
double |
dt, |
|
|
int |
DAC, |
|
|
int |
isPulsed, |
|
|
unsigned |
flag |
|
) |
| |
|
inline |
◆ LArCaliWave() [3/4]
LArCaliWave::LArCaliWave |
( |
unsigned |
nSamples, |
|
|
double |
dt, |
|
|
int |
DAC, |
|
|
int |
isPulsed, |
|
|
unsigned |
flag |
|
) |
| |
|
inline |
◆ LArCaliWave() [4/4]
LArCaliWave::LArCaliWave |
( |
const std::vector< double > & |
vAmpl, |
|
|
const std::vector< double > & |
vErr, |
|
|
const std::vector< int > & |
vTrig, |
|
|
double |
dt, |
|
|
int |
DAC, |
|
|
int |
isPulsed, |
|
|
unsigned |
flag |
|
) |
| |
|
inline |
◆ ~LArCaliWave()
virtual LArCaliWave::~LArCaliWave |
( |
| ) |
|
|
virtualdefault |
◆ addAccumulatedEvent()
void LArWaveCumul::addAccumulatedEvent |
( |
int |
delay, |
|
|
int |
step, |
|
|
const std::vector< double > & |
SamplesSum, |
|
|
const std::vector< double > & |
Samples2Sum, |
|
|
unsigned |
nTriggers |
|
) |
| |
|
inherited |
used when building from LArAccumulatedDigits
Definition at line 65 of file LArWaveCumul.cxx.
70 const unsigned int nSwave =
getSize() ;
71 const unsigned int nSevt = SamplesSum.size() ;
73 for (
unsigned int i=0 ;
i<nSevt ;
i++ ) {
85 double sum2 = SamplesSum[
i] ;
86 double sum22 = Samples2Sum[
i] ;
◆ addEvent()
void LArWaveCumul::addEvent |
( |
int |
delay, |
|
|
int |
step, |
|
|
const std::vector< double > & |
Samples |
|
) |
| |
|
inherited |
add in set of channel responses for a given step/delay
Definition at line 33 of file LArWaveCumul.cxx.
36 const unsigned int nSwave =
getSize() ;
37 const unsigned int nSevt = Samples.size() ;
38 for (
unsigned int i=0 ;
i<nSevt ;
i++ ) {
42 double evt = Samples[
i] ;
◆ getDAC()
int LArCaliWave::getDAC |
( |
| ) |
const |
|
inline |
◆ getDt()
const double& LArWave::getDt |
( |
| ) |
const |
|
inlineinherited |
◆ getError()
double LArWaveCumul::getError |
( |
unsigned |
i | ) |
const |
|
inlineinherited |
◆ getErrors()
const std::vector< double > & LArWaveCumul::getErrors |
( |
| ) |
const |
|
inlineinherited |
◆ getFlag()
unsigned LArWave::getFlag |
( |
| ) |
const |
|
inlineinherited |
◆ getIndex()
unsigned LArWave::getIndex |
( |
double |
aTime | ) |
const |
|
inherited |
◆ getIsPulsedInt()
int LArCaliWave::getIsPulsedInt |
( |
| ) |
const |
|
inline |
◆ getSample()
const double& LArWave::getSample |
( |
const unsigned int |
i | ) |
const |
|
inlineinherited |
Amplitude per time bin.
Definition at line 53 of file LArWave.h.
◆ getSize()
size_t LArWave::getSize |
( |
| ) |
const |
|
inlineinherited |
number of time samples
Definition at line 62 of file LArWave.h.
◆ getTime()
double LArWave::getTime |
( |
const unsigned |
i | ) |
const |
|
inlineinherited |
◆ getTrigger()
int LArWaveCumul::getTrigger |
( |
unsigned |
i | ) |
const |
|
inlineinherited |
◆ getTriggers()
const std::vector< int > & LArWaveCumul::getTriggers |
( |
| ) |
const |
|
inlineinherited |
◆ getWave()
const std::vector< double > & LArWave::getWave |
( |
| ) |
const |
|
inlineinherited |
◆ isEmpty()
bool LArWave::isEmpty |
( |
| ) |
const |
|
inlineinherited |
◆ operator%()
Definition at line 91 of file LArWave.cxx.
101 const size_t s=
result.getSize();
102 for (
size_t i=0 ;
i<
s ; ++
i ) {
104 double sum2 = 0.5 * ( (*this).m_amplitudes[0] * bWave.
m_amplitudes[
i] +
106 for (
size_t k=1 ;
k<
i ; ++
k ) {
107 sum2 += amplPtrA[
k] * amplPtrB[
i-
k] ;
◆ operator*() [1/2]
◆ operator*() [2/2]
◆ operator*=()
◆ operator+() [1/2]
◆ operator+() [2/2]
◆ operator+=()
◆ operator-()
◆ operator-=()
◆ operator/()
◆ operator[]() [1/2]
double& LArWave::operator[] |
( |
const unsigned int |
i | ) |
|
|
inlineinherited |
Amplitude per time bin - NOT const.
Definition at line 78 of file LArWave.h.
◆ operator[]() [2/2]
const double& LArWave::operator[] |
( |
const unsigned int |
i | ) |
const |
|
inlineinherited |
Amplitude per time bin.
Definition at line 56 of file LArWave.h.
◆ setDt()
void LArWave::setDt |
( |
const double |
dt | ) |
|
|
inlineinherited |
set the delta time
Definition at line 193 of file LArWave.h.
◆ setFlag()
void LArWave::setFlag |
( |
const unsigned |
flag | ) |
|
|
inlineinherited |
◆ setSample()
void LArWave::setSample |
( |
const unsigned |
i, |
|
|
const double |
aVal |
|
) |
| |
|
inlineinherited |
set the amplitude for time bin i
Definition at line 87 of file LArWave.h.
◆ setSize()
void LArWave::setSize |
( |
const unsigned |
nSize | ) |
|
|
inlineinherited |
resize the number of time bin samples
Definition at line 188 of file LArWave.h.
◆ m_amplitudes
std::vector<double> LArWave::m_amplitudes |
|
protectedinherited |
◆ m_DAC
◆ m_dt
◆ m_errors
std::vector<double> LArWaveCumul::m_errors |
|
protectedinherited |
◆ m_flag
◆ m_isPulsed
int LArCaliWave::m_isPulsed |
|
protected |
◆ m_triggers
std::vector<int> LArWaveCumul::m_triggers |
|
protectedinherited |
The documentation for this class was generated from the following file: