test
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 
19 public:
22  HcalHFStatusBitFromDigis(const edm::ParameterSet& HFDigiTimeParams,
23  const edm::ParameterSet& HFTimeInWindowParams);
24  // Destructor
26 
27  // The important stuff! Methods for setting the status flag values
28  void hfSetFlagFromDigi(HFRecHit& hf, const HFDataFrame& digi,
29  const HcalCoder& coder,
30  const HcalCalibrations& calib);
31  void resetParamsFromDB(int firstSample, int samplesToAdd, int expectedPeak, double minthreshold, const std::vector<double>& coef);
32  void resetFlagTimeSamples(int firstSample, int samplesToAdd, int expectedPeak);
33 
34 private:
35 
36  // variables for cfg files
37 
38  // VARIABLES FOR SETTING HFDigiTime FLAG
39  double minthreshold_;
40  // Reco Window
43  // Special window for Igor's algorithm (not necessarily the same as reco window)
47 
48  // Coefficients used to determine energy ratio threshold:
49  // E_peak/(Etotal) > coef0_-exp(coef1_+coef2_*Energy+coef3_*E^2+...)
50  std::vector<double> coef_;
51 
52 
53  // VARIABLES FOR SETTING HFInTimeWindow FLAG
55  std::vector<double> HFlongwindowMinTime_;
56  std::vector<double> HFlongwindowMaxTime_;
58  std::vector<double> HFshortwindowMinTime_;
59  std::vector<double> HFshortwindowMaxTime_;
60 };
61 
62 #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)
MVATrainerComputer * calib
Definition: MVATrainer.cc:64
void resetFlagTimeSamples(int firstSample, int samplesToAdd, int expectedPeak)
std::vector< double > HFlongwindowMinTime_
std::vector< double > HFshortwindowMaxTime_