#include <LArWaveCumul.h>
|
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 30 of file LArWaveCumul.h.
◆ anonymous enum
Enumerator |
---|
meas | |
mwf | |
mwfN | |
dac0 | |
xtalkcorr | |
pred | |
predCali | |
predFitPhys | |
predMeasPar | |
model | |
patch | |
unknown | |
Definition at line 121 of file LArWave.h.
◆ LArWaveCumul() [1/4]
LArWaveCumul::LArWaveCumul |
( |
| ) |
|
|
inline |
◆ LArWaveCumul() [2/4]
LArWaveCumul::LArWaveCumul |
( |
const std::vector< double > & |
theVector, |
|
|
double |
dt, |
|
|
unsigned |
flag = 0 |
|
) |
| |
|
inline |
◆ LArWaveCumul() [3/4]
LArWaveCumul::LArWaveCumul |
( |
const std::vector< double > & |
vAmpl, |
|
|
const std::vector< double > & |
vErr, |
|
|
const std::vector< int > & |
vTrig, |
|
|
double |
dt, |
|
|
unsigned |
flag = 0 |
|
) |
| |
|
inline |
◆ LArWaveCumul() [4/4]
LArWaveCumul::LArWaveCumul |
( |
unsigned |
nSamples, |
|
|
double |
dt, |
|
|
unsigned |
flag = 0 |
|
) |
| |
|
inline |
◆ ~LArWaveCumul()
virtual LArWaveCumul::~LArWaveCumul |
( |
| ) |
|
|
virtualdefault |
◆ addAccumulatedEvent()
void LArWaveCumul::addAccumulatedEvent |
( |
int |
delay, |
|
|
int |
step, |
|
|
const std::vector< double > & |
SamplesSum, |
|
|
const std::vector< double > & |
Samples2Sum, |
|
|
unsigned |
nTriggers |
|
) |
| |
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 |
|
) |
| |
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] ;
◆ getDt()
const double& LArWave::getDt |
( |
| ) |
const |
|
inlineinherited |
◆ getError()
double LArWaveCumul::getError |
( |
unsigned |
i | ) |
const |
|
inline |
◆ getErrors()
const std::vector< double > & LArWaveCumul::getErrors |
( |
| ) |
const |
|
inline |
◆ getFlag()
unsigned LArWave::getFlag |
( |
| ) |
const |
|
inlineinherited |
◆ getIndex()
unsigned LArWave::getIndex |
( |
double |
aTime | ) |
const |
|
inherited |
◆ 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 |
|
inline |
◆ getTriggers()
const std::vector< int > & LArWaveCumul::getTriggers |
( |
| ) |
const |
|
inline |
◆ 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_dt
◆ m_errors
std::vector<double> LArWaveCumul::m_errors |
|
protected |
◆ m_flag
◆ m_triggers
std::vector<int> LArWaveCumul::m_triggers |
|
protected |
The documentation for this class was generated from the following files: