#include <HcalSimpleRecAlgo.h>
Public Member Functions | |
void | beginRun (edm::EventSetup const &es) |
void | endRun () |
HcalSimpleRecAlgo (bool correctForTimeslew, bool correctForContainment, float fixedPhaseNs) | |
void | initPulseCorr (int toadd) |
HBHERecHit | reconstruct (const HBHEDataFrame &digi, int first, int toadd, const HcalCoder &coder, const HcalCalibrations &calibs) const |
HFRecHit | reconstruct (const HFDataFrame &digi, int first, int toadd, const HcalCoder &coder, const HcalCalibrations &calibs) const |
HORecHit | reconstruct (const HODataFrame &digi, int first, int toadd, const HcalCoder &coder, const HcalCalibrations &calibs) const |
HcalCalibRecHit | reconstruct (const HcalCalibDataFrame &digi, int first, int toadd, const HcalCoder &coder, const HcalCalibrations &calibs) const |
HBHERecHit | reconstructHBHEUpgrade (const HcalUpgradeDataFrame &digi, int first, int toadd, const HcalCoder &coder, const HcalCalibrations &calibs) const |
HFRecHit | reconstructHFUpgrade (const HcalUpgradeDataFrame &digi, int first, int toadd, const HcalCoder &coder, const HcalCalibrations &calibs) const |
void | setBXInfo (const BunchXParameter *info, unsigned lenInfo) |
void | setForData (int runnum) |
void | setHBHEPileupCorrection (boost::shared_ptr< AbsOOTPileupCorrection > corr) |
void | setHFPileupCorrection (boost::shared_ptr< AbsOOTPileupCorrection > corr) |
void | setHOPileupCorrection (boost::shared_ptr< AbsOOTPileupCorrection > corr) |
void | setLeakCorrection () |
void | setMeth3Params (int iPedSubMethod, float iPedSubThreshold, int iTimeSlewParsType, std::vector< double > iTimeSlewPars, double irespCorrM3) |
void | setpuCorrMethod (int method) |
void | setpuCorrParams (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, int iFitTimes) |
void | setRecoParams (bool correctForTimeslew, bool correctForPulse, bool setLeakCorrection, int pileupCleaningID, float phaseNS) |
Private Attributes | |
const BunchXParameter * | bunchCrossingInfo_ |
bool | correctForPulse_ |
bool | correctForTimeslew_ |
boost::shared_ptr < AbsOOTPileupCorrection > | hbhePileupCorr_ |
boost::shared_ptr < AbsOOTPileupCorrection > | hfPileupCorr_ |
std::auto_ptr < HcalDeterministicFit > | hltOOTpuCorr_ |
boost::shared_ptr < AbsOOTPileupCorrection > | hoPileupCorr_ |
unsigned | lenBunchCrossingInfo_ |
std::auto_ptr< PedestalSub > | pedSubFxn_ |
float | phaseNS_ |
int | pileupCleaningID_ |
std::auto_ptr < PulseShapeFitOOTPileupCorrection > | psFitOOTpuCorr_ |
int | puCorrMethod_ |
std::auto_ptr < HcalPulseContainmentManager > | pulseCorr_ |
int | runnum_ |
bool | setLeakCorrection_ |
HcalPulseShapes | theHcalPulseShapes_ |
This class reconstructs RecHits from Digis for HBHE, HF, and HO by addition of selected time samples, pedestal subtraction, and gain application. The time of the hit is reconstructed using a weighted peak bin calculation supplemented by precise time lookup table. A consumer of this class also has the option of correcting the reconstructed time for energy-dependent time slew associated with the QIE.
Definition at line 40 of file HcalSimpleRecAlgo.h.
HcalSimpleRecAlgo::HcalSimpleRecAlgo | ( | bool | correctForTimeslew, |
bool | correctForContainment, | ||
float | fixedPhaseNs | ||
) |
Full featured constructor for HB/HE and HO (HPD-based detectors)
Definition at line 18 of file HcalSimpleRecAlgo.cc.
References hltOOTpuCorr_, MaximumFractionalError, pedSubFxn_, and pulseCorr_.
void HcalSimpleRecAlgo::beginRun | ( | edm::EventSetup const & | es | ) |
Definition at line 29 of file HcalSimpleRecAlgo.cc.
References pulseCorr_.
Referenced by HcalSimpleReconstructor::beginRun(), and HcalHitReconstructor::beginRun().
void HcalSimpleRecAlgo::endRun | ( | void | ) |
Definition at line 35 of file HcalSimpleRecAlgo.cc.
References pulseCorr_.
Referenced by HcalSimpleReconstructor::endRun(), and HcalHitReconstructor::endRun().
void HcalSimpleRecAlgo::initPulseCorr | ( | int | toadd | ) |
Definition at line 41 of file HcalSimpleRecAlgo.cc.
HBHERecHit HcalSimpleRecAlgo::reconstruct | ( | const HBHEDataFrame & | digi, |
int | first, | ||
int | toadd, | ||
const HcalCoder & | coder, | ||
const HcalCalibrations & | calibs | ||
) | const |
Definition at line 532 of file HcalSimpleRecAlgo.cc.
References bunchCrossingInfo_, correctForPulse_, correctForTimeslew_, plotBeamSpotDB::first, hbhePileupCorr_, hltOOTpuCorr_, lenBunchCrossingInfo_, HcalTimeSlew::Medium, pedSubFxn_, phaseNS_, psFitOOTpuCorr_, puCorrMethod_, pulseCorr_, runnum_, and setLeakCorrection_.
Referenced by HcalSimpleReconstructor::process(), and HcalHitReconstructor::produce().
HFRecHit HcalSimpleRecAlgo::reconstruct | ( | const HFDataFrame & | digi, |
int | first, | ||
int | toadd, | ||
const HcalCoder & | coder, | ||
const HcalCalibrations & | calibs | ||
) | const |
Definition at line 576 of file HcalSimpleRecAlgo.cc.
References bunchCrossingInfo_, corr, correctForPulse_, correctForTimeslew_, hfPileupCorr_, HFDataFrame::id(), lenBunchCrossingInfo_, findQualityFiles::maxI, phaseNS_, pulseCorr_, HcalSimpleRecAlgoImpl::recoHFTime(), HcalSimpleRecAlgoImpl::removePileup(), setRawEnergy(), cond::rpcobgas::time, and HcalCalibrations::timecorr().
HORecHit HcalSimpleRecAlgo::reconstruct | ( | const HODataFrame & | digi, |
int | first, | ||
int | toadd, | ||
const HcalCoder & | coder, | ||
const HcalCalibrations & | calibs | ||
) | const |
Definition at line 543 of file HcalSimpleRecAlgo.cc.
References bunchCrossingInfo_, correctForPulse_, correctForTimeslew_, plotBeamSpotDB::first, hltOOTpuCorr_, hoPileupCorr_, lenBunchCrossingInfo_, pedSubFxn_, phaseNS_, psFitOOTpuCorr_, puCorrMethod_, pulseCorr_, runnum_, and HcalTimeSlew::Slow.
HcalCalibRecHit HcalSimpleRecAlgo::reconstruct | ( | const HcalCalibDataFrame & | digi, |
int | first, | ||
int | toadd, | ||
const HcalCoder & | coder, | ||
const HcalCalibrations & | calibs | ||
) | const |
Definition at line 553 of file HcalSimpleRecAlgo.cc.
References bunchCrossingInfo_, correctForPulse_, correctForTimeslew_, HcalTimeSlew::Fast, plotBeamSpotDB::first, hltOOTpuCorr_, lenBunchCrossingInfo_, pedSubFxn_, phaseNS_, psFitOOTpuCorr_, puCorrMethod_, pulseCorr_, and runnum_.
HBHERecHit HcalSimpleRecAlgo::reconstructHBHEUpgrade | ( | const HcalUpgradeDataFrame & | digi, |
int | first, | ||
int | toadd, | ||
const HcalCoder & | coder, | ||
const HcalCalibrations & | calibs | ||
) | const |
Definition at line 563 of file HcalSimpleRecAlgo.cc.
References bunchCrossingInfo_, correctForPulse_, correctForTimeslew_, plotBeamSpotDB::first, hbhePileupCorr_, hltOOTpuCorr_, lenBunchCrossingInfo_, HcalTimeSlew::Medium, pedSubFxn_, phaseNS_, psFitOOTpuCorr_, puCorrMethod_, pulseCorr_, query::result, and EcalTBTDCReconstructor_cfi::tdcReco.
Referenced by HcalSimpleReconstructor::processUpgrade().
HFRecHit HcalSimpleRecAlgo::reconstructHFUpgrade | ( | const HcalUpgradeDataFrame & | digi, |
int | first, | ||
int | toadd, | ||
const HcalCoder & | coder, | ||
const HcalCalibrations & | calibs | ||
) | const |
Definition at line 608 of file HcalSimpleRecAlgo.cc.
References bunchCrossingInfo_, corr, correctForPulse_, correctForTimeslew_, hfPileupCorr_, HcalUpgradeDataFrame::id(), lenBunchCrossingInfo_, findQualityFiles::maxI, phaseNS_, pulseCorr_, HcalSimpleRecAlgoImpl::recoHFTime(), HcalSimpleRecAlgoImpl::removePileup(), setRawEnergy(), cond::rpcobgas::time, and HcalCalibrations::timecorr().
Referenced by HcalSimpleReconstructor::processUpgrade().
void HcalSimpleRecAlgo::setBXInfo | ( | const BunchXParameter * | info, |
unsigned | lenInfo | ||
) |
Definition at line 103 of file HcalSimpleRecAlgo.cc.
References bunchCrossingInfo_, info(), and lenBunchCrossingInfo_.
void HcalSimpleRecAlgo::setForData | ( | int | runnum | ) |
Definition at line 72 of file HcalSimpleRecAlgo.cc.
References HcalPulseShapes::getShape(), HPDShapev3DataNum, HPDShapev3MCNum, psFitOOTpuCorr_, puCorrMethod_, summaryLumi::runnum, runnum_, and theHcalPulseShapes_.
Referenced by HcalSimpleReconstructor::produce(), and HcalHitReconstructor::produce().
void HcalSimpleRecAlgo::setHBHEPileupCorrection | ( | boost::shared_ptr< AbsOOTPileupCorrection > | corr | ) |
Definition at line 85 of file HcalSimpleRecAlgo.cc.
References corr, and hbhePileupCorr_.
Referenced by HcalHitReconstructor::HcalHitReconstructor().
void HcalSimpleRecAlgo::setHFPileupCorrection | ( | boost::shared_ptr< AbsOOTPileupCorrection > | corr | ) |
Definition at line 91 of file HcalSimpleRecAlgo.cc.
References corr, and hfPileupCorr_.
void HcalSimpleRecAlgo::setHOPileupCorrection | ( | boost::shared_ptr< AbsOOTPileupCorrection > | corr | ) |
Definition at line 97 of file HcalSimpleRecAlgo.cc.
References corr, and hoPileupCorr_.
void HcalSimpleRecAlgo::setLeakCorrection | ( | ) |
Definition at line 83 of file HcalSimpleRecAlgo.cc.
References setLeakCorrection_.
Referenced by HcalHitReconstructor::produce(), and setRecoParams().
void HcalSimpleRecAlgo::setMeth3Params | ( | int | iPedSubMethod, |
float | iPedSubThreshold, | ||
int | iTimeSlewParsType, | ||
std::vector< double > | iTimeSlewPars, | ||
double | irespCorrM3 | ||
) |
Definition at line 66 of file HcalSimpleRecAlgo.cc.
References hltOOTpuCorr_, HcalTimeSlew::Medium, and pedSubFxn_.
Referenced by HcalHitReconstructor::HcalHitReconstructor(), and HcalSimpleReconstructor::HcalSimpleReconstructor().
|
inline |
Definition at line 79 of file HcalSimpleRecAlgo.h.
References PFRecoTauDiscriminationAgainstElectronMVA3GBR_cfi::method, psFitOOTpuCorr_, and puCorrMethod_.
Referenced by HcalHitReconstructor::HcalHitReconstructor().
void HcalSimpleRecAlgo::setpuCorrParams | ( | 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, | ||
int | iFitTimes | ||
) |
Definition at line 52 of file HcalSimpleRecAlgo.cc.
References assert(), HcalTimeSlew::Medium, and psFitOOTpuCorr_.
Referenced by HcalHitReconstructor::HcalHitReconstructor().
void HcalSimpleRecAlgo::setRecoParams | ( | bool | correctForTimeslew, |
bool | correctForPulse, | ||
bool | setLeakCorrection, | ||
int | pileupCleaningID, | ||
float | phaseNS | ||
) |
Definition at line 44 of file HcalSimpleRecAlgo.cc.
References correctForPulse_, castor_dqm_sourceclient-live_cfg::correctForTimeslew, correctForTimeslew_, phaseNS_, pileupCleaningID_, setLeakCorrection(), and setLeakCorrection_.
Referenced by HcalHitReconstructor::produce().
|
private |
Definition at line 99 of file HcalSimpleRecAlgo.h.
Referenced by reconstruct(), reconstructHBHEUpgrade(), reconstructHFUpgrade(), and setBXInfo().
|
private |
Definition at line 93 of file HcalSimpleRecAlgo.h.
Referenced by reconstruct(), reconstructHBHEUpgrade(), reconstructHFUpgrade(), and setRecoParams().
|
private |
Definition at line 92 of file HcalSimpleRecAlgo.h.
Referenced by reconstruct(), reconstructHBHEUpgrade(), reconstructHFUpgrade(), and setRecoParams().
|
private |
Definition at line 101 of file HcalSimpleRecAlgo.h.
Referenced by reconstruct(), reconstructHBHEUpgrade(), and setHBHEPileupCorrection().
|
private |
Definition at line 102 of file HcalSimpleRecAlgo.h.
Referenced by reconstruct(), reconstructHFUpgrade(), and setHFPileupCorrection().
|
private |
Definition at line 114 of file HcalSimpleRecAlgo.h.
Referenced by HcalSimpleRecAlgo(), reconstruct(), reconstructHBHEUpgrade(), and setMeth3Params().
|
private |
Definition at line 103 of file HcalSimpleRecAlgo.h.
Referenced by reconstruct(), and setHOPileupCorrection().
|
private |
Definition at line 100 of file HcalSimpleRecAlgo.h.
Referenced by reconstruct(), reconstructHBHEUpgrade(), reconstructHFUpgrade(), and setBXInfo().
|
private |
Definition at line 111 of file HcalSimpleRecAlgo.h.
Referenced by HcalSimpleRecAlgo(), reconstruct(), reconstructHBHEUpgrade(), and setMeth3Params().
|
private |
Definition at line 94 of file HcalSimpleRecAlgo.h.
Referenced by reconstruct(), reconstructHBHEUpgrade(), reconstructHFUpgrade(), and setRecoParams().
|
private |
Definition at line 98 of file HcalSimpleRecAlgo.h.
Referenced by setRecoParams().
|
private |
Definition at line 109 of file HcalSimpleRecAlgo.h.
Referenced by reconstruct(), reconstructHBHEUpgrade(), setForData(), setpuCorrMethod(), and setpuCorrParams().
|
private |
Definition at line 107 of file HcalSimpleRecAlgo.h.
Referenced by reconstruct(), reconstructHBHEUpgrade(), setForData(), and setpuCorrMethod().
|
private |
Definition at line 95 of file HcalSimpleRecAlgo.h.
Referenced by beginRun(), endRun(), HcalSimpleRecAlgo(), reconstruct(), reconstructHBHEUpgrade(), and reconstructHFUpgrade().
|
private |
Definition at line 96 of file HcalSimpleRecAlgo.h.
Referenced by reconstruct(), and setForData().
|
private |
Definition at line 97 of file HcalSimpleRecAlgo.h.
Referenced by reconstruct(), setLeakCorrection(), and setRecoParams().
|
private |
Definition at line 105 of file HcalSimpleRecAlgo.h.
Referenced by setForData().