CMS 3D CMS Logo

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
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
std::vector< double > HFlongwindowMaxTime_
std::vector< double > HFshortwindowMinTime_
void hfSetFlagFromDigi(HFRecHit &hf, const HFDataFrame &digi, const HcalCoder &coder, const HcalCalibrations &calib)
void resetParamsFromDB(int firstSample, int samplesToAdd, int expectedPeak, double minthreshold, const std::vector< double > &coef)
void resetFlagTimeSamples(int firstSample, int samplesToAdd, int expectedPeak)
std::vector< double > HFlongwindowMinTime_
std::vector< double > HFshortwindowMaxTime_