#include <PedestalSub.h>
Public Types | |
enum | Method { DoNothing =0, AvgWithThresh =1, AvgWithoutThresh =2, AvgWithThreshNoPedSub =3, Percentile =4 } |
Public Member Functions | |
void | calculate (const std::vector< double > &inputCharge, const std::vector< double > &inputPedestal, std::vector< double > &corrCharge) const |
double | getCorrection (const std::vector< double > &inputCharge, const std::vector< double > &inputPedestal) const |
void | init (Method method, int runCond, float threshold, float quantile) |
PedestalSub () | |
~PedestalSub () | |
Private Attributes | |
float | fCondition |
Method | fMethod |
float | fQuantile |
float | fThreshold |
Definition at line 7 of file PedestalSub.h.
enum PedestalSub::Method |
Enumerator | |
---|---|
DoNothing | |
AvgWithThresh | |
AvgWithoutThresh | |
AvgWithThreshNoPedSub | |
Percentile |
Definition at line 10 of file PedestalSub.h.
PedestalSub::PedestalSub | ( | ) |
Definition at line 8 of file PedestalSub.cc.
PedestalSub::~PedestalSub | ( | ) |
Definition at line 11 of file PedestalSub.cc.
void PedestalSub::calculate | ( | const std::vector< double > & | inputCharge, |
const std::vector< double > & | inputPedestal, | ||
std::vector< double > & | corrCharge | ||
) | const |
Definition at line 21 of file PedestalSub.cc.
References AvgWithoutThresh, AvgWithThresh, fMethod, getCorrection(), i, and Percentile.
Referenced by HcalDeterministicFit::apply().
double PedestalSub::getCorrection | ( | const std::vector< double > & | inputCharge, |
const std::vector< double > & | inputPedestal | ||
) | const |
Definition at line 34 of file PedestalSub.cc.
References AvgWithoutThresh, AvgWithThresh, AvgWithThreshNoPedSub, DoNothing, fMethod, fThreshold, and i.
Referenced by calculate().
void PedestalSub::init | ( | Method | method = AvgWithThresh , |
int | runCond = 0 , |
||
float | threshold = 0.0 , |
||
float | quantile = 0.0 |
||
) |
Definition at line 14 of file PedestalSub.cc.
References fCondition, fMethod, fQuantile, fThreshold, PFRecoTauDiscriminationAgainstElectronMVA3GBR_cfi::method, and dtDQMClient_cfg::threshold.
|
private |
Definition at line 26 of file PedestalSub.h.
Referenced by init().
|
private |
Definition at line 23 of file PedestalSub.h.
Referenced by calculate(), getCorrection(), and init().
|
private |
Definition at line 25 of file PedestalSub.h.
Referenced by init().
|
private |
Definition at line 24 of file PedestalSub.h.
Referenced by getCorrection(), and init().