test
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 
21 
22 #include <boost/cstdint.hpp>
23 #include <vector>
24 
26 
27  // Default constructor sets parameters according to 6-TS digis
28  // (Is there a way to pass in default vector arguments directly, rather than by using push_back?)
31  mHFdigiflagCoefficients.push_back(0.93);
32  mHFdigiflagCoefficients.push_back(-0.38275);
33  mHFdigiflagCoefficients.push_back(-0.012667);
34  }
35 
36  // Set parameters based on input
37  HcalFlagHFDigiTimeParam(unsigned long fId,
38  unsigned int fFirstSample,
39  unsigned int fSamplesToAdd,
40  unsigned int fExpectedPeak,
41  double fminEThreshold,
42  const std::vector<double>& fcoef):
43  mId(fId),
44  mHFdigiflagFirstSample(fFirstSample),
45  mHFdigiflagSamplesToAdd(fSamplesToAdd),
46  mHFdigiflagExpectedPeak(fExpectedPeak),
47  mHFdigiflagMinEthreshold(fminEThreshold),
49  { }
50 
51  uint32_t rawId () const {return mId;}
52 
53 
54  // Return flag parameter values
55  uint32_t HFdigiflagFirstSample() const {return mHFdigiflagFirstSample;}
59  std::vector<double> HFdigiflagCoefficients() const {return mHFdigiflagCoefficients;}
60 
61  private:
62  uint32_t mId; // detector ID
63  uint32_t mHFdigiflagFirstSample; // first sample used in NTS calculation
64  uint32_t mHFdigiflagSamplesToAdd; // # of sampels to use in NTS calculation
65  uint32_t mHFdigiflagExpectedPeak; // expected peak position; used for calculating TS(peak)
66  double mHFdigiflagMinEthreshold; // minimum energy for flagged rechit
67  std::vector<double> mHFdigiflagCoefficients; // coefficients used to parameterize TS(peak)/NTS threshold: [0]-exp([1]+[2]*E+....)
68 
70 };
71 
72 #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
#define COND_SERIALIZABLE
Definition: Serializable.h:30
double HFdigiflagMinEThreshold() const