#include <SimpleHBHEPhase1Algo.h>
Public Member Functions | |
void | beginRun (const edm::Run &, const edm::EventSetup &) override |
void | endRun () override |
int | getFirstSampleShift () const |
float | getPhaseNS () const |
int | getRunNumber () const |
int | getSamplesToAdd () const |
float | getTimeShift () const |
bool | isConfigurable () const override |
bool | isCorrectingForPhaseContainment () const |
HBHERecHit | reconstruct (const HBHEChannelInfo &info, const HcalRecoParam *params, const HcalCalibrations &calibs, bool isRealData) override |
SimpleHBHEPhase1Algo (int firstSampleShift, int samplesToAdd, float phaseNS, float timeShift, bool correctForPhaseContainment, bool applyLegacyHBMCorrection, bool applyFixPCC, std::unique_ptr< PulseShapeFitOOTPileupCorrection > m2, std::unique_ptr< HcalDeterministicFit > detFit, std::unique_ptr< MahiFit > mahi, edm::ConsumesCollector iC) | |
~SimpleHBHEPhase1Algo () override | |
Public Member Functions inherited from AbsHBHEPhase1Algo | |
virtual bool | configure (const AbsHcalAlgoData *) |
virtual | ~AbsHBHEPhase1Algo () |
Public Attributes | |
edm::ESGetToken< HcalTimeSlew, HcalTimeSlewRecord > | delayToken_ |
const HcalTimeSlew * | hcalTimeSlew_delay_ |
Protected Member Functions | |
float | hbminusCorrectionFactor (const HcalDetId &cell, float energy, bool isRealData) const |
float | m0Energy (const HBHEChannelInfo &info, double reconstructedCharge, bool applyContainmentCorrection, double phaseNS, int nSamplesToAdd) |
float | m0Time (const HBHEChannelInfo &info, double reconstructedCharge, int nSamplesToExamine) const |
Private Attributes | |
bool | applyLegacyHBMCorrection_ |
bool | corrFPC_ |
int | firstSampleShift_ |
std::unique_ptr < HcalDeterministicFit > | hltOOTpuCorr_ |
std::unique_ptr< MahiFit > | mahiOOTpuCorr_ |
float | phaseNS_ |
std::unique_ptr < PulseShapeFitOOTPileupCorrection > | psFitOOTpuCorr_ |
HcalPulseContainmentManager | pulseCorr_ |
int | runnum_ |
int | samplesToAdd_ |
HcalPulseShapes | theHcalPulseShapes_ |
float | timeShift_ |
Definition at line 18 of file SimpleHBHEPhase1Algo.h.
SimpleHBHEPhase1Algo::SimpleHBHEPhase1Algo | ( | int | firstSampleShift, |
int | samplesToAdd, | ||
float | phaseNS, | ||
float | timeShift, | ||
bool | correctForPhaseContainment, | ||
bool | applyLegacyHBMCorrection, | ||
bool | applyFixPCC, | ||
std::unique_ptr< PulseShapeFitOOTPileupCorrection > | m2, | ||
std::unique_ptr< HcalDeterministicFit > | detFit, | ||
std::unique_ptr< MahiFit > | mahi, | ||
edm::ConsumesCollector | iC | ||
) |
Definition at line 22 of file SimpleHBHEPhase1Algo.cc.
References hcalTimeSlew_delay_.
|
inlineoverride |
Definition at line 54 of file SimpleHBHEPhase1Algo.h.
|
overridevirtual |
Reimplemented from AbsHBHEPhase1Algo.
Definition at line 48 of file SimpleHBHEPhase1Algo.cc.
References HcalPulseContainmentManager::beginRun(), delayToken_, edm::EventSetup::getData(), hcalTimeSlew_delay_, pulseCorr_, edm::RunBase::run(), and runnum_.
|
overridevirtual |
Reimplemented from AbsHBHEPhase1Algo.
Definition at line 55 of file SimpleHBHEPhase1Algo.cc.
References runnum_.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
protected |
Definition at line 155 of file SimpleHBHEPhase1Algo.cc.
References applyLegacyHBMCorrection_, alignCSCRings::corr, hbminus_special_ecorr(), HcalBarrel, HcalDetId::ieta(), HcalDetId::iphi(), runnum_, and HcalDetId::subdet().
Referenced by reconstruct().
|
inlineoverridevirtual |
Implements AbsHBHEPhase1Algo.
Definition at line 60 of file SimpleHBHEPhase1Algo.h.
|
inline |
|
protected |
Definition at line 168 of file SimpleHBHEPhase1Algo.cc.
References alignCSCRings::e, HBHEChannelInfo::energyInWindow(), firstSampleShift_, HcalPulseContainmentManager::get(), HBHEChannelInfo::id(), pulseCorr_, and HBHEChannelInfo::soi().
Referenced by reconstruct().
|
protected |
Definition at line 189 of file SimpleHBHEPhase1Algo.cc.
References HcalTimeSlew::delay(), validate-o2o-wbm::f, firstSampleShift_, hcalTimeSlew_delay_, SiStripPI::max, findQualityFiles::maxI, HBHEChannelInfo::MAXSAMPLES, HcalTimeSlew::Medium, SiStripPI::min, hgc_digi::nSamples, HBHEChannelInfo::nSamples(), HBHEChannelInfo::peakEnergyTS(), position, HBHEChannelInfo::soi(), and HBHEChannelInfo::tsEnergy().
Referenced by reconstruct().
|
overridevirtual |
Implements AbsHBHEPhase1Algo.
Definition at line 57 of file SimpleHBHEPhase1Algo.cc.
References HBHEChannelInfo::chargeInWindow(), HLT_FULL_cff::chi2, HcalRecoParam::correctForPhaseContainment(), HcalRecoParam::correctionPhaseNS(), corrFPC_, firstSampleShift_, HcalPulseShapes::getShape(), HBHEChannelInfo::hasTimeInfo(), HcalPhase1FlagLabels::HBHEPulseFitBit, hbminusCorrectionFactor(), hcalTimeSlew_delay_, hltOOTpuCorr_, HBHEChannelInfo::id(), HcalSpecialTimes::isSpecial(), m0Energy(), m0Time(), mahiOOTpuCorr_, HBHEChannelInfo::nSamples(), HcalDeterministicFit::phase1Apply(), PulseShapeFitOOTPileupCorrection::phase1Apply(), MahiFit::phase1Apply(), phaseNS_, psFitOOTpuCorr_, HBHEChannelInfo::recoShape(), HcalRecoParam::samplesToAdd(), samplesToAdd_, HBHERecHitAuxSetter::setAux(), HBHERecHit::setAuxEnergy(), HBHERecHit::setChiSquared(), CaloRecHit::setFlagField(), HBHERecHit::setRawEnergy(), HBHEChannelInfo::soi(), HBHEChannelInfo::soiRiseTime(), theHcalPulseShapes_, and timeShift_.
|
private |
Definition at line 102 of file SimpleHBHEPhase1Algo.h.
Referenced by hbminusCorrectionFactor().
|
private |
Definition at line 101 of file SimpleHBHEPhase1Algo.h.
Referenced by isCorrectingForPhaseContainment(), and reconstruct().
edm::ESGetToken<HcalTimeSlew, HcalTimeSlewRecord> SimpleHBHEPhase1Algo::delayToken_ |
Definition at line 74 of file SimpleHBHEPhase1Algo.h.
Referenced by beginRun().
|
private |
Definition at line 96 of file SimpleHBHEPhase1Algo.h.
Referenced by getFirstSampleShift(), m0Energy(), m0Time(), and reconstruct().
const HcalTimeSlew* SimpleHBHEPhase1Algo::hcalTimeSlew_delay_ |
Definition at line 75 of file SimpleHBHEPhase1Algo.h.
Referenced by beginRun(), m0Time(), reconstruct(), and SimpleHBHEPhase1Algo().
|
private |
Definition at line 108 of file SimpleHBHEPhase1Algo.h.
Referenced by reconstruct().
|
private |
Definition at line 111 of file SimpleHBHEPhase1Algo.h.
Referenced by reconstruct().
|
private |
Definition at line 98 of file SimpleHBHEPhase1Algo.h.
Referenced by getPhaseNS(), and reconstruct().
|
private |
Definition at line 105 of file SimpleHBHEPhase1Algo.h.
Referenced by reconstruct().
|
private |
Definition at line 94 of file SimpleHBHEPhase1Algo.h.
Referenced by beginRun(), and m0Energy().
|
private |
Definition at line 100 of file SimpleHBHEPhase1Algo.h.
Referenced by beginRun(), endRun(), getRunNumber(), and hbminusCorrectionFactor().
|
private |
Definition at line 97 of file SimpleHBHEPhase1Algo.h.
Referenced by getSamplesToAdd(), and reconstruct().
|
private |
Definition at line 113 of file SimpleHBHEPhase1Algo.h.
Referenced by reconstruct().
|
private |
Definition at line 99 of file SimpleHBHEPhase1Algo.h.
Referenced by getTimeShift(), and reconstruct().