#include <RawDigitCharacterizationAlg.h>
Public Member Functions | |
RawDigitCharacterizationAlg (fhicl::ParameterSet const &pset) | |
~RawDigitCharacterizationAlg () | |
Destructor. More... | |
void | reconfigure (fhicl::ParameterSet const &pset) |
void | initializeHists (art::ServiceHandle< art::TFileService > &) |
Begin job method. More... | |
void | getMeanAndRms (const RawDigitVector &rawWaveform, float &aveVal, float &rmsVal, int &numBins) const |
void | getMeanAndTruncRms (const RawDigitVector &rawWaveform, float &aveVal, float &rmsVal, float &rmsTrunc, int &numBins) const |
void | getTruncatedRMS (const RawDigitVector &rawWaveform, float &pedestal, float &truncRms) const |
void | getMeanRmsAndPedCor (const RawDigitVector &rawWaveform, unsigned int channel, unsigned int view, unsigned int wire, float &aveVal, float &rmsVal, float &pedCorVal) const |
void | getWaveformParams (const RawDigitVector &rawWaveform, unsigned int channel, unsigned int view, unsigned int wire, float &truncMean, float &truncRms, short &mean, short &median, short &mode, float &skewness, float &rms, short &minMax, float &neighborRatio, float &pedCorVal) const |
bool | classifyRawDigitVec (RawDigitVector &rawWaveform, unsigned int viewIdx, unsigned int wire, float truncRms, short minMax, short mean, float skewness, float neighborRatio, GroupToDigitIdxPairMap &groupToDigitIdxPairMap) const |
template<class T > | |
T | getMedian (std::vector< T > &, T) const |
Private Attributes | |
float | fTruncMeanFraction |
Fraction for truncated mean. More... | |
std::vector< float > | fRmsRejectionCutHi |
Maximum rms for input channels, reject if larger. More... | |
std::vector< float > | fRmsRejectionCutLow |
Minimum rms to consider channel "alive". More... | |
std::vector< float > | fRmsSelectionCut |
Don't use/apply correction to wires below this. More... | |
std::vector< short > | fMinMaxSelectionCut |
Plane by plane cuts for spread cut. More... | |
unsigned int | fTheChosenWire |
For example hist. More... | |
double | fMaxPedestalDiff |
Max pedestal diff to db to warn. More... | |
std::vector< size_t > | fHistsWireGroup |
Wire Group to pick on. More... | |
std::vector< size_t > | fNumWiresToGroup |
If smoothing, the number of wires to look at. More... | |
bool | fFillHistograms |
if true then will fill diagnostic hists More... | |
bool | fHistsInitialized |
TH1D * | fAdcCntHist [3] |
TH1D * | fAveValHist [3] |
TH1D * | fRmsTValHist [3] |
TH1D * | fRmsFValHist [3] |
TH1D * | fPedValHist [3] |
TH1D * | fAverageHist [3] |
TProfile * | fRmsValProf [3] |
TProfile * | fMinMaxValProf [3] |
TProfile * | fPedValProf [3] |
std::vector< TProfile * > | fMinMaxProfiles |
std::vector< TProfile * > | fSkewnessProfiles |
std::vector< TProfile * > | fModeRatioProfiles |
caldata::ChannelGroups | fChannelGroups |
art::ServiceHandle< geo::Geometry > | fGeometry |
Detector properties service. More... | |
const lariov::DetPedestalProvider & | fPedestalRetrievalAlg |
Keep track of an instance to the pedestal retrieval alg. More... | |
Definition at line 45 of file RawDigitCharacterizationAlg.h.
caldata::RawDigitCharacterizationAlg::RawDigitCharacterizationAlg | ( | fhicl::ParameterSet const & | pset | ) |
Constructor.
Arguments:
pset - Fcl parameters.
Definition at line 18 of file RawDigitCharacterizationAlg.cxx.
caldata::RawDigitCharacterizationAlg::~RawDigitCharacterizationAlg | ( | ) |
bool caldata::RawDigitCharacterizationAlg::classifyRawDigitVec | ( | RawDigitVector & | rawWaveform, |
unsigned int | viewIdx, | ||
unsigned int | wire, | ||
float | truncRms, | ||
short | minMax, | ||
short | mean, | ||
float | skewness, | ||
float | neighborRatio, | ||
GroupToDigitIdxPairMap & | groupToDigitIdxPairMap | ||
) | const |
Definition at line 451 of file RawDigitCharacterizationAlg.cxx.
void caldata::RawDigitCharacterizationAlg::getMeanAndRms | ( | const RawDigitVector & | rawWaveform, |
float & | aveVal, | ||
float & | rmsVal, | ||
int & | numBins | ||
) | const |
Definition at line 326 of file RawDigitCharacterizationAlg.cxx.
void caldata::RawDigitCharacterizationAlg::getMeanAndTruncRms | ( | const RawDigitVector & | rawWaveform, |
float & | aveVal, | ||
float & | rmsVal, | ||
float & | rmsTrunc, | ||
int & | numBins | ||
) | const |
Definition at line 385 of file RawDigitCharacterizationAlg.cxx.
void caldata::RawDigitCharacterizationAlg::getMeanRmsAndPedCor | ( | const RawDigitVector & | rawWaveform, |
unsigned int | channel, | ||
unsigned int | view, | ||
unsigned int | wire, | ||
float & | aveVal, | ||
float & | rmsVal, | ||
float & | pedCorVal | ||
) | const |
Definition at line 272 of file RawDigitCharacterizationAlg.cxx.
T caldata::RawDigitCharacterizationAlg::getMedian | ( | std::vector< T > & | valuesVec, |
T | defaultValue | ||
) | const |
Definition at line 520 of file RawDigitCharacterizationAlg.cxx.
void caldata::RawDigitCharacterizationAlg::getTruncatedRMS | ( | const RawDigitVector & | rawWaveform, |
float & | pedestal, | ||
float & | truncRms | ||
) | const |
Definition at line 248 of file RawDigitCharacterizationAlg.cxx.
void caldata::RawDigitCharacterizationAlg::getWaveformParams | ( | const RawDigitVector & | rawWaveform, |
unsigned int | channel, | ||
unsigned int | view, | ||
unsigned int | wire, | ||
float & | truncMean, | ||
float & | truncRms, | ||
short & | mean, | ||
short & | median, | ||
short & | mode, | ||
float & | skewness, | ||
float & | rms, | ||
short & | minMax, | ||
float & | neighborRatio, | ||
float & | pedCorVal | ||
) | const |
Definition at line 123 of file RawDigitCharacterizationAlg.cxx.
void caldata::RawDigitCharacterizationAlg::initializeHists | ( | art::ServiceHandle< art::TFileService > & | tfs | ) |
Begin job method.
Definition at line 58 of file RawDigitCharacterizationAlg.cxx.
void caldata::RawDigitCharacterizationAlg::reconfigure | ( | fhicl::ParameterSet const & | pset | ) |
Reconfigure method.
Arguments:
pset - Fcl parameter set.
Definition at line 42 of file RawDigitCharacterizationAlg.cxx.
|
private |
Definition at line 130 of file RawDigitCharacterizationAlg.h.
|
private |
Definition at line 135 of file RawDigitCharacterizationAlg.h.
|
private |
Definition at line 131 of file RawDigitCharacterizationAlg.h.
|
private |
Definition at line 144 of file RawDigitCharacterizationAlg.h.
|
private |
if true then will fill diagnostic hists
Definition at line 124 of file RawDigitCharacterizationAlg.h.
|
private |
Detector properties service.
pointer to Geometry service
Definition at line 147 of file RawDigitCharacterizationAlg.h.
|
private |
Definition at line 127 of file RawDigitCharacterizationAlg.h.
|
private |
Wire Group to pick on.
Definition at line 122 of file RawDigitCharacterizationAlg.h.
|
private |
Max pedestal diff to db to warn.
Definition at line 121 of file RawDigitCharacterizationAlg.h.
|
private |
Definition at line 140 of file RawDigitCharacterizationAlg.h.
|
private |
Plane by plane cuts for spread cut.
Definition at line 119 of file RawDigitCharacterizationAlg.h.
|
private |
Definition at line 137 of file RawDigitCharacterizationAlg.h.
|
private |
Definition at line 142 of file RawDigitCharacterizationAlg.h.
|
private |
If smoothing, the number of wires to look at.
Definition at line 123 of file RawDigitCharacterizationAlg.h.
|
private |
Keep track of an instance to the pedestal retrieval alg.
Definition at line 149 of file RawDigitCharacterizationAlg.h.
|
private |
Definition at line 134 of file RawDigitCharacterizationAlg.h.
|
private |
Definition at line 138 of file RawDigitCharacterizationAlg.h.
|
private |
Definition at line 133 of file RawDigitCharacterizationAlg.h.
|
private |
Maximum rms for input channels, reject if larger.
Definition at line 116 of file RawDigitCharacterizationAlg.h.
|
private |
Minimum rms to consider channel "alive".
Definition at line 117 of file RawDigitCharacterizationAlg.h.
|
private |
Don't use/apply correction to wires below this.
Definition at line 118 of file RawDigitCharacterizationAlg.h.
|
private |
Definition at line 132 of file RawDigitCharacterizationAlg.h.
|
private |
Definition at line 136 of file RawDigitCharacterizationAlg.h.
|
private |
Definition at line 141 of file RawDigitCharacterizationAlg.h.
|
private |
For example hist.
Definition at line 120 of file RawDigitCharacterizationAlg.h.
|
private |
Fraction for truncated mean.
Definition at line 115 of file RawDigitCharacterizationAlg.h.