CMS 3D CMS Logo

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

#include <HcalRecoParam.h>

Public Member Functions

constexpr bool correctForLeadingEdge () const
 
constexpr bool correctForPhaseContainment () const
 
constexpr bool correctForTimeslew () const
 
constexpr float correctionPhaseNS () const
 
constexpr bool correctTiming () const
 
constexpr unsigned int firstAuxTS () const
 
constexpr unsigned int firstSample () const
 
constexpr HcalRecoParam ()
 
constexpr HcalRecoParam (unsigned long fId, unsigned int fParam1, unsigned int fParam2)
 
constexpr unsigned int leakCorrectionID () const
 
constexpr unsigned int noiseFlaggingID () const
 
constexpr unsigned int packingScheme () const
 
constexpr unsigned int param1 () const
 
constexpr unsigned int param2 () const
 
constexpr unsigned int pileupCleaningID () const
 
constexpr unsigned int pulseShapeID () const
 
constexpr uint32_t rawId () const
 
constexpr unsigned int samplesToAdd () const
 
constexpr unsigned int specialCaseID () const
 
constexpr unsigned int timeslewCorrectionID () const
 
constexpr bool useLeakCorrection () const
 

Private Member Functions

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

Private Attributes

uint32_t mId
 
uint32_t mParam1
 
uint32_t mParam2
 

Friends

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

Detailed Description

Author
Radek Ofierzynski POOL object to store timeslice reco values

mParam1, mParam2 re-define to keep more parameters 28-Oct-2011 sk.

Definition at line 16 of file HcalRecoParam.h.

Constructor & Destructor Documentation

◆ HcalRecoParam() [1/2]

constexpr HcalRecoParam::HcalRecoParam ( )
inline

Definition at line 18 of file HcalRecoParam.h.

18 : mId(0), mParam1(0), mParam2(0) {}
uint32_t mId
Definition: HcalRecoParam.h:47
uint32_t mParam2
Definition: HcalRecoParam.h:49
uint32_t mParam1
Definition: HcalRecoParam.h:48

◆ HcalRecoParam() [2/2]

constexpr HcalRecoParam::HcalRecoParam ( unsigned long  fId,
unsigned int  fParam1,
unsigned int  fParam2 
)
inline

Definition at line 20 of file HcalRecoParam.h.

21  : mId(fId), mParam1(fParam1), mParam2(fParam2) {}
uint32_t mId
Definition: HcalRecoParam.h:47
uint32_t mParam2
Definition: HcalRecoParam.h:49
uint32_t mParam1
Definition: HcalRecoParam.h:48

Member Function Documentation

◆ correctForLeadingEdge()

constexpr bool HcalRecoParam::correctForLeadingEdge ( ) const
inline

Definition at line 29 of file HcalRecoParam.h.

References mParam1.

29 { return (mParam1 >> 1) & 0x1; }
uint32_t mParam1
Definition: HcalRecoParam.h:48

◆ correctForPhaseContainment()

constexpr bool HcalRecoParam::correctForPhaseContainment ( ) const
inline

Definition at line 28 of file HcalRecoParam.h.

References mParam1.

Referenced by HcalHitReconstructor::produce().

28 { return mParam1 & 0x1; }
uint32_t mParam1
Definition: HcalRecoParam.h:48

◆ correctForTimeslew()

constexpr bool HcalRecoParam::correctForTimeslew ( ) const
inline

Definition at line 37 of file HcalRecoParam.h.

References mParam2.

Referenced by HcalHitReconstructor::produce().

37 { return (mParam2 >> 5) & 0x1; }
uint32_t mParam2
Definition: HcalRecoParam.h:49

◆ correctionPhaseNS()

constexpr float HcalRecoParam::correctionPhaseNS ( ) const
inline

Definition at line 30 of file HcalRecoParam.h.

References mParam1.

Referenced by HcalHitReconstructor::produce().

30 { return ((mParam1 >> 2) & 0xFF) / 4. - 32.; }
uint32_t mParam1
Definition: HcalRecoParam.h:48

◆ correctTiming()

constexpr bool HcalRecoParam::correctTiming ( ) const
inline

Definition at line 39 of file HcalRecoParam.h.

References mParam2.

Referenced by HcalHitReconstructor::produce().

39 { return (mParam2 >> 10) & 0x1; }
uint32_t mParam2
Definition: HcalRecoParam.h:49

◆ firstAuxTS()

constexpr unsigned int HcalRecoParam::firstAuxTS ( ) const
inline

Definition at line 40 of file HcalRecoParam.h.

References mParam2.

Referenced by HcalHitReconstructor::produce().

40 { return (mParam2 >> 11) & 0xF; }
uint32_t mParam2
Definition: HcalRecoParam.h:49

◆ firstSample()

constexpr unsigned int HcalRecoParam::firstSample ( ) const
inline

Definition at line 31 of file HcalRecoParam.h.

References mParam1.

Referenced by HFPreReconstructor::fillInfos(), HcalSimpleReconstructor::process(), HBHEPhase1Reconstructor::processData(), and HcalHitReconstructor::produce().

31 { return (mParam1 < 10) ? (mParam1) : ((mParam1 >> 10) & 0xF); }
uint32_t mParam1
Definition: HcalRecoParam.h:48

◆ leakCorrectionID()

constexpr unsigned int HcalRecoParam::leakCorrectionID ( ) const
inline

Definition at line 36 of file HcalRecoParam.h.

References mParam2.

36 { return (mParam2 >> 1) & 0xF; }
uint32_t mParam2
Definition: HcalRecoParam.h:49

◆ noiseFlaggingID()

constexpr unsigned int HcalRecoParam::noiseFlaggingID ( ) const
inline

Definition at line 42 of file HcalRecoParam.h.

References mParam2.

42 { return (mParam2 >> 19) & 0xF; }
uint32_t mParam2
Definition: HcalRecoParam.h:49

◆ packingScheme()

constexpr unsigned int HcalRecoParam::packingScheme ( ) const
inline

Definition at line 44 of file HcalRecoParam.h.

References mParam2.

44 { return (mParam2 >> 27) & 0xF; }
uint32_t mParam2
Definition: HcalRecoParam.h:49

◆ param1()

constexpr unsigned int HcalRecoParam::param1 ( ) const
inline

Definition at line 25 of file HcalRecoParam.h.

References mParam1.

25 { return mParam1; }
uint32_t mParam1
Definition: HcalRecoParam.h:48

◆ param2()

constexpr unsigned int HcalRecoParam::param2 ( ) const
inline

Definition at line 26 of file HcalRecoParam.h.

References mParam2.

26 { return mParam2; }
uint32_t mParam2
Definition: HcalRecoParam.h:49

◆ pileupCleaningID()

constexpr unsigned int HcalRecoParam::pileupCleaningID ( ) const
inline

Definition at line 43 of file HcalRecoParam.h.

References mParam2.

Referenced by HcalHitReconstructor::produce().

43 { return (mParam2 >> 23) & 0xF; }
uint32_t mParam2
Definition: HcalRecoParam.h:49

◆ pulseShapeID()

constexpr unsigned int HcalRecoParam::pulseShapeID ( ) const
inline

Definition at line 33 of file HcalRecoParam.h.

References mParam1.

Referenced by HBHEPhase1Reconstructor::processData().

33 { return (mParam1 >> 18) & 0x1FF; }
uint32_t mParam1
Definition: HcalRecoParam.h:48

◆ rawId()

constexpr uint32_t HcalRecoParam::rawId ( ) const
inline

Definition at line 23 of file HcalRecoParam.h.

References mId.

23 { return mId; }
uint32_t mId
Definition: HcalRecoParam.h:47

◆ samplesToAdd()

constexpr unsigned int HcalRecoParam::samplesToAdd ( ) const
inline

Definition at line 32 of file HcalRecoParam.h.

References mParam1, and mParam2.

Referenced by HcalSimpleReconstructor::process(), and HcalHitReconstructor::produce().

32 { return (mParam1 < 10) ? (mParam2) : ((mParam1 >> 14) & 0xF); }
uint32_t mParam2
Definition: HcalRecoParam.h:49
uint32_t mParam1
Definition: HcalRecoParam.h:48

◆ serialize()

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

◆ specialCaseID()

constexpr unsigned int HcalRecoParam::specialCaseID ( ) const
inline

Definition at line 41 of file HcalRecoParam.h.

References mParam2.

41 { return (mParam2 >> 15) & 0xF; }
uint32_t mParam2
Definition: HcalRecoParam.h:49

◆ timeslewCorrectionID()

constexpr unsigned int HcalRecoParam::timeslewCorrectionID ( ) const
inline

Definition at line 38 of file HcalRecoParam.h.

References mParam2.

38 { return (mParam2 >> 6) & 0xF; }
uint32_t mParam2
Definition: HcalRecoParam.h:49

◆ useLeakCorrection()

constexpr bool HcalRecoParam::useLeakCorrection ( ) const
inline

Definition at line 35 of file HcalRecoParam.h.

References mParam2.

Referenced by HcalHitReconstructor::produce().

35 { return mParam2 & 0x1; }
uint32_t mParam2
Definition: HcalRecoParam.h:49

Friends And Related Function Documentation

◆ boost::serialization::access

friend class boost::serialization::access
friend

Definition at line 51 of file HcalRecoParam.h.

◆ cond::serialization::access

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

Definition at line 51 of file HcalRecoParam.h.

Member Data Documentation

◆ mId

uint32_t HcalRecoParam::mId
private

Definition at line 47 of file HcalRecoParam.h.

Referenced by rawId().

◆ mParam1

uint32_t HcalRecoParam::mParam1
private

◆ mParam2

uint32_t HcalRecoParam::mParam2
private