CMS 3D CMS Logo

HcalHFStatusBitFromDigis.h
Go to the documentation of this file.
1 #ifndef HCALHFSTATUSFROMDIGIS_H
2 #define HCALHFSTATUSFROMDIGIS_H 1
3 
10 
19 public:
22  HcalHFStatusBitFromDigis(const edm::ParameterSet& HFDigiTimeParams, const edm::ParameterSet& HFTimeInWindowParams);
23  // Destructor
25 
26  // The important stuff! Methods for setting the status flag values
27  void hfSetFlagFromDigi(HFRecHit& hf, const HFDataFrame& digi, const HcalCoder& coder, const HcalCalibrations& calib);
28  void resetParamsFromDB(
29  int firstSample, int samplesToAdd, int expectedPeak, double minthreshold, const std::vector<double>& coef);
30  void resetFlagTimeSamples(int firstSample, int samplesToAdd, int expectedPeak);
31 
32 private:
33  // variables for cfg files
34 
35  // VARIABLES FOR SETTING HFDigiTime FLAG
36  double minthreshold_;
37  // Reco Window
40  // Special window for Igor's algorithm (not necessarily the same as reco window)
44 
45  // Coefficients used to determine energy ratio threshold:
46  // E_peak/(Etotal) > coef0_-exp(coef1_+coef2_*Energy+coef3_*E^2+...)
47  std::vector<double> coef_;
48 
49  // VARIABLES FOR SETTING HFInTimeWindow FLAG
51  std::vector<double> HFlongwindowMinTime_;
52  std::vector<double> HFlongwindowMaxTime_;
54  std::vector<double> HFshortwindowMinTime_;
55  std::vector<double> HFshortwindowMaxTime_;
56 };
57 
58 #endif
HFDataFrame.h
HcalCalibrations.h
HcalHFStatusBitFromDigis::HFshortwindowMaxTime_
std::vector< double > HFshortwindowMaxTime_
Definition: HcalHFStatusBitFromDigis.h:55
HcalHFStatusBitFromDigis::HFshortwindowMinTime_
std::vector< double > HFshortwindowMinTime_
Definition: HcalHFStatusBitFromDigis.h:54
castor_dqm_sourceclient-live_cfg.samplesToAdd
samplesToAdd
Definition: castor_dqm_sourceclient-live_cfg.py:62
HcalHFStatusBitFromDigis::HcalHFStatusBitFromDigis
HcalHFStatusBitFromDigis()
Definition: HcalHFStatusBitFromDigis.cc:8
HcalHFStatusBitFromDigis::recoFirstSample_
int recoFirstSample_
Definition: HcalHFStatusBitFromDigis.h:38
HcalHFStatusBitFromDigis::hfSetFlagFromDigi
void hfSetFlagFromDigi(HFRecHit &hf, const HFDataFrame &digi, const HcalCoder &coder, const HcalCalibrations &calib)
Definition: HcalHFStatusBitFromDigis.cc:73
HcalCoderDb.h
HcalHFStatusBitFromDigis::samplesToAdd_
int samplesToAdd_
Definition: HcalHFStatusBitFromDigis.h:42
photonIsolationHIProducer_cfi.hf
hf
Definition: photonIsolationHIProducer_cfi.py:9
HFRecHit
Definition: HFRecHit.h:11
HFRecHit.h
HcalHFStatusBitFromDigis::recoSamplesToAdd_
int recoSamplesToAdd_
Definition: HcalHFStatusBitFromDigis.h:39
HcalHFStatusBitFromDigis::minthreshold_
double minthreshold_
Definition: HcalHFStatusBitFromDigis.h:36
HcalCalibrations
Definition: HcalCalibrations.h:9
HcalHFStatusBitFromDigis::expectedPeak_
int expectedPeak_
Definition: HcalHFStatusBitFromDigis.h:43
HcalHFStatusBitFromDigis::coef_
std::vector< double > coef_
Definition: HcalHFStatusBitFromDigis.h:47
calib
Definition: CalibElectron.h:12
edm::ParameterSet
Definition: ParameterSet.h:36
HcalCaloFlagLabels.h
castor_dqm_sourceclient-live_cfg.firstSample
firstSample
Definition: castor_dqm_sourceclient-live_cfg.py:64
HcalHFStatusBitFromDigis::resetParamsFromDB
void resetParamsFromDB(int firstSample, int samplesToAdd, int expectedPeak, double minthreshold, const std::vector< double > &coef)
Definition: HcalHFStatusBitFromDigis.cc:55
HcalHFStatusBitFromDigis::HFlongwindowEthresh_
double HFlongwindowEthresh_
Definition: HcalHFStatusBitFromDigis.h:50
HcalHFStatusBitFromDigis::HFlongwindowMaxTime_
std::vector< double > HFlongwindowMaxTime_
Definition: HcalHFStatusBitFromDigis.h:52
HFDataFrame
Definition: HFDataFrame.h:14
HcalHFStatusBitFromDigis
Definition: HcalHFStatusBitFromDigis.h:18
HcalHFStatusBitFromDigis::firstSample_
int firstSample_
Definition: HcalHFStatusBitFromDigis.h:41
HcalCoder
Definition: HcalCoder.h:19
HcalHFStatusBitFromDigis::HFlongwindowMinTime_
std::vector< double > HFlongwindowMinTime_
Definition: HcalHFStatusBitFromDigis.h:51
ParameterSet.h
HcalHFStatusBitFromDigis::resetFlagTimeSamples
void resetFlagTimeSamples(int firstSample, int samplesToAdd, int expectedPeak)
Definition: HcalHFStatusBitFromDigis.cc:65
HcalHFStatusBitFromDigis::HFshortwindowEthresh_
double HFshortwindowEthresh_
Definition: HcalHFStatusBitFromDigis.h:53
HcalHFStatusBitFromDigis::~HcalHFStatusBitFromDigis
~HcalHFStatusBitFromDigis()
Definition: HcalHFStatusBitFromDigis.cc:53