#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) |
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 (boost::shared_ptr< AbsOOTPileupCorrection > corr) |
void | setHOPileupCorrection (boost::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_ |
boost::shared_ptr< AbsOOTPileupCorrection > | hbhePileupCorr_ |
const HcalTimeSlew * | hcalTimeSlew_delay_ |
boost::shared_ptr< AbsOOTPileupCorrection > | hfPileupCorr_ |
boost::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 35 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 20 of file HcalSimpleRecAlgo.cc.
References hcalTimeSlew_delay_, MaximumFractionalError, and pulseCorr_.
void HcalSimpleRecAlgo::beginRun | ( | edm::EventSetup const & | es | ) |
Definition at line 30 of file HcalSimpleRecAlgo.cc.
References edm::EventSetup::get(), hcalTimeSlew_delay_, and pulseCorr_.
Referenced by HcalSimpleReconstructor::beginRun(), and HcalHitReconstructor::beginRun().
void HcalSimpleRecAlgo::endRun | ( | ) |
Definition at line 40 of file HcalSimpleRecAlgo.cc.
Referenced by HcalSimpleReconstructor::endRun(), and HcalHitReconstructor::endRun().
void HcalSimpleRecAlgo::initPulseCorr | ( | int | toadd | ) |
Definition at line 45 of file HcalSimpleRecAlgo.cc.
HFRecHit HcalSimpleRecAlgo::reconstruct | ( | const HFDataFrame & | digi, |
int | first, | ||
int | toadd, | ||
const HcalCoder & | coder, | ||
const HcalCalibrations & | calibs | ||
) | const |
Definition at line 352 of file HcalSimpleRecAlgo.cc.
References bunchCrossingInfo_, corr, correctForPulse_, correctForTimeslew_, hfPileupCorr_, HFDataFrame::id(), lenBunchCrossingInfo_, findQualityFiles::maxI, phaseNS_, pulseCorr_, HcalSimpleRecAlgoImpl::recoHFTime(), HcalSimpleRecAlgoImpl::removePileup(), setRawEnergy(), genVertex_cff::t0, ntuplemaker::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 328 of file HcalSimpleRecAlgo.cc.
References bunchCrossingInfo_, correctForPulse_, correctForTimeslew_, plotBeamSpotDB::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 340 of file HcalSimpleRecAlgo.cc.
References bunchCrossingInfo_, correctForPulse_, correctForTimeslew_, HcalTimeSlew::Fast, plotBeamSpotDB::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 381 of file HcalSimpleRecAlgo.cc.
References bunchCrossingInfo_, corr, correctForPulse_, correctForTimeslew_, hfPileupCorr_, QIE10DataFrame::id(), lenBunchCrossingInfo_, findQualityFiles::maxI, phaseNS_, pulseCorr_, HcalSimpleRecAlgoImpl::recoHFTime(), HcalSimpleRecAlgoImpl::removePileup(), setRawEnergy(), genVertex_cff::t0, ntuplemaker::time, and HcalCalibrations::timecorr().
void HcalSimpleRecAlgo::setBXInfo | ( | const BunchXParameter * | info, |
unsigned | lenInfo | ||
) |
Definition at line 70 of file HcalSimpleRecAlgo.cc.
References bunchCrossingInfo_, info(), leakCorr(), lenBunchCrossingInfo_, and timeshift_ns_hf().
void HcalSimpleRecAlgo::setHFPileupCorrection | ( | boost::shared_ptr< AbsOOTPileupCorrection > | corr | ) |
Definition at line 58 of file HcalSimpleRecAlgo.cc.
References corr, and hfPileupCorr_.
void HcalSimpleRecAlgo::setHOPileupCorrection | ( | boost::shared_ptr< AbsOOTPileupCorrection > | corr | ) |
Definition at line 64 of file HcalSimpleRecAlgo.cc.
References corr, and hoPileupCorr_.
void HcalSimpleRecAlgo::setLeakCorrection | ( | ) |
Definition at line 56 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 48 of file HcalSimpleRecAlgo.cc.
References correctForPulse_, CastorSimpleReconstructor_cfi::correctForTimeslew, correctForTimeslew_, phaseNS_, pileupCleaningID_, setLeakCorrection(), and setLeakCorrection_.
Referenced by HcalHitReconstructor::produce().
|
private |
Definition at line 75 of file HcalSimpleRecAlgo.h.
Referenced by reconstruct(), reconstructQIE10(), and setBXInfo().
|
private |
Definition at line 69 of file HcalSimpleRecAlgo.h.
Referenced by reconstruct(), reconstructQIE10(), and setRecoParams().
|
private |
Definition at line 68 of file HcalSimpleRecAlgo.h.
Referenced by reconstruct(), reconstructQIE10(), and setRecoParams().
|
private |
Definition at line 77 of file HcalSimpleRecAlgo.h.
|
private |
Definition at line 85 of file HcalSimpleRecAlgo.h.
Referenced by beginRun(), HcalSimpleRecAlgo(), and reconstruct().
|
private |
Definition at line 78 of file HcalSimpleRecAlgo.h.
Referenced by reconstruct(), reconstructQIE10(), and setHFPileupCorrection().
|
private |
Definition at line 79 of file HcalSimpleRecAlgo.h.
Referenced by reconstruct(), and setHOPileupCorrection().
|
private |
Definition at line 76 of file HcalSimpleRecAlgo.h.
Referenced by reconstruct(), reconstructQIE10(), and setBXInfo().
|
private |
Definition at line 70 of file HcalSimpleRecAlgo.h.
Referenced by reconstruct(), reconstructQIE10(), and setRecoParams().
|
private |
Definition at line 74 of file HcalSimpleRecAlgo.h.
Referenced by setRecoParams().
|
private |
Definition at line 83 of file HcalSimpleRecAlgo.h.
Referenced by reconstruct().
|
private |
Definition at line 71 of file HcalSimpleRecAlgo.h.
Referenced by beginRun(), HcalSimpleRecAlgo(), reconstruct(), and reconstructQIE10().
|
private |
Definition at line 72 of file HcalSimpleRecAlgo.h.
Referenced by reconstruct().
|
private |
Definition at line 73 of file HcalSimpleRecAlgo.h.
Referenced by setLeakCorrection(), and setRecoParams().
|
private |
Definition at line 81 of file HcalSimpleRecAlgo.h.