CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
HcalHFStatusBitFromDigis.h
Go to the documentation of this file.
1 #ifndef HCALHFSTATUSFROMDIGIS_H
2 #define HCALHFSTATUSFROMDIGIS_H 1
3 
10 
21 public:
24  HcalHFStatusBitFromDigis(const edm::ParameterSet& HFDigiTimeParams,
25  const edm::ParameterSet& HFTimeInWindowParams);
26  // Destructor
28 
29  // The important stuff! Methods for setting the status flag values
30  void hfSetFlagFromDigi(HFRecHit& hf, const HFDataFrame& digi,
31  const HcalCoder& coder,
32  const HcalCalibrations& calib);
33  void resetParamsFromDB(int firstSample, int samplesToAdd, int expectedPeak, double minthreshold, std::vector<double> coef);
34  void resetFlagTimeSamples(int firstSample, int samplesToAdd, int expectedPeak);
35 
36 private:
37 
38  // variables for cfg files
39 
40  // VARIABLES FOR SETTING HFDigiTime FLAG
41  double minthreshold_;
42  // Reco Window
45  // Special window for Igor's algorithm (not necessarily the same as reco window)
49 
50  // Coefficients used to determine energy ratio threshold:
51  // E_peak/(Etotal) > coef0_-exp(coef1_+coef2_*Energy+coef3_*E^2+...)
52  std::vector<double> coef_;
53 
54 
55  // VARIABLES FOR SETTING HFInTimeWindow FLAG
57  std::vector<double> HFlongwindowMinTime_;
58  std::vector<double> HFlongwindowMaxTime_;
60  std::vector<double> HFshortwindowMinTime_;
61  std::vector<double> HFshortwindowMaxTime_;
62 };
63 
64 #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, std::vector< double > coef)
MVATrainerComputer * calib
Definition: MVATrainer.cc:64
void resetFlagTimeSamples(int firstSample, int samplesToAdd, int expectedPeak)
std::vector< double > HFlongwindowMinTime_
std::vector< double > HFshortwindowMaxTime_