#include <HcalHFStatusBitFromDigis.h>
Public Member Functions | |
HcalHFStatusBitFromDigis () | |
HcalHFStatusBitFromDigis (const edm::ParameterSet &HFDigiTimeParams, const edm::ParameterSet &HFTimeInWindowParams) | |
void | hfSetFlagFromDigi (HFRecHit &hf, const HFDataFrame &digi, const HcalCoder &coder, const HcalCalibrations &calib) |
void | resetFlagTimeSamples (int firstSample, int samplesToAdd, int expectedPeak) |
~HcalHFStatusBitFromDigis () | |
Private Attributes | |
double | coef0_ |
double | coef1_ |
double | coef2_ |
int | expectedPeak_ |
int | firstSample_ |
double | HFlongwindowEthresh_ |
std::vector< double > | HFlongwindowMaxTime_ |
std::vector< double > | HFlongwindowMinTime_ |
double | HFshortwindowEthresh_ |
std::vector< double > | HFshortwindowMaxTime_ |
std::vector< double > | HFshortwindowMinTime_ |
double | minthreshold_ |
int | recoFirstSample_ |
int | recoSamplesToAdd_ |
int | samplesToAdd_ |
This class sets status bit in the status words for the revised CaloRecHit objets according to informatino from the digi associated to the hit.
Definition at line 20 of file HcalHFStatusBitFromDigis.h.
HcalHFStatusBitFromDigis::HcalHFStatusBitFromDigis | ( | ) |
Full featured constructor for HB/HE and HO (HPD-based detectors)
Definition at line 8 of file HcalHFStatusBitFromDigis.cc.
References coef0_, coef1_, coef2_, expectedPeak_, firstSample_, HFlongwindowEthresh_, HFlongwindowMaxTime_, HFlongwindowMinTime_, HFshortwindowEthresh_, HFshortwindowMaxTime_, HFshortwindowMinTime_, minthreshold_, and samplesToAdd_.
HcalHFStatusBitFromDigis::HcalHFStatusBitFromDigis | ( | const edm::ParameterSet & | HFDigiTimeParams, |
const edm::ParameterSet & | HFTimeInWindowParams | ||
) |
Definition at line 35 of file HcalHFStatusBitFromDigis.cc.
References coef0_, coef1_, coef2_, expectedPeak_, firstSample_, edm::ParameterSet::getParameter(), HFlongwindowEthresh_, HFlongwindowMaxTime_, HFlongwindowMinTime_, HFshortwindowEthresh_, HFshortwindowMaxTime_, HFshortwindowMinTime_, minthreshold_, and samplesToAdd_.
HcalHFStatusBitFromDigis::~HcalHFStatusBitFromDigis | ( | ) |
Definition at line 56 of file HcalHFStatusBitFromDigis.cc.
void HcalHFStatusBitFromDigis::hfSetFlagFromDigi | ( | HFRecHit & | hf, |
const HFDataFrame & | digi, | ||
const HcalCoder & | coder, | ||
const HcalCalibrations & | calib | ||
) |
Definition at line 67 of file HcalHFStatusBitFromDigis.cc.
References HcalCoder::adc2fC(), HcalQIESample::capid(), coef0_, coef1_, coef2_, prof2calltree::cutoff, HcalDetId::depth(), CaloRecHit::energy(), funct::exp(), expectedPeak_, firstSample_, HcalCaloFlagLabels::HFDigiTime, HcalCaloFlagLabels::HFInTimeWindow, HFlongwindowEthresh_, HFlongwindowMaxTime_, HFlongwindowMinTime_, HFshortwindowEthresh_, HFshortwindowMaxTime_, HFshortwindowMinTime_, i, HFRecHit::id(), minthreshold_, VarParsing::mult, HcalCalibrations::pedestal(), HcalCalibrations::respcorrgain(), HFDataFrame::sample(), samplesToAdd_, CaloRecHit::setFlagField(), HFDataFrame::size(), CaloRecHit::time(), and relativeConstraints::value.
Referenced by HcalHitReconstructor::produce().
void HcalHFStatusBitFromDigis::resetFlagTimeSamples | ( | int | firstSample, |
int | samplesToAdd, | ||
int | expectedPeak | ||
) |
Definition at line 58 of file HcalHFStatusBitFromDigis.cc.
References expectedPeak_, castor_dqm_sourceclient_file_cfg::firstSample, firstSample_, and samplesToAdd_.
Referenced by HcalHitReconstructor::produce().
|
private |
Definition at line 51 of file HcalHFStatusBitFromDigis.h.
Referenced by HcalHFStatusBitFromDigis(), and hfSetFlagFromDigi().
|
private |
Definition at line 52 of file HcalHFStatusBitFromDigis.h.
Referenced by HcalHFStatusBitFromDigis(), and hfSetFlagFromDigi().
|
private |
Definition at line 53 of file HcalHFStatusBitFromDigis.h.
Referenced by HcalHFStatusBitFromDigis(), and hfSetFlagFromDigi().
|
private |
Definition at line 47 of file HcalHFStatusBitFromDigis.h.
Referenced by HcalHFStatusBitFromDigis(), hfSetFlagFromDigi(), and resetFlagTimeSamples().
|
private |
Definition at line 45 of file HcalHFStatusBitFromDigis.h.
Referenced by HcalHFStatusBitFromDigis(), hfSetFlagFromDigi(), and resetFlagTimeSamples().
|
private |
Definition at line 56 of file HcalHFStatusBitFromDigis.h.
Referenced by HcalHFStatusBitFromDigis(), and hfSetFlagFromDigi().
|
private |
Definition at line 58 of file HcalHFStatusBitFromDigis.h.
Referenced by HcalHFStatusBitFromDigis(), and hfSetFlagFromDigi().
|
private |
Definition at line 57 of file HcalHFStatusBitFromDigis.h.
Referenced by HcalHFStatusBitFromDigis(), and hfSetFlagFromDigi().
|
private |
Definition at line 59 of file HcalHFStatusBitFromDigis.h.
Referenced by HcalHFStatusBitFromDigis(), and hfSetFlagFromDigi().
|
private |
Definition at line 61 of file HcalHFStatusBitFromDigis.h.
Referenced by HcalHFStatusBitFromDigis(), and hfSetFlagFromDigi().
|
private |
Definition at line 60 of file HcalHFStatusBitFromDigis.h.
Referenced by HcalHFStatusBitFromDigis(), and hfSetFlagFromDigi().
|
private |
Definition at line 40 of file HcalHFStatusBitFromDigis.h.
Referenced by HcalHFStatusBitFromDigis(), and hfSetFlagFromDigi().
|
private |
Definition at line 42 of file HcalHFStatusBitFromDigis.h.
|
private |
Definition at line 43 of file HcalHFStatusBitFromDigis.h.
|
private |
Definition at line 46 of file HcalHFStatusBitFromDigis.h.
Referenced by HcalHFStatusBitFromDigis(), hfSetFlagFromDigi(), and resetFlagTimeSamples().