#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) |
void | resetParamsFromDB (int firstSample, int samplesToAdd, int expectedPeak, double minthreshold, const std::vector< double > &coef) |
~HcalHFStatusBitFromDigis () | |
Private Attributes | |
std::vector< double > | coef_ |
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 18 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 coef_, 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 coef_, expectedPeak_, firstSample_, edm::ParameterSet::getParameter(), HFlongwindowEthresh_, HFlongwindowMaxTime_, HFlongwindowMinTime_, HFshortwindowEthresh_, HFshortwindowMaxTime_, HFshortwindowMinTime_, minthreshold_, and samplesToAdd_.
HcalHFStatusBitFromDigis::~HcalHFStatusBitFromDigis | ( | ) |
Definition at line 53 of file HcalHFStatusBitFromDigis.cc.
void HcalHFStatusBitFromDigis::hfSetFlagFromDigi | ( | HFRecHit & | hf, |
const HFDataFrame & | digi, | ||
const HcalCoder & | coder, | ||
const HcalCalibrations & | calib | ||
) |
Definition at line 73 of file HcalHFStatusBitFromDigis.cc.
References HcalCoder::adc2fC(), HcalQIESample::capid(), coef_, qjetsadder_cfi::cutoff, JetChargeProducer_cfi::exp, expectedPeak_, firstSample_, photonIsolationHIProducer_cfi::hf, HcalCaloFlagLabels::HFDigiTime, HcalCaloFlagLabels::HFInTimeWindow, HFlongwindowEthresh_, HFlongwindowMaxTime_, HFlongwindowMinTime_, HFshortwindowEthresh_, HFshortwindowMaxTime_, HFshortwindowMinTime_, mps_fire::i, CastorTowerReco_cfi::maxtime, minthreshold_, CastorTowerReco_cfi::mintime, VarParsing::mult, HFDataFrame::sample(), samplesToAdd_, HFDataFrame::size(), relativeConstraints::value, and geometryCSVtoXML::zz.
Referenced by HcalHitReconstructor::produce().
void HcalHFStatusBitFromDigis::resetFlagTimeSamples | ( | int | firstSample, |
int | samplesToAdd, | ||
int | expectedPeak | ||
) |
Definition at line 65 of file HcalHFStatusBitFromDigis.cc.
References expectedPeak_, castor_dqm_sourceclient-live_cfg::firstSample, firstSample_, castor_dqm_sourceclient-live_cfg::samplesToAdd, and samplesToAdd_.
void HcalHFStatusBitFromDigis::resetParamsFromDB | ( | int | firstSample, |
int | samplesToAdd, | ||
int | expectedPeak, | ||
double | minthreshold, | ||
const std::vector< double > & | coef | ||
) |
Definition at line 55 of file HcalHFStatusBitFromDigis.cc.
References coef_, expectedPeak_, castor_dqm_sourceclient-live_cfg::firstSample, firstSample_, minthreshold_, castor_dqm_sourceclient-live_cfg::samplesToAdd, and samplesToAdd_.
Referenced by HcalHitReconstructor::produce().
|
private |
Definition at line 47 of file HcalHFStatusBitFromDigis.h.
Referenced by HcalHFStatusBitFromDigis(), hfSetFlagFromDigi(), and resetParamsFromDB().
|
private |
Definition at line 43 of file HcalHFStatusBitFromDigis.h.
Referenced by HcalHFStatusBitFromDigis(), hfSetFlagFromDigi(), resetFlagTimeSamples(), and resetParamsFromDB().
|
private |
Definition at line 41 of file HcalHFStatusBitFromDigis.h.
Referenced by HcalHFStatusBitFromDigis(), hfSetFlagFromDigi(), resetFlagTimeSamples(), and resetParamsFromDB().
|
private |
Definition at line 50 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 51 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 55 of file HcalHFStatusBitFromDigis.h.
Referenced by HcalHFStatusBitFromDigis(), and hfSetFlagFromDigi().
|
private |
Definition at line 54 of file HcalHFStatusBitFromDigis.h.
Referenced by HcalHFStatusBitFromDigis(), and hfSetFlagFromDigi().
|
private |
Definition at line 36 of file HcalHFStatusBitFromDigis.h.
Referenced by HcalHFStatusBitFromDigis(), hfSetFlagFromDigi(), and resetParamsFromDB().
|
private |
Definition at line 38 of file HcalHFStatusBitFromDigis.h.
|
private |
Definition at line 39 of file HcalHFStatusBitFromDigis.h.
|
private |
Definition at line 42 of file HcalHFStatusBitFromDigis.h.
Referenced by HcalHFStatusBitFromDigis(), hfSetFlagFromDigi(), resetFlagTimeSamples(), and resetParamsFromDB().