#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_ |
std::unique_ptr< HcalDeterministicFit > | hltOOTpuCorr_ |
boost::shared_ptr< AbsOOTPileupCorrection > | hoPileupCorr_ |
unsigned | lenBunchCrossingInfo_ |
std::unique_ptr< PedestalSub > | pedSubFxn_ |
float | phaseNS_ |
int | pileupCleaningID_ |
std::unique_ptr< PulseShapeFitOOTPileupCorrection > | psFitOOTpuCorr_ |
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 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 20 of file HcalSimpleRecAlgo.cc.
References hcalTimeSlew_delay_, hltOOTpuCorr_, MaximumFractionalError, pedSubFxn_, and pulseCorr_.
void HcalSimpleRecAlgo::beginRun | ( | edm::EventSetup const & | es | ) |
Definition at line 32 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 42 of file HcalSimpleRecAlgo.cc.
References pulseCorr_.
Referenced by HcalSimpleReconstructor::endRun(), and HcalHitReconstructor::endRun().
void HcalSimpleRecAlgo::initPulseCorr | ( | int | toadd | ) |
Definition at line 48 of file HcalSimpleRecAlgo.cc.
HFRecHit HcalSimpleRecAlgo::reconstruct | ( | const HFDataFrame & | digi, |
int | first, | ||
int | toadd, | ||
const HcalCoder & | coder, | ||
const HcalCalibrations & | calibs | ||
) | const |
Definition at line 356 of file HcalSimpleRecAlgo.cc.
References bunchCrossingInfo_, corr, correctForPulse_, correctForTimeslew_, hfPileupCorr_, HFDataFrame::id(), lenBunchCrossingInfo_, findQualityFiles::maxI, phaseNS_, pulseCorr_, HcalSimpleRecAlgoImpl::recoHFTime(), HcalSimpleRecAlgoImpl::removePileup(), setRawEnergy(), cscNeutronWriter_cfi::t0, reco::t2, 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 332 of file HcalSimpleRecAlgo.cc.
References bunchCrossingInfo_, correctForPulse_, correctForTimeslew_, plotBeamSpotDB::first, hcalTimeSlew_delay_, 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 344 of file HcalSimpleRecAlgo.cc.
References bunchCrossingInfo_, correctForPulse_, correctForTimeslew_, HcalTimeSlew::Fast, plotBeamSpotDB::first, hcalTimeSlew_delay_, hltOOTpuCorr_, lenBunchCrossingInfo_, pedSubFxn_, phaseNS_, psFitOOTpuCorr_, puCorrMethod_, pulseCorr_, and runnum_.
HFRecHit HcalSimpleRecAlgo::reconstructQIE10 | ( | const QIE10DataFrame & | digi, |
int | first, | ||
int | toadd, | ||
const HcalCoder & | coder, | ||
const HcalCalibrations & | calibs | ||
) | const |
Definition at line 385 of file HcalSimpleRecAlgo.cc.
References bunchCrossingInfo_, corr, correctForPulse_, correctForTimeslew_, hfPileupCorr_, QIE10DataFrame::id(), lenBunchCrossingInfo_, findQualityFiles::maxI, phaseNS_, pulseCorr_, HcalSimpleRecAlgoImpl::recoHFTime(), HcalSimpleRecAlgoImpl::removePileup(), setRawEnergy(), cscNeutronWriter_cfi::t0, reco::t2, ntuplemaker::time, and HcalCalibrations::timecorr().
void HcalSimpleRecAlgo::setBXInfo | ( | const BunchXParameter * | info, |
unsigned | lenInfo | ||
) |
Definition at line 73 of file HcalSimpleRecAlgo.cc.
References bunchCrossingInfo_, info(), leakCorr(), lenBunchCrossingInfo_, and timeshift_ns_hf().
void HcalSimpleRecAlgo::setHFPileupCorrection | ( | boost::shared_ptr< AbsOOTPileupCorrection > | corr | ) |
Definition at line 61 of file HcalSimpleRecAlgo.cc.
References corr, and hfPileupCorr_.
void HcalSimpleRecAlgo::setHOPileupCorrection | ( | boost::shared_ptr< AbsOOTPileupCorrection > | corr | ) |
Definition at line 67 of file HcalSimpleRecAlgo.cc.
References corr, and hoPileupCorr_.
void HcalSimpleRecAlgo::setLeakCorrection | ( | ) |
Definition at line 59 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 51 of file HcalSimpleRecAlgo.cc.
References correctForPulse_, CastorSimpleReconstructor_cfi::correctForTimeslew, correctForTimeslew_, phaseNS_, pileupCleaningID_, setLeakCorrection(), and setLeakCorrection_.
Referenced by HcalHitReconstructor::produce().
|
private |
Definition at line 80 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 82 of file HcalSimpleRecAlgo.h.
|
private |
Definition at line 90 of file HcalSimpleRecAlgo.h.
Referenced by beginRun(), HcalSimpleRecAlgo(), and reconstruct().
|
private |
Definition at line 83 of file HcalSimpleRecAlgo.h.
Referenced by reconstruct(), reconstructQIE10(), and setHFPileupCorrection().
|
private |
Definition at line 97 of file HcalSimpleRecAlgo.h.
Referenced by HcalSimpleRecAlgo(), and reconstruct().
|
private |
Definition at line 84 of file HcalSimpleRecAlgo.h.
Referenced by reconstruct(), and setHOPileupCorrection().
|
private |
Definition at line 81 of file HcalSimpleRecAlgo.h.
Referenced by reconstruct(), reconstructQIE10(), and setBXInfo().
|
private |
Definition at line 94 of file HcalSimpleRecAlgo.h.
Referenced by HcalSimpleRecAlgo(), and reconstruct().
|
private |
Definition at line 75 of file HcalSimpleRecAlgo.h.
Referenced by reconstruct(), reconstructQIE10(), and setRecoParams().
|
private |
Definition at line 79 of file HcalSimpleRecAlgo.h.
Referenced by setRecoParams().
|
private |
Definition at line 92 of file HcalSimpleRecAlgo.h.
Referenced by reconstruct().
|
private |
Definition at line 88 of file HcalSimpleRecAlgo.h.
Referenced by reconstruct().
|
private |
Definition at line 76 of file HcalSimpleRecAlgo.h.
Referenced by beginRun(), endRun(), HcalSimpleRecAlgo(), reconstruct(), and reconstructQIE10().
|
private |
Definition at line 77 of file HcalSimpleRecAlgo.h.
Referenced by reconstruct().
|
private |
Definition at line 78 of file HcalSimpleRecAlgo.h.
Referenced by setLeakCorrection(), and setRecoParams().
|
private |
Definition at line 86 of file HcalSimpleRecAlgo.h.