#include <HcalSimpleRecAlgo.h>
Public Member Functions | |
void | beginRun (edm::EventSetup const &es) |
void | endRun () |
HcalSimpleRecAlgo (bool correctForTimeslew, bool correctForContainment, float fixedPhaseNs, edm::ConsumesCollector iC) | |
void | initPulseCorr (int toadd) |
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 |
HFRecHit | reconstructQIE10 (const QIE10DataFrame &digi, int first, int toadd, const HcalCoder &coder, const HcalCalibrations &calibs) const |
void | setBXInfo (const BunchXParameter *info, unsigned lenInfo) |
void | setHFPileupCorrection (std::shared_ptr< AbsOOTPileupCorrection > corr) |
void | setHOPileupCorrection (std::shared_ptr< AbsOOTPileupCorrection > corr) |
void | setLeakCorrection () |
void | setRecoParams (bool correctForTimeslew, bool correctForPulse, bool setLeakCorrection, int pileupCleaningID, float phaseNS) |
Private Attributes | |
const BunchXParameter * | bunchCrossingInfo_ |
bool | correctForPulse_ |
bool | correctForTimeslew_ |
const edm::ESGetToken< HcalTimeSlew, HcalTimeSlewRecord > | delayToken_ |
std::shared_ptr< AbsOOTPileupCorrection > | hbhePileupCorr_ |
const HcalTimeSlew * | hcalTimeSlew_delay_ |
std::shared_ptr< AbsOOTPileupCorrection > | hfPileupCorr_ |
std::shared_ptr< AbsOOTPileupCorrection > | hoPileupCorr_ |
unsigned | lenBunchCrossingInfo_ |
float | phaseNS_ |
int | pileupCleaningID_ |
int | puCorrMethod_ |
std::unique_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 34 of file HcalSimpleRecAlgo.h.
HcalSimpleRecAlgo::HcalSimpleRecAlgo | ( | bool | correctForTimeslew, |
bool | correctForContainment, | ||
float | fixedPhaseNs, | ||
edm::ConsumesCollector | iC | ||
) |
Full featured constructor for HB/HE and HO (HPD-based detectors)
Definition at line 20 of file HcalSimpleRecAlgo.cc.
References hcalTimeSlew_delay_, MaximumFractionalError, and pulseCorr_.
void HcalSimpleRecAlgo::beginRun | ( | edm::EventSetup const & | es | ) |
Definition at line 35 of file HcalSimpleRecAlgo.cc.
References delayToken_, edm::EventSetup::getData(), hcalTimeSlew_delay_, and pulseCorr_.
Referenced by HcalSimpleReconstructor::beginRun(), and HcalHitReconstructor::beginRun().
void HcalSimpleRecAlgo::endRun | ( | ) |
Definition at line 41 of file HcalSimpleRecAlgo.cc.
Referenced by HcalSimpleReconstructor::endRun(), and HcalHitReconstructor::endRun().
void HcalSimpleRecAlgo::initPulseCorr | ( | int | toadd | ) |
Definition at line 43 of file HcalSimpleRecAlgo.cc.
HFRecHit HcalSimpleRecAlgo::reconstruct | ( | const HFDataFrame & | digi, |
int | first, | ||
int | toadd, | ||
const HcalCoder & | coder, | ||
const HcalCalibrations & | calibs | ||
) | const |
Definition at line 380 of file HcalSimpleRecAlgo.cc.
References bunchCrossingInfo_, alignCSCRings::corr, correctForPulse_, correctForTimeslew_, dqmdumpme::first, hfPileupCorr_, HFDataFrame::id(), lenBunchCrossingInfo_, findQualityFiles::maxI, phaseNS_, pulseCorr_, HcalSimpleRecAlgoImpl::recoHFTime(), HcalSimpleRecAlgoImpl::removePileup(), setRawEnergy(), FrontierCondition_GT_autoExpress_cfi::t0, RandomServiceHelper::t2, hcalRecHitTable_cff::time, and HcalCalibrations::timecorr().
Referenced by HcalSimpleReconstructor::process(), and HcalHitReconstructor::produce().
HORecHit HcalSimpleRecAlgo::reconstruct | ( | const HODataFrame & | digi, |
int | first, | ||
int | toadd, | ||
const HcalCoder & | coder, | ||
const HcalCalibrations & | calibs | ||
) | const |
Definition at line 337 of file HcalSimpleRecAlgo.cc.
References bunchCrossingInfo_, correctForPulse_, correctForTimeslew_, dqmdumpme::first, hcalTimeSlew_delay_, hoPileupCorr_, lenBunchCrossingInfo_, phaseNS_, 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 357 of file HcalSimpleRecAlgo.cc.
References bunchCrossingInfo_, correctForPulse_, correctForTimeslew_, HcalTimeSlew::Fast, dqmdumpme::first, hcalTimeSlew_delay_, lenBunchCrossingInfo_, phaseNS_, puCorrMethod_, pulseCorr_, and runnum_.
HFRecHit HcalSimpleRecAlgo::reconstructQIE10 | ( | const QIE10DataFrame & | digi, |
int | first, | ||
int | toadd, | ||
const HcalCoder & | coder, | ||
const HcalCalibrations & | calibs | ||
) | const |
Definition at line 421 of file HcalSimpleRecAlgo.cc.
References bunchCrossingInfo_, alignCSCRings::corr, correctForPulse_, correctForTimeslew_, dqmdumpme::first, hfPileupCorr_, QIE10DataFrame::id(), lenBunchCrossingInfo_, findQualityFiles::maxI, phaseNS_, pulseCorr_, HcalSimpleRecAlgoImpl::recoHFTime(), HcalSimpleRecAlgoImpl::removePileup(), setRawEnergy(), FrontierCondition_GT_autoExpress_cfi::t0, RandomServiceHelper::t2, hcalRecHitTable_cff::time, and HcalCalibrations::timecorr().
void HcalSimpleRecAlgo::setBXInfo | ( | const BunchXParameter * | info, |
unsigned | lenInfo | ||
) |
Definition at line 60 of file HcalSimpleRecAlgo.cc.
References bunchCrossingInfo_, info(), and lenBunchCrossingInfo_.
void HcalSimpleRecAlgo::setHFPileupCorrection | ( | std::shared_ptr< AbsOOTPileupCorrection > | corr | ) |
Definition at line 56 of file HcalSimpleRecAlgo.cc.
References alignCSCRings::corr, and hfPileupCorr_.
void HcalSimpleRecAlgo::setHOPileupCorrection | ( | std::shared_ptr< AbsOOTPileupCorrection > | corr | ) |
Definition at line 58 of file HcalSimpleRecAlgo.cc.
References alignCSCRings::corr, and hoPileupCorr_.
void HcalSimpleRecAlgo::setLeakCorrection | ( | ) |
Definition at line 54 of file HcalSimpleRecAlgo.cc.
References setLeakCorrection_.
Referenced by HcalHitReconstructor::produce(), and setRecoParams().
void HcalSimpleRecAlgo::setRecoParams | ( | bool | correctForTimeslew, |
bool | correctForPulse, | ||
bool | setLeakCorrection, | ||
int | pileupCleaningID, | ||
float | phaseNS | ||
) |
Definition at line 45 of file HcalSimpleRecAlgo.cc.
References correctForPulse_, ecalCosmicsHists_cfg::correctForTimeslew, correctForTimeslew_, phaseNS_, pileupCleaningID_, setLeakCorrection(), and setLeakCorrection_.
Referenced by HcalHitReconstructor::produce().
|
private |
Definition at line 81 of file HcalSimpleRecAlgo.h.
Referenced by reconstruct(), reconstructQIE10(), and setBXInfo().
|
private |
Definition at line 74 of file HcalSimpleRecAlgo.h.
Referenced by reconstruct(), reconstructQIE10(), and setRecoParams().
|
private |
Definition at line 73 of file HcalSimpleRecAlgo.h.
Referenced by reconstruct(), reconstructQIE10(), and setRecoParams().
|
private |
Definition at line 76 of file HcalSimpleRecAlgo.h.
Referenced by beginRun().
|
private |
Definition at line 83 of file HcalSimpleRecAlgo.h.
|
private |
Definition at line 91 of file HcalSimpleRecAlgo.h.
Referenced by beginRun(), HcalSimpleRecAlgo(), and reconstruct().
|
private |
Definition at line 84 of file HcalSimpleRecAlgo.h.
Referenced by reconstruct(), reconstructQIE10(), and setHFPileupCorrection().
|
private |
Definition at line 85 of file HcalSimpleRecAlgo.h.
Referenced by reconstruct(), and setHOPileupCorrection().
|
private |
Definition at line 82 of file HcalSimpleRecAlgo.h.
Referenced by reconstruct(), reconstructQIE10(), and setBXInfo().
|
private |
Definition at line 75 of file HcalSimpleRecAlgo.h.
Referenced by reconstruct(), reconstructQIE10(), and setRecoParams().
|
private |
Definition at line 80 of file HcalSimpleRecAlgo.h.
Referenced by setRecoParams().
|
private |
Definition at line 89 of file HcalSimpleRecAlgo.h.
Referenced by reconstruct().
|
private |
Definition at line 77 of file HcalSimpleRecAlgo.h.
Referenced by beginRun(), HcalSimpleRecAlgo(), reconstruct(), and reconstructQIE10().
|
private |
Definition at line 78 of file HcalSimpleRecAlgo.h.
Referenced by reconstruct().
|
private |
Definition at line 79 of file HcalSimpleRecAlgo.h.
Referenced by setLeakCorrection(), and setRecoParams().
|
private |
Definition at line 87 of file HcalSimpleRecAlgo.h.