#include <Residual.h>
|
| Residuals () |
|
| Residuals (const std::vector< Residual > &r) |
|
virtual | ~Residuals () |
|
unsigned int | size () const |
|
const Residual * | residual (unsigned int i) const |
|
int | lwb () const |
|
int | upb () const |
|
bool | add (const Residual &residual) |
|
bool | medianVars (TVectorD &medians, TVectorD &widths) const |
|
Residuals * | truncate (double nWidthsRes, double nWidthsTime=-1, unsigned int nMax=0) const |
|
ResidualCalculator * | calculator (bool weigh=false) const |
|
TH1D * | histogram (short sample, const TString &name, int nBins, double xMin, double xMax) const |
|
bool | isInRange (int i) const |
|
bool | hasSameRange (int lw, int up) const |
|
bool | hasSameRange (const IndexRange &other) const |
|
bool | hasSameRange (const TVectorD &v) const |
|
bool | providesRange (int lw, int up) const |
|
bool | providesRange (const IndexRange &other) const |
|
bool | providesRange (const TVectorD &v) const |
|
TString | rangeStr () const |
|
int | commonLwb (const IndexRange &other) const |
|
int | commonUpb (const IndexRange &other) const |
|
bool | checkRange (int &l, int &h) const |
|
◆ Residuals() [1/2]
LArSamples::Residuals::Residuals |
( |
| ) |
|
|
inline |
◆ Residuals() [2/2]
LArSamples::Residuals::Residuals |
( |
const std::vector< Residual > & |
r | ) |
|
|
inline |
◆ ~Residuals()
virtual LArSamples::Residuals::~Residuals |
( |
| ) |
|
|
inlinevirtual |
◆ add()
◆ calculator()
◆ checkRange()
bool IndexRange::checkRange |
( |
int & |
l, |
|
|
int & |
h |
|
) |
| const |
|
inherited |
Definition at line 14 of file IndexRange.cxx.
19 cout <<
"IndexRange::checkRange : lower bound " <<
l <<
" is out of bounds" << endl;
26 cout <<
"IndexRange::checkRange : upper bound " <<
h <<
" is out of bounds" << endl;
◆ commonLwb()
◆ commonUpb()
◆ hasSameRange() [1/3]
bool LArSamples::IndexRange::hasSameRange |
( |
const IndexRange & |
other | ) |
const |
|
inlineinherited |
◆ 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 |
◆ histogram()
TH1D * Residuals::histogram |
( |
short |
sample, |
|
|
const TString & |
name, |
|
|
int |
nBins, |
|
|
double |
xMin, |
|
|
double |
xMax |
|
) |
| const |
◆ isInRange()
bool LArSamples::IndexRange::isInRange |
( |
int |
i | ) |
const |
|
inlineinherited |
◆ lwb()
int LArSamples::Residuals::lwb |
( |
| ) |
const |
|
inlinevirtual |
◆ medianVars()
bool Residuals::medianVars |
( |
TVectorD & |
medians, |
|
|
TVectorD & |
widths |
|
) |
| const |
Definition at line 87 of file LArCalorimeter/LArSamplesMon/src/Residual.cxx.
89 if (
size() == 0)
return false;
90 medians.ResizeTo(
lwb(),
upb() + 1);
91 widths.ResizeTo (
lwb(),
upb() + 1);
93 double halfSigmaQuantile = TMath::Prob(1,1)/2;
94 double medianQuantile = 0.5;
96 std::vector<Residual> sortedResiduals =
m_residuals;
98 for (
short i =
lwb();
i <=
upb() + 1;
i++) {
129 Residual& medianRes = sortedResiduals[(
unsigned int)(sortedResiduals.size()*medianQuantile)];
130 Residual& loHalfSigmaRes = sortedResiduals[(
unsigned int)(sortedResiduals.size()*halfSigmaQuantile)];
131 Residual& hiHalfSigmaRes = sortedResiduals[(
unsigned int)(sortedResiduals.size()*(1 - halfSigmaQuantile))];
133 double loHalfSigma = (
i <
upb() + 1 ? loHalfSigmaRes.scaledDelta(
i) : loHalfSigmaRes.time());
134 double hiHalfSigma = (
i <
upb() + 1 ? hiHalfSigmaRes.scaledDelta(
i) : hiHalfSigmaRes.time());
◆ providesRange() [1/3]
bool LArSamples::IndexRange::providesRange |
( |
const IndexRange & |
other | ) |
const |
|
inlineinherited |
◆ 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 |
◆ residual()
const Residual* LArSamples::Residuals::residual |
( |
unsigned int |
i | ) |
const |
|
inline |
◆ size()
unsigned int LArSamples::Residuals::size |
( |
| ) |
const |
|
inline |
◆ truncate()
Residuals * Residuals::truncate |
( |
double |
nWidthsRes, |
|
|
double |
nWidthsTime = -1 , |
|
|
unsigned int |
nMax = 0 |
|
) |
| const |
◆ upb()
int LArSamples::Residuals::upb |
( |
| ) |
const |
|
inlinevirtual |
◆ m_residuals
std::vector<Residual> LArSamples::Residuals::m_residuals |
|
private |
The documentation for this class was generated from the following files:
void sort(typename std::reverse_iterator< DataModel_detail::iterator< DVL > > beg, typename std::reverse_iterator< DataModel_detail::iterator< DVL > > end, const Compare &comp)
Specialization of sort for DataVector/List.