CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
HcalFlagHFDigiTimeParam.h
Go to the documentation of this file.
1 #ifndef GUARD_HcalFlagHFDigiTimeParam
2 #define GUARD_HcalFlagHFDigiTimeParam
3 
20 #include <boost/cstdint.hpp>
21 #include <vector>
22 
24 
25  // Default constructor sets parameters according to 6-TS digis
26  // (Is there a way to pass in default vector arguments directly, rather than by using push_back?)
29  mHFdigiflagCoefficients.push_back(0.93);
30  mHFdigiflagCoefficients.push_back(-0.38275);
31  mHFdigiflagCoefficients.push_back(-0.012667);
32  }
33 
34  // Set parameters based on input
35  HcalFlagHFDigiTimeParam(unsigned long fId,
36  unsigned int fFirstSample,
37  unsigned int fSamplesToAdd,
38  unsigned int fExpectedPeak,
39  double fminEThreshold,
40  const std::vector<double>& fcoef):
41  mId(fId),
42  mHFdigiflagFirstSample(fFirstSample),
43  mHFdigiflagSamplesToAdd(fSamplesToAdd),
44  mHFdigiflagExpectedPeak(fExpectedPeak),
45  mHFdigiflagMinEthreshold(fminEThreshold),
47  { }
48 
49  uint32_t rawId () const {return mId;}
50 
51 
52  // Return flag parameter values
53  uint32_t HFdigiflagFirstSample() const {return mHFdigiflagFirstSample;}
57  std::vector<double> HFdigiflagCoefficients() const {return mHFdigiflagCoefficients;}
58 
59  private:
60  uint32_t mId; // detector ID
61  uint32_t mHFdigiflagFirstSample; // first sample used in NTS calculation
62  uint32_t mHFdigiflagSamplesToAdd; // # of sampels to use in NTS calculation
63  uint32_t mHFdigiflagExpectedPeak; // expected peak position; used for calculating TS(peak)
64  double mHFdigiflagMinEthreshold; // minimum energy for flagged rechit
65  std::vector<double> mHFdigiflagCoefficients; // coefficients used to parameterize TS(peak)/NTS threshold: [0]-exp([1]+[2]*E+....)
66 };
67 
68 #endif
std::vector< double > mHFdigiflagCoefficients
uint32_t HFdigiflagSamplesToAdd() const
HcalFlagHFDigiTimeParam(unsigned long fId, unsigned int fFirstSample, unsigned int fSamplesToAdd, unsigned int fExpectedPeak, double fminEThreshold, const std::vector< double > &fcoef)
uint32_t HFdigiflagExpectedPeak() const
std::vector< double > HFdigiflagCoefficients() const
uint32_t HFdigiflagFirstSample() const
double HFdigiflagMinEThreshold() const