CMS 3D CMS Logo

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

#include <HcalMCParam.h>

Public Member Functions

unsigned int binOfMaximum () const
 
 HcalMCParam ()
 
 HcalMCParam (unsigned long fId, unsigned int fParam1)
 
unsigned int packingScheme () const
 
unsigned int param1 () const
 
uint32_t rawId () const
 
unsigned int signalShape () const
 
bool syncPhase () const
 
float timePhase () const
 
bool timeSmearing () const
 

Private Member Functions

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

Private Attributes

uint32_t mId
 
uint32_t mParam1
 

Friends

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

Detailed Description

Author
Radek Ofierzynski POOL object to store MC information

Definition at line 29 of file HcalMCParam.h.

Constructor & Destructor Documentation

◆ HcalMCParam() [1/2]

HcalMCParam::HcalMCParam ( )
inline

Definition at line 31 of file HcalMCParam.h.

31 : mId(0), mParam1(0) {}

◆ HcalMCParam() [2/2]

HcalMCParam::HcalMCParam ( unsigned long  fId,
unsigned int  fParam1 
)
inline

Definition at line 33 of file HcalMCParam.h.

33 : mId(fId), mParam1(fParam1) {}

Member Function Documentation

◆ binOfMaximum()

unsigned int HcalMCParam::binOfMaximum ( ) const
inline

Definition at line 40 of file HcalMCParam.h.

40 { return (mParam1 >> 10) & 0xF; }

References mParam1.

◆ packingScheme()

unsigned int HcalMCParam::packingScheme ( ) const
inline

Definition at line 43 of file HcalMCParam.h.

43 { return (mParam1 >> 27) & 0xF; }

References mParam1.

◆ param1()

unsigned int HcalMCParam::param1 ( ) const
inline

Definition at line 37 of file HcalMCParam.h.

37 { return mParam1; }

References mParam1.

◆ rawId()

uint32_t HcalMCParam::rawId ( ) const
inline

Definition at line 35 of file HcalMCParam.h.

35 { return mId; }

References mId.

◆ serialize()

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

◆ signalShape()

unsigned int HcalMCParam::signalShape ( ) const
inline

Definition at line 38 of file HcalMCParam.h.

38 { return mParam1 & 0x1FF; }

References mParam1.

Referenced by HcalDigitizer::buildHOSiPMCells(), HcalShapes::shape(), HcalPulseShapes::shape(), and HcalSimParameters::signalShape().

◆ syncPhase()

bool HcalMCParam::syncPhase ( ) const
inline

Definition at line 39 of file HcalMCParam.h.

39 { return (mParam1 >> 9) & 0x1; }

References mParam1.

◆ timePhase()

float HcalMCParam::timePhase ( ) const
inline

Definition at line 41 of file HcalMCParam.h.

41 { return ((mParam1 >> 14) & 0xFF) / 4.0 - 32.0; }

References mParam1.

◆ timeSmearing()

bool HcalMCParam::timeSmearing ( ) const
inline

Definition at line 42 of file HcalMCParam.h.

42 { return (mParam1 >> 22) & 0x1; }

References mParam1.

Friends And Related Function Documentation

◆ boost::serialization::access

friend class boost::serialization::access
friend

Definition at line 49 of file HcalMCParam.h.

◆ cond::serialization::access

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

Definition at line 49 of file HcalMCParam.h.

Member Data Documentation

◆ mId

uint32_t HcalMCParam::mId
private

Definition at line 46 of file HcalMCParam.h.

Referenced by rawId().

◆ mParam1

uint32_t HcalMCParam::mParam1
private
HcalMCParam::mParam1
uint32_t mParam1
Definition: HcalMCParam.h:47
HcalMCParam::mId
uint32_t mId
Definition: HcalMCParam.h:46