CMS 3D CMS Logo

HBHENegativeFlag.cc
Go to the documentation of this file.
4 
6  const HBHEDataFrame &digi,
7  const HcalCoder &coder,
8  const HcalCalibrations &calib) {
9  if (filter_) {
11  coder.adc2fC(digi, cs);
12  const int nRead = cs.size();
13 
14  double ts[CaloSamples::MAXSAMPLES];
15  for (int i = 0; i < nRead; i++) {
16  const int capid = digi[i].capid();
17  ts[i] = cs[i] - calib.pedestal(capid);
18  }
19 
20  const bool passes = filter_->checkPassFilter(hbhe.id(), &ts[0], nRead);
21  if (!passes)
23  }
24 }
HBHENegativeFlagSetter::filter_
const HBHENegativeEFilter * filter_
Definition: HBHENegativeFlag.h:26
mps_fire.i
i
Definition: mps_fire.py:428
HBHENegativeEFilter::checkPassFilter
bool checkPassFilter(const HcalDetId &id, const double *ts, unsigned lenTS) const
Definition: HBHENegativeEFilter.cc:76
HcalCoder::adc2fC
virtual void adc2fC(const HBHEDataFrame &df, CaloSamples &lf) const =0
fwrapper::cs
unique_ptr< ClusterSequence > cs
Definition: fastjetfortran_madfks.cc:47
CaloSamples.h
HBHERecHit
Definition: HBHERecHit.h:13
HBHENegativeFlagSetter::setPulseShapeFlags
void setPulseShapeFlags(HBHERecHit &hbhe, const HBHEDataFrame &digi, const HcalCoder &coder, const HcalCalibrations &calib)
Definition: HBHENegativeFlag.cc:5
CaloSamples::MAXSAMPLES
static const int MAXSAMPLES
Definition: CaloSamples.h:86
HcalCalibrations
Definition: HcalCalibrations.h:9
calib
Definition: CalibElectron.h:12
HBHEDataFrame
Definition: HBHEDataFrame.h:14
HBHENegativeFlag.h
HcalCaloFlagLabels.h
HcalCaloFlagLabels::HBHENegativeNoise
Definition: HcalCaloFlagLabels.h:26
CaloSamples
Definition: CaloSamples.h:14
photonIsolationHIProducer_cfi.hbhe
hbhe
Definition: photonIsolationHIProducer_cfi.py:8
HcalCoder
Definition: HcalCoder.h:19