#include <PulseShapeFitOOTPileupCorrection.h>
Public Member Functions | |
void | apply (const CaloSamples &cs, const std::vector< int > &capidvec, const HcalCalibrations &calibs, std::vector< double > &correctedOutput) const |
PulseShapeFitOOTPileupCorrection () | |
void | resetPulseShapeTemplate (const HcalPulseShapes::Shape &ps) |
void | setPulseShapeTemplate (const HcalPulseShapes::Shape &ps) |
void | setPUParams (bool iPedestalConstraint, bool iTimeConstraint, bool iAddPulseJitter, bool iUnConstrainedFit, bool iApplyTimeSlew, double iTS4Min, double iTS4Max, double iPulseJitter, double iTimeMean, double iTimeSig, double iPedMean, double iPedSig, double iNoise, double iTMin, double iTMax, double its3Chi2, double its4Chi2, double its345Chi2, double iChargeThreshold, HcalTimeSlew::BiasSetting slewFlavor, int iFitTimes) |
~PulseShapeFitOOTPileupCorrection () | |
Private Member Functions | |
void | fit (int iFit, float &timevalfit, float &chargevalfit, float &pedvalfit, float &chi2, bool &fitStatus, double &iTSMax, const double &iTSTOTen, double *iEnArr, int(&iBX)[3]) const |
int | pulseShapeFit (const double *energyArr, const double *pedenArr, const double *chargeArr, const double *pedArr, const double *gainArr, const double tsTOTen, std::vector< double > &fitParsVec) const |
Private Attributes | |
bool | addPulseJitter_ |
bool | applyTimeSlew_ |
double | chargeThreshold_ |
int | cntsetPulseShape |
ROOT::Math::Functor * | dpfunctor_ |
int | fitTimes_ |
PSFitter::HybridMinimizer * | hybridfitter |
std::array< double, HcalConst::maxSamples > | iniTimesArr |
double | noise_ |
bool | pedestalConstraint_ |
double | pedMean_ |
double | pedSig_ |
std::auto_ptr < FitterFuncs::PulseShapeFunctor > | psfPtr_ |
double | pulseJitter_ |
HcalTimeSlew::BiasSetting | slewFlavor_ |
ROOT::Math::Functor * | spfunctor_ |
bool | timeConstraint_ |
double | timeMean_ |
double | timeSig_ |
ROOT::Math::Functor * | tpfunctor_ |
double | ts345Chi2_ |
double | ts3Chi2_ |
double | ts4Chi2_ |
double | ts4Max_ |
double | ts4Min_ |
int | TSMax_ |
int | TSMin_ |
bool | unConstrainedFit_ |
Definition at line 86 of file PulseShapeFitOOTPileupCorrection.h.
PulseShapeFitOOTPileupCorrection::PulseShapeFitOOTPileupCorrection | ( | ) |
Definition at line 199 of file PulseShapeFitOOTPileupCorrection.cc.
References hybridfitter, iniTimesArr, and PSFitter::HybridMinimizer::kMigrad.
PulseShapeFitOOTPileupCorrection::~PulseShapeFitOOTPileupCorrection | ( | ) |
Definition at line 209 of file PulseShapeFitOOTPileupCorrection.cc.
References dpfunctor_, hybridfitter, spfunctor_, and tpfunctor_.
void PulseShapeFitOOTPileupCorrection::apply | ( | const CaloSamples & | cs, |
const std::vector< int > & | capidvec, | ||
const HcalCalibrations & | calibs, | ||
std::vector< double > & | correctedOutput | ||
) | const |
Definition at line 272 of file PulseShapeFitOOTPileupCorrection.cc.
References RecoTauCleanerPlugins::charge, relval_parameters_module::energy, HcalConst::maxSamples, HcalCalibrations::pedestal(), psfPtr_, pulseShapeFit(), HcalCalibrations::respcorrgain(), CaloSamples::size(), and ts4Min_.
Referenced by heavyIonTools.ConfigureHeavyIons::__call__(), editorTools.UserCodeTool::__call__(), HiCoreTools.RestrictInputToAOD::__call__(), coreTools.RunOnData::__call__(), trackTools.MakeAODTrackCandidates::__call__(), runJetUncertainties.RunJetUncertainties::__call__(), metTools.AddMETCollection::__call__(), heavyIonTools.ProductionDefaults::__call__(), editorTools.ChangeSource::__call__(), HiCoreTools.RemoveMCMatching::__call__(), coreTools.RemoveMCMatching::__call__(), trackTools.MakePATTrackCandidates::__call__(), trigTools.SwitchOnTrigger::__call__(), jetTools.AddJetCollection::__call__(), heavyIonTools.SelectionDefaults::__call__(), HiCoreTools.RemoveAllPATObjectsBut::__call__(), heavyIonTools.DisbaleMonteCarloDeps::__call__(), HiCoreTools.RemoveSpecificPATObjects::__call__(), trigTools.SwitchOnTriggerStandAlone::__call__(), trackTools.MakeTrackCandidates::__call__(), trigTools.SwitchOnTriggerMatching::__call__(), HiCoreTools.RemoveCleaning::__call__(), HiCoreTools.AddCleaning::__call__(), tauTools.AddTauCollection::__call__(), trigTools.SwitchOnTriggerMatchingStandAlone::__call__(), trigTools.SwitchOnTriggerMatchEmbedding::__call__(), jetTools.SwitchJetCollection::__call__(), jetTools.AddJetID::__call__(), jetTools.SetTagInfos::__call__(), HcalSimpleRecAlgoImpl::reco(), and HcalSimpleRecAlgoImpl::recoHBHE().
|
private |
Definition at line 387 of file PulseShapeFitOOTPileupCorrection.cc.
References funct::abs(), assert(), PSFitter::HybridMinimizer::Clear(), dpfunctor_, fitTimes_, hybridfitter, i, iniTimesArr, PSFitter::HybridMinimizer::kMigrad, PSFitter::HybridMinimizer::kScan, PSFitter::HybridMinimizer::Minimize(), PSFitter::HybridMinimizer::MinValue(), gen::n, pedMean_, pedSig_, python.entryComment::results, PSFitter::HybridMinimizer::SetFixedVariable(), PSFitter::HybridMinimizer::SetFunction(), PSFitter::HybridMinimizer::SetLimitedVariable(), PSFitter::HybridMinimizer::SetMinimizerType(), spfunctor_, relval_parameters_module::step, timeMean_, timeSig_, tpfunctor_, TSMax_, TSMin_, unConstrainedFit_, varNames, and PSFitter::HybridMinimizer::X().
Referenced by pulseShapeFit().
|
private |
Definition at line 319 of file PulseShapeFitOOTPileupCorrection.cc.
References funct::abs(), applyTimeSlew_, rpcdqm::BX, chargeThreshold_, HcalTimeSlew::delay(), fit(), i, bookConverter::max, HcalConst::maxSamples, noise_, psfPtr_, slewFlavor_, mathSSE::sqrt(), ts4Chi2_, ts4Max_, and unConstrainedFit_.
Referenced by apply().
void PulseShapeFitOOTPileupCorrection::resetPulseShapeTemplate | ( | const HcalPulseShapes::Shape & | ps | ) |
Definition at line 263 of file PulseShapeFitOOTPileupCorrection.cc.
References addPulseJitter_, applyTimeSlew_, cntsetPulseShape, FitterFuncs::PulseShapeFunctor::doublePulseShapeFunc(), dpfunctor_, noise_, pedestalConstraint_, pedMean_, pedSig_, psfPtr_, pulseJitter_, FitterFuncs::PulseShapeFunctor::singlePulseShapeFunc(), spfunctor_, timeConstraint_, timeMean_, timeSig_, tpfunctor_, and FitterFuncs::PulseShapeFunctor::triplePulseShapeFunc().
void PulseShapeFitOOTPileupCorrection::setPulseShapeTemplate | ( | const HcalPulseShapes::Shape & | ps | ) |
Definition at line 252 of file PulseShapeFitOOTPileupCorrection.cc.
References addPulseJitter_, applyTimeSlew_, cntsetPulseShape, FitterFuncs::PulseShapeFunctor::doublePulseShapeFunc(), dpfunctor_, noise_, pedestalConstraint_, pedMean_, pedSig_, psfPtr_, pulseJitter_, FitterFuncs::PulseShapeFunctor::singlePulseShapeFunc(), spfunctor_, timeConstraint_, timeMean_, timeSig_, tpfunctor_, and FitterFuncs::PulseShapeFunctor::triplePulseShapeFunc().
void PulseShapeFitOOTPileupCorrection::setPUParams | ( | bool | iPedestalConstraint, |
bool | iTimeConstraint, | ||
bool | iAddPulseJitter, | ||
bool | iUnConstrainedFit, | ||
bool | iApplyTimeSlew, | ||
double | iTS4Min, | ||
double | iTS4Max, | ||
double | iPulseJitter, | ||
double | iTimeMean, | ||
double | iTimeSig, | ||
double | iPedMean, | ||
double | iPedSig, | ||
double | iNoise, | ||
double | iTMin, | ||
double | iTMax, | ||
double | its3Chi2, | ||
double | its4Chi2, | ||
double | its345Chi2, | ||
double | iChargeThreshold, | ||
HcalTimeSlew::BiasSetting | slewFlavor, | ||
int | iFitTimes | ||
) |
Definition at line 216 of file PulseShapeFitOOTPileupCorrection.cc.
References addPulseJitter_, applyTimeSlew_, chargeThreshold_, fitTimes_, noise_, pedestalConstraint_, pedMean_, pedSig_, pulseJitter_, slewFlavor_, timeConstraint_, timeMean_, timeSig_, ts345Chi2_, ts3Chi2_, ts4Chi2_, ts4Max_, ts4Min_, TSMax_, TSMin_, and unConstrainedFit_.
|
private |
Definition at line 124 of file PulseShapeFitOOTPileupCorrection.h.
Referenced by resetPulseShapeTemplate(), setPulseShapeTemplate(), and setPUParams().
|
private |
Definition at line 126 of file PulseShapeFitOOTPileupCorrection.h.
Referenced by pulseShapeFit(), resetPulseShapeTemplate(), setPulseShapeTemplate(), and setPUParams().
|
private |
Definition at line 110 of file PulseShapeFitOOTPileupCorrection.h.
Referenced by pulseShapeFit(), and setPUParams().
|
private |
Definition at line 108 of file PulseShapeFitOOTPileupCorrection.h.
Referenced by resetPulseShapeTemplate(), and setPulseShapeTemplate().
|
private |
Definition at line 115 of file PulseShapeFitOOTPileupCorrection.h.
Referenced by fit(), resetPulseShapeTemplate(), setPulseShapeTemplate(), and ~PulseShapeFitOOTPileupCorrection().
|
private |
Definition at line 111 of file PulseShapeFitOOTPileupCorrection.h.
Referenced by fit(), and setPUParams().
|
private |
Definition at line 107 of file PulseShapeFitOOTPileupCorrection.h.
Referenced by fit(), PulseShapeFitOOTPileupCorrection(), and ~PulseShapeFitOOTPileupCorrection().
|
private |
Definition at line 109 of file PulseShapeFitOOTPileupCorrection.h.
Referenced by fit(), and PulseShapeFitOOTPileupCorrection().
|
private |
Definition at line 134 of file PulseShapeFitOOTPileupCorrection.h.
Referenced by pulseShapeFit(), resetPulseShapeTemplate(), setPulseShapeTemplate(), and setPUParams().
|
private |
Definition at line 122 of file PulseShapeFitOOTPileupCorrection.h.
Referenced by resetPulseShapeTemplate(), setPulseShapeTemplate(), and setPUParams().
|
private |
Definition at line 132 of file PulseShapeFitOOTPileupCorrection.h.
Referenced by fit(), resetPulseShapeTemplate(), setPulseShapeTemplate(), and setPUParams().
|
private |
Definition at line 133 of file PulseShapeFitOOTPileupCorrection.h.
Referenced by fit(), resetPulseShapeTemplate(), setPulseShapeTemplate(), and setPUParams().
|
private |
Definition at line 113 of file PulseShapeFitOOTPileupCorrection.h.
Referenced by apply(), pulseShapeFit(), resetPulseShapeTemplate(), and setPulseShapeTemplate().
|
private |
Definition at line 129 of file PulseShapeFitOOTPileupCorrection.h.
Referenced by resetPulseShapeTemplate(), setPulseShapeTemplate(), and setPUParams().
|
private |
Definition at line 135 of file PulseShapeFitOOTPileupCorrection.h.
Referenced by pulseShapeFit(), and setPUParams().
|
private |
Definition at line 114 of file PulseShapeFitOOTPileupCorrection.h.
Referenced by fit(), resetPulseShapeTemplate(), setPulseShapeTemplate(), and ~PulseShapeFitOOTPileupCorrection().
|
private |
Definition at line 123 of file PulseShapeFitOOTPileupCorrection.h.
Referenced by resetPulseShapeTemplate(), setPulseShapeTemplate(), and setPUParams().
|
private |
Definition at line 130 of file PulseShapeFitOOTPileupCorrection.h.
Referenced by fit(), resetPulseShapeTemplate(), setPulseShapeTemplate(), and setPUParams().
|
private |
Definition at line 131 of file PulseShapeFitOOTPileupCorrection.h.
Referenced by fit(), resetPulseShapeTemplate(), setPulseShapeTemplate(), and setPUParams().
|
private |
Definition at line 116 of file PulseShapeFitOOTPileupCorrection.h.
Referenced by fit(), resetPulseShapeTemplate(), setPulseShapeTemplate(), and ~PulseShapeFitOOTPileupCorrection().
|
private |
Definition at line 121 of file PulseShapeFitOOTPileupCorrection.h.
Referenced by setPUParams().
|
private |
Definition at line 120 of file PulseShapeFitOOTPileupCorrection.h.
Referenced by setPUParams().
|
private |
Definition at line 119 of file PulseShapeFitOOTPileupCorrection.h.
Referenced by pulseShapeFit(), and setPUParams().
|
private |
Definition at line 128 of file PulseShapeFitOOTPileupCorrection.h.
Referenced by pulseShapeFit(), and setPUParams().
|
private |
Definition at line 127 of file PulseShapeFitOOTPileupCorrection.h.
Referenced by apply(), and setPUParams().
|
private |
Definition at line 118 of file PulseShapeFitOOTPileupCorrection.h.
Referenced by fit(), and setPUParams().
|
private |
Definition at line 117 of file PulseShapeFitOOTPileupCorrection.h.
Referenced by fit(), and setPUParams().
|
private |
Definition at line 125 of file PulseShapeFitOOTPileupCorrection.h.
Referenced by fit(), pulseShapeFit(), and setPUParams().