#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 | setForData (int runnum) |
void | setLeakCorrection () |
void | setRecoParams (bool correctForTimeslew, bool correctForPulse, bool setLeakCorrection, int pileupCleaningID, float phaseNS) |
Private Attributes | |
bool | correctForPulse_ |
bool | correctForTimeslew_ |
float | phaseNS_ |
int | pileupCleaningID_ |
std::auto_ptr < HcalPulseContainmentManager > | pulseCorr_ |
int | runnum_ |
bool | setLeakCorrection_ |
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 31 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 12 of file HcalSimpleRecAlgo.cc.
References MaximumFractionalError, and pulseCorr_.
HcalSimpleRecAlgo::HcalSimpleRecAlgo | ( | ) |
void HcalSimpleRecAlgo::beginRun | ( | edm::EventSetup const & | es | ) |
Definition at line 28 of file HcalSimpleRecAlgo.cc.
References pulseCorr_.
Referenced by HcalSimpleReconstructor::beginRun(), and HcalHitReconstructor::beginRun().
void HcalSimpleRecAlgo::endRun | ( | void | ) |
Definition at line 34 of file HcalSimpleRecAlgo.cc.
References pulseCorr_.
Referenced by HcalSimpleReconstructor::endRun(), and HcalHitReconstructor::endRun().
void HcalSimpleRecAlgo::initPulseCorr | ( | int | toadd | ) |
Definition at line 40 of file HcalSimpleRecAlgo.cc.
HBHERecHit HcalSimpleRecAlgo::reconstruct | ( | const HBHEDataFrame & | digi, |
int | first, | ||
int | toadd, | ||
const HcalCoder & | coder, | ||
const HcalCalibrations & | calibs | ||
) | const |
Definition at line 162 of file HcalSimpleRecAlgo.cc.
References correctForPulse_, correctForTimeslew_, first, HcalTimeSlew::Medium, phaseNS_, 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 205 of file HcalSimpleRecAlgo.cc.
References HcalCoder::adc2fC(), alignCSCRings::corr, correctForPulse_, correctForTimeslew_, alignCSCRings::e, create_public_lumi_plots::exp, f, HcalPulseContainmentCorrection::getCorrection(), i, HFDataFrame::id(), LogDebug, findQualityFiles::maxI, bookConverter::min, HcalCalibrations::pedestal(), phaseNS_, HFDataFrame::presamples(), pulseCorr_, HcalCalibrations::respcorrgain(), CaloSamples::size(), reco::t2, cond::rpcobgas::time, HcalCalibrations::timecorr(), and timeshift_ns_hf().
HORecHit HcalSimpleRecAlgo::reconstruct | ( | const HODataFrame & | digi, |
int | first, | ||
int | toadd, | ||
const HcalCoder & | coder, | ||
const HcalCalibrations & | calibs | ||
) | const |
Definition at line 170 of file HcalSimpleRecAlgo.cc.
References correctForPulse_, correctForTimeslew_, first, phaseNS_, 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 178 of file HcalSimpleRecAlgo.cc.
References correctForPulse_, correctForTimeslew_, HcalTimeSlew::Fast, first, phaseNS_, pulseCorr_, and runnum_.
HBHERecHit HcalSimpleRecAlgo::reconstructHBHEUpgrade | ( | const HcalUpgradeDataFrame & | digi, |
int | first, | ||
int | toadd, | ||
const HcalCoder & | coder, | ||
const HcalCalibrations & | calibs | ||
) | const |
Definition at line 197 of file HcalSimpleRecAlgo.cc.
References correctForPulse_, correctForTimeslew_, first, HcalTimeSlew::Medium, phaseNS_, pulseCorr_, HcalTDCReco::reconstruct(), 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 294 of file HcalSimpleRecAlgo.cc.
References HcalCoder::adc2fC(), alignCSCRings::corr, correctForPulse_, correctForTimeslew_, alignCSCRings::e, create_public_lumi_plots::exp, f, HcalPulseContainmentCorrection::getCorrection(), i, HcalUpgradeDataFrame::id(), LogDebug, findQualityFiles::maxI, bookConverter::min, HcalCalibrations::pedestal(), phaseNS_, HcalUpgradeDataFrame::presamples(), pulseCorr_, HcalCalibrations::respcorrgain(), CaloSamples::size(), reco::t2, cond::rpcobgas::time, HcalCalibrations::timecorr(), and timeshift_ns_hf().
Referenced by HcalSimpleReconstructor::processUpgrade().
void HcalSimpleRecAlgo::setForData | ( | int | runnum | ) |
Definition at line 51 of file HcalSimpleRecAlgo.cc.
References summaryLumi::runnum, and runnum_.
Referenced by HcalSimpleReconstructor::produce(), and HcalHitReconstructor::produce().
void HcalSimpleRecAlgo::setLeakCorrection | ( | ) |
Definition at line 53 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 43 of file HcalSimpleRecAlgo.cc.
References correctForPulse_, correctForTimeslew_, phaseNS_, pileupCleaningID_, setLeakCorrection(), and setLeakCorrection_.
Referenced by HcalHitReconstructor::produce().
|
private |
Definition at line 64 of file HcalSimpleRecAlgo.h.
Referenced by reconstruct(), reconstructHBHEUpgrade(), reconstructHFUpgrade(), and setRecoParams().
|
private |
Definition at line 63 of file HcalSimpleRecAlgo.h.
Referenced by reconstruct(), reconstructHBHEUpgrade(), reconstructHFUpgrade(), and setRecoParams().
|
private |
Definition at line 65 of file HcalSimpleRecAlgo.h.
Referenced by reconstruct(), reconstructHBHEUpgrade(), reconstructHFUpgrade(), and setRecoParams().
|
private |
Definition at line 69 of file HcalSimpleRecAlgo.h.
Referenced by setRecoParams().
|
private |
Definition at line 66 of file HcalSimpleRecAlgo.h.
Referenced by beginRun(), endRun(), HcalSimpleRecAlgo(), reconstruct(), reconstructHBHEUpgrade(), and reconstructHFUpgrade().
|
private |
Definition at line 67 of file HcalSimpleRecAlgo.h.
Referenced by reconstruct(), and setForData().
|
private |
Definition at line 68 of file HcalSimpleRecAlgo.h.
Referenced by reconstruct(), setLeakCorrection(), and setRecoParams().