storage of a pulse shape residual set
More...
#include <Residual.h>
storage of a pulse shape residual set
Definition at line 28 of file LArCalorimeter/LArSamplesMon/LArSamplesMon/Residual.h.
◆ Residual()
| Residual::Residual |
( |
const TVectorD & | deltas = TVectorD(), |
|
|
int | run = 0, |
|
|
int | event = 0, |
|
|
double | adcMax = -1, |
|
|
double | time = 0 ) |
◆ ~Residual()
◆ adcMax()
| double LArSamples::Residual::adcMax |
( |
| ) |
const |
|
inline |
◆ checkRange()
| bool IndexRange::checkRange |
( |
int & | l, |
|
|
int & | h ) const |
|
inherited |
Definition at line 14 of file IndexRange.cxx.
15{
16 if (l < 0)
19 cout <<
"IndexRange::checkRange : lower bound " <<
l <<
" is out of bounds" << endl;
20 return false;
21 }
22
23 if (h < 0)
26 cout <<
"IndexRange::checkRange : upper bound " <<
h <<
" is out of bounds" << endl;
27 return false;
28 }
29
30 return true;
31}
virtual int lwb() const =0
bool isInRange(int i) const
virtual int upb() const =0
l
Printing final latex table to .tex output file.
◆ commonLwb()
| int LArSamples::IndexRange::commonLwb |
( |
const IndexRange & | other | ) |
const |
|
inlineinherited |
◆ commonUpb()
| int LArSamples::IndexRange::commonUpb |
( |
const IndexRange & | other | ) |
const |
|
inlineinherited |
◆ deltas()
| const TVectorD & LArSamples::Residual::deltas |
( |
| ) |
const |
|
inline |
◆ event()
| int LArSamples::Residual::event |
( |
| ) |
const |
|
inline |
◆ hasSameRange() [1/3]
| bool LArSamples::IndexRange::hasSameRange |
( |
const IndexRange & | other | ) |
const |
|
inlineinherited |
Definition at line 30 of file IndexRange.h.
bool hasSameRange(int lw, int up) const
◆ hasSameRange() [2/3]
| bool LArSamples::IndexRange::hasSameRange |
( |
const TVectorD & | v | ) |
const |
|
inlineinherited |
◆ hasSameRange() [3/3]
| bool LArSamples::IndexRange::hasSameRange |
( |
int | lw, |
|
|
int | up ) const |
|
inlineinherited |
◆ isInRange()
| bool LArSamples::IndexRange::isInRange |
( |
int | i | ) |
const |
|
inlineinherited |
◆ lwb()
| int LArSamples::Residual::lwb |
( |
| ) |
const |
|
inlinevirtual |
◆ providesRange() [1/3]
| bool LArSamples::IndexRange::providesRange |
( |
const IndexRange & | other | ) |
const |
|
inlineinherited |
Definition at line 34 of file IndexRange.h.
bool providesRange(int lw, int up) const
◆ providesRange() [2/3]
| bool LArSamples::IndexRange::providesRange |
( |
const TVectorD & | v | ) |
const |
|
inlineinherited |
◆ providesRange() [3/3]
| bool LArSamples::IndexRange::providesRange |
( |
int | lw, |
|
|
int | up ) const |
|
inlineinherited |
◆ rangeStr()
| TString LArSamples::IndexRange::rangeStr |
( |
| ) |
const |
|
inlineinherited |
◆ run()
| int LArSamples::Residual::run |
( |
| ) |
const |
|
inline |
◆ scaledDelta()
| double Residual::scaledDelta |
( |
short | i | ) |
const |
◆ scaledDeltas()
| TVectorD Residual::scaledDeltas |
( |
| ) |
const |
◆ scaledDeltasAndTime()
| TVectorD Residual::scaledDeltasAndTime |
( |
| ) |
const |
◆ test()
Definition at line 302 of file LArCalorimeter/LArSamplesMon/src/Residual.cxx.
303{
304 Residuals testVect;
306 for (
unsigned int i = 0;
i < 100000;
i++) {
308
309 for (
unsigned short j = 0; j < 5; j++)
d(j) =
r.Gaus(0, 1);
311 }
312
313
314
315
316
317
318 Residuals* truncated = testVect.
truncate(2);
319 if (!truncated) return false;
320
321 TH1D*
h = truncated->
histogram(0,
"h", 100, -5, 5);
322 delete truncated;
324 return true;
325}
Residual(const TVectorD &deltas=TVectorD(), int run=0, int event=0, double adcMax=-1, double time=0)
Residuals * truncate(double nWidthsRes, double nWidthsTime=-1, unsigned int nMax=0) const
bool add(const Residual &residual)
TH1D * histogram(short sample, const TString &name, int nBins, double xMin, double xMax) const
◆ time()
| double LArSamples::Residual::time |
( |
| ) |
const |
|
inline |
◆ upb()
| int LArSamples::Residual::upb |
( |
| ) |
const |
|
inlinevirtual |
◆ m_adcMax
| double LArSamples::Residual::m_adcMax |
|
private |
◆ m_deltas
| TVectorD LArSamples::Residual::m_deltas |
|
private |
◆ m_event
| int LArSamples::Residual::m_event |
|
private |
◆ m_run
| int LArSamples::Residual::m_run |
|
private |
◆ m_time
| double LArSamples::Residual::m_time |
|
private |
The documentation for this class was generated from the following files: