CMS 3D CMS Logo

List of all members | Public Member Functions | Private Member Functions | Private Attributes | Friends
HcalFlagHFDigiTimeParam Class Reference

#include <HcalFlagHFDigiTimeParam.h>

Public Member Functions

 HcalFlagHFDigiTimeParam ()
 
 HcalFlagHFDigiTimeParam (unsigned long fId, unsigned int fFirstSample, unsigned int fSamplesToAdd, unsigned int fExpectedPeak, double fminEThreshold, const std::vector< double > &fcoef)
 
std::vector< double > HFdigiflagCoefficients () const
 
uint32_t HFdigiflagExpectedPeak () const
 
uint32_t HFdigiflagFirstSample () const
 
double HFdigiflagMinEThreshold () const
 
uint32_t HFdigiflagSamplesToAdd () const
 
uint32_t rawId () const
 

Private Member Functions

template<class Archive >
void serialize (Archive &ar, const unsigned int version)
 

Private Attributes

std::vector< double > mHFdigiflagCoefficients
 
uint32_t mHFdigiflagExpectedPeak
 
uint32_t mHFdigiflagFirstSample
 
double mHFdigiflagMinEthreshold
 
uint32_t mHFdigiflagSamplesToAdd
 
uint32_t mId
 

Friends

class boost::serialization::access
 
template<typename CondSerializationT , typename Enabled >
struct cond::serialization::access
 

Detailed Description

Author
Jeff Temple

DB object to store HF DigiTime flag parameters Flag parameters stored are:

HFDigiTimeParam needs the following arguments: HFdigiflagFirstSample, HFdigiflagSamplesToAdd, HFdigiflagExpectedPeak – values used to set the digi sections used for forming TS(peak)/NTS ratio

HFdigiflagMinEthreshold – minimum energy threshold needed before a rechit may be considered for flagging

HFdigiflagCoefficients: vector of doubles that define cut contour. Current contour is [0]-exp([1]+[2]*E), but I think we want this to be a vector, so that we can allow for [0]-exp([1]+[2]*E+[3]*E*E), or [0], etc.

Definition at line 25 of file HcalFlagHFDigiTimeParam.h.

Constructor & Destructor Documentation

◆ HcalFlagHFDigiTimeParam() [1/2]

HcalFlagHFDigiTimeParam::HcalFlagHFDigiTimeParam ( )
inline

Definition at line 29 of file HcalFlagHFDigiTimeParam.h.

30  : mId(0),
36  mHFdigiflagCoefficients.push_back(0.93);
37  mHFdigiflagCoefficients.push_back(-0.38275);
38  mHFdigiflagCoefficients.push_back(-0.012667);
39  }

References mHFdigiflagCoefficients.

◆ HcalFlagHFDigiTimeParam() [2/2]

HcalFlagHFDigiTimeParam::HcalFlagHFDigiTimeParam ( unsigned long  fId,
unsigned int  fFirstSample,
unsigned int  fSamplesToAdd,
unsigned int  fExpectedPeak,
double  fminEThreshold,
const std::vector< double > &  fcoef 
)
inline

Definition at line 42 of file HcalFlagHFDigiTimeParam.h.

48  : mId(fId),
49  mHFdigiflagFirstSample(fFirstSample),
50  mHFdigiflagSamplesToAdd(fSamplesToAdd),
51  mHFdigiflagExpectedPeak(fExpectedPeak),
52  mHFdigiflagMinEthreshold(fminEThreshold),
53  mHFdigiflagCoefficients(fcoef) {}

Member Function Documentation

◆ HFdigiflagCoefficients()

std::vector<double> HcalFlagHFDigiTimeParam::HFdigiflagCoefficients ( ) const
inline

Definition at line 62 of file HcalFlagHFDigiTimeParam.h.

62 { return mHFdigiflagCoefficients; }

References mHFdigiflagCoefficients.

Referenced by HcalHitReconstructor::produce().

◆ HFdigiflagExpectedPeak()

uint32_t HcalFlagHFDigiTimeParam::HFdigiflagExpectedPeak ( ) const
inline

Definition at line 60 of file HcalFlagHFDigiTimeParam.h.

60 { return mHFdigiflagExpectedPeak; }

References mHFdigiflagExpectedPeak.

Referenced by HcalHitReconstructor::produce().

◆ HFdigiflagFirstSample()

uint32_t HcalFlagHFDigiTimeParam::HFdigiflagFirstSample ( ) const
inline

Definition at line 58 of file HcalFlagHFDigiTimeParam.h.

58 { return mHFdigiflagFirstSample; }

References mHFdigiflagFirstSample.

Referenced by HcalHitReconstructor::produce().

◆ HFdigiflagMinEThreshold()

double HcalFlagHFDigiTimeParam::HFdigiflagMinEThreshold ( ) const
inline

Definition at line 61 of file HcalFlagHFDigiTimeParam.h.

61 { return mHFdigiflagMinEthreshold; }

References mHFdigiflagMinEthreshold.

Referenced by HcalHitReconstructor::produce().

◆ HFdigiflagSamplesToAdd()

uint32_t HcalFlagHFDigiTimeParam::HFdigiflagSamplesToAdd ( ) const
inline

Definition at line 59 of file HcalFlagHFDigiTimeParam.h.

59 { return mHFdigiflagSamplesToAdd; }

References mHFdigiflagSamplesToAdd.

Referenced by HcalHitReconstructor::produce().

◆ rawId()

uint32_t HcalFlagHFDigiTimeParam::rawId ( ) const
inline

Definition at line 55 of file HcalFlagHFDigiTimeParam.h.

55 { return mId; }

References mId.

◆ serialize()

template<class Archive >
void HcalFlagHFDigiTimeParam::serialize ( Archive &  ar,
const unsigned int  version 
)
private

Friends And Related Function Documentation

◆ boost::serialization::access

friend class boost::serialization::access
friend

Definition at line 73 of file HcalFlagHFDigiTimeParam.h.

◆ cond::serialization::access

template<typename CondSerializationT , typename Enabled >
friend struct cond::serialization::access
friend

Definition at line 73 of file HcalFlagHFDigiTimeParam.h.

Member Data Documentation

◆ mHFdigiflagCoefficients

std::vector<double> HcalFlagHFDigiTimeParam::mHFdigiflagCoefficients
private

Definition at line 71 of file HcalFlagHFDigiTimeParam.h.

Referenced by HcalFlagHFDigiTimeParam(), and HFdigiflagCoefficients().

◆ mHFdigiflagExpectedPeak

uint32_t HcalFlagHFDigiTimeParam::mHFdigiflagExpectedPeak
private

Definition at line 68 of file HcalFlagHFDigiTimeParam.h.

Referenced by HFdigiflagExpectedPeak().

◆ mHFdigiflagFirstSample

uint32_t HcalFlagHFDigiTimeParam::mHFdigiflagFirstSample
private

Definition at line 66 of file HcalFlagHFDigiTimeParam.h.

Referenced by HFdigiflagFirstSample().

◆ mHFdigiflagMinEthreshold

double HcalFlagHFDigiTimeParam::mHFdigiflagMinEthreshold
private

Definition at line 69 of file HcalFlagHFDigiTimeParam.h.

Referenced by HFdigiflagMinEThreshold().

◆ mHFdigiflagSamplesToAdd

uint32_t HcalFlagHFDigiTimeParam::mHFdigiflagSamplesToAdd
private

Definition at line 67 of file HcalFlagHFDigiTimeParam.h.

Referenced by HFdigiflagSamplesToAdd().

◆ mId

uint32_t HcalFlagHFDigiTimeParam::mId
private

Definition at line 65 of file HcalFlagHFDigiTimeParam.h.

Referenced by rawId().

HcalFlagHFDigiTimeParam::mHFdigiflagExpectedPeak
uint32_t mHFdigiflagExpectedPeak
Definition: HcalFlagHFDigiTimeParam.h:68
HcalFlagHFDigiTimeParam::mId
uint32_t mId
Definition: HcalFlagHFDigiTimeParam.h:65
HcalFlagHFDigiTimeParam::mHFdigiflagFirstSample
uint32_t mHFdigiflagFirstSample
Definition: HcalFlagHFDigiTimeParam.h:66
HcalFlagHFDigiTimeParam::mHFdigiflagSamplesToAdd
uint32_t mHFdigiflagSamplesToAdd
Definition: HcalFlagHFDigiTimeParam.h:67
HcalFlagHFDigiTimeParam::mHFdigiflagMinEthreshold
double mHFdigiflagMinEthreshold
Definition: HcalFlagHFDigiTimeParam.h:69
HcalFlagHFDigiTimeParam::mHFdigiflagCoefficients
std::vector< double > mHFdigiflagCoefficients
Definition: HcalFlagHFDigiTimeParam.h:71