#include <HcalSimpleRecAlgo.h>
Public Member Functions | |
void | beginRun (edm::EventSetup const &es) |
void | endRun () |
HcalSimpleRecAlgo (bool correctForTimeslew, bool correctForContainment, float fixedPhaseNs) | |
HcalSimpleRecAlgo () | |
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 | 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) |
Public Attributes | |
std::auto_ptr< PedestalSub > | pedSubFxn_ = std::auto_ptr<PedestalSub>(new PedestalSub()) |
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_ |
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 17 of file HcalSimpleRecAlgo.cc.
References MaximumFractionalError, and pulseCorr_.
HcalSimpleRecAlgo::HcalSimpleRecAlgo | ( | ) |
void HcalSimpleRecAlgo::beginRun | ( | edm::EventSetup const & | es | ) |
Definition at line 35 of file HcalSimpleRecAlgo.cc.
References pulseCorr_.
Referenced by HcalSimpleReconstructor::beginRun(), and HcalHitReconstructor::beginRun().
void HcalSimpleRecAlgo::endRun | ( | void | ) |
Definition at line 41 of file HcalSimpleRecAlgo.cc.
References pulseCorr_.
Referenced by HcalSimpleReconstructor::endRun(), and HcalHitReconstructor::endRun().
void HcalSimpleRecAlgo::initPulseCorr | ( | int | toadd | ) |
Definition at line 47 of file HcalSimpleRecAlgo.cc.
HBHERecHit HcalSimpleRecAlgo::reconstruct | ( | const HBHEDataFrame & | digi, |
int | first, | ||
int | toadd, | ||
const HcalCoder & | coder, | ||
const HcalCalibrations & | calibs | ||
) | const |
Definition at line 420 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 464 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 431 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 441 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 451 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 496 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_.
Referenced by HcalHitReconstructor::HcalHitReconstructor().
void HcalSimpleRecAlgo::setHOPileupCorrection | ( | boost::shared_ptr< AbsOOTPileupCorrection > | corr | ) |
Definition at line 97 of file HcalSimpleRecAlgo.cc.
References corr, and hoPileupCorr_.
Referenced by HcalHitReconstructor::HcalHitReconstructor().
void HcalSimpleRecAlgo::setLeakCorrection | ( | ) |
Definition at line 83 of file HcalSimpleRecAlgo.cc.
References setLeakCorrection_.
Referenced by HcalHitReconstructor::produce(), and setRecoParams().
|
inline |
Definition at line 82 of file HcalSimpleRecAlgo.h.
References hltOOTpuCorr_, 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 58 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 50 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 101 of file HcalSimpleRecAlgo.h.
Referenced by reconstruct(), reconstructHBHEUpgrade(), reconstructHFUpgrade(), and setBXInfo().
|
private |
Definition at line 95 of file HcalSimpleRecAlgo.h.
Referenced by reconstruct(), reconstructHBHEUpgrade(), reconstructHFUpgrade(), and setRecoParams().
|
private |
Definition at line 94 of file HcalSimpleRecAlgo.h.
Referenced by reconstruct(), reconstructHBHEUpgrade(), reconstructHFUpgrade(), and setRecoParams().
|
private |
Definition at line 103 of file HcalSimpleRecAlgo.h.
Referenced by reconstruct(), reconstructHBHEUpgrade(), and setHBHEPileupCorrection().
|
private |
Definition at line 104 of file HcalSimpleRecAlgo.h.
Referenced by reconstruct(), reconstructHFUpgrade(), and setHFPileupCorrection().
|
private |
Definition at line 114 of file HcalSimpleRecAlgo.h.
Referenced by reconstruct(), reconstructHBHEUpgrade(), and setpuCorrMethod().
|
private |
Definition at line 105 of file HcalSimpleRecAlgo.h.
Referenced by reconstruct(), and setHOPileupCorrection().
|
private |
Definition at line 102 of file HcalSimpleRecAlgo.h.
Referenced by reconstruct(), reconstructHBHEUpgrade(), reconstructHFUpgrade(), and setBXInfo().
std::auto_ptr<PedestalSub> HcalSimpleRecAlgo::pedSubFxn_ = std::auto_ptr<PedestalSub>(new PedestalSub()) |
Definition at line 91 of file HcalSimpleRecAlgo.h.
Referenced by reconstruct(), and reconstructHBHEUpgrade().
|
private |
Definition at line 96 of file HcalSimpleRecAlgo.h.
Referenced by reconstruct(), reconstructHBHEUpgrade(), reconstructHFUpgrade(), and setRecoParams().
|
private |
Definition at line 100 of file HcalSimpleRecAlgo.h.
Referenced by setRecoParams().
|
private |
Definition at line 111 of file HcalSimpleRecAlgo.h.
Referenced by reconstruct(), reconstructHBHEUpgrade(), setForData(), setpuCorrMethod(), and setpuCorrParams().
|
private |
Definition at line 109 of file HcalSimpleRecAlgo.h.
Referenced by reconstruct(), reconstructHBHEUpgrade(), setForData(), and setpuCorrMethod().
|
private |
Definition at line 97 of file HcalSimpleRecAlgo.h.
Referenced by beginRun(), endRun(), HcalSimpleRecAlgo(), reconstruct(), reconstructHBHEUpgrade(), and reconstructHFUpgrade().
|
private |
Definition at line 98 of file HcalSimpleRecAlgo.h.
Referenced by reconstruct(), and setForData().
|
private |
Definition at line 99 of file HcalSimpleRecAlgo.h.
Referenced by reconstruct(), setLeakCorrection(), and setRecoParams().
|
private |
Definition at line 107 of file HcalSimpleRecAlgo.h.
Referenced by setForData().