#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 54 of file HcalHFStatusBitFromDigis.cc.
void HcalHFStatusBitFromDigis::hfSetFlagFromDigi | ( | HFRecHit & | hf, |
const HFDataFrame & | digi, | ||
const HcalCoder & | coder, | ||
const HcalCalibrations & | calib | ||
) |
Definition at line 76 of file HcalHFStatusBitFromDigis.cc.
References HcalCoder::adc2fC(), HcalQIESample::capid(), coef_, qjetsadder_cfi::cutoff, HcalDetId::depth(), CaloRecHit::energy(), JetChargeProducer_cfi::exp, expectedPeak_, firstSample_, HcalCaloFlagLabels::HFDigiTime, HcalCaloFlagLabels::HFInTimeWindow, HFlongwindowEthresh_, HFlongwindowMaxTime_, HFlongwindowMinTime_, HFshortwindowEthresh_, HFshortwindowMaxTime_, HFshortwindowMinTime_, mps_fire::i, HFRecHit::id(), CastorTowerReco_cfi::maxtime, minthreshold_, CastorTowerReco_cfi::mintime, HcalCalibrations::pedestal(), HcalCalibrations::respcorrgain(), HFDataFrame::sample(), samplesToAdd_, CaloRecHit::setFlagField(), HFDataFrame::size(), CaloRecHit::time(), relativeConstraints::value, and geometryCSVtoXML::zz.
Referenced by HcalHitReconstructor::produce().
void HcalHFStatusBitFromDigis::resetFlagTimeSamples | ( | int | firstSample, |
int | samplesToAdd, | ||
int | expectedPeak | ||
) |
Definition at line 67 of file HcalHFStatusBitFromDigis.cc.
References expectedPeak_, CastorSimpleReconstructor_cfi::firstSample, firstSample_, CastorSimpleReconstructor_cfi::samplesToAdd, and samplesToAdd_.
void HcalHFStatusBitFromDigis::resetParamsFromDB | ( | int | firstSample, |
int | samplesToAdd, | ||
int | expectedPeak, | ||
double | minthreshold, | ||
const std::vector< double > & | coef | ||
) |
Definition at line 56 of file HcalHFStatusBitFromDigis.cc.
References coef_, expectedPeak_, CastorSimpleReconstructor_cfi::firstSample, firstSample_, minthreshold_, CastorSimpleReconstructor_cfi::samplesToAdd, and samplesToAdd_.
Referenced by HcalHitReconstructor::produce().
|
private |
Definition at line 50 of file HcalHFStatusBitFromDigis.h.
Referenced by HcalHFStatusBitFromDigis(), hfSetFlagFromDigi(), and resetParamsFromDB().
|
private |
Definition at line 46 of file HcalHFStatusBitFromDigis.h.
Referenced by HcalHFStatusBitFromDigis(), hfSetFlagFromDigi(), resetFlagTimeSamples(), and resetParamsFromDB().
|
private |
Definition at line 44 of file HcalHFStatusBitFromDigis.h.
Referenced by HcalHFStatusBitFromDigis(), hfSetFlagFromDigi(), resetFlagTimeSamples(), and resetParamsFromDB().
|
private |
Definition at line 54 of file HcalHFStatusBitFromDigis.h.
Referenced by HcalHFStatusBitFromDigis(), and hfSetFlagFromDigi().
|
private |
Definition at line 56 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 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 58 of file HcalHFStatusBitFromDigis.h.
Referenced by HcalHFStatusBitFromDigis(), and hfSetFlagFromDigi().
|
private |
Definition at line 39 of file HcalHFStatusBitFromDigis.h.
Referenced by HcalHFStatusBitFromDigis(), hfSetFlagFromDigi(), and resetParamsFromDB().
|
private |
Definition at line 41 of file HcalHFStatusBitFromDigis.h.
|
private |
Definition at line 42 of file HcalHFStatusBitFromDigis.h.
|
private |
Definition at line 45 of file HcalHFStatusBitFromDigis.h.
Referenced by HcalHFStatusBitFromDigis(), hfSetFlagFromDigi(), resetFlagTimeSamples(), and resetParamsFromDB().