CMS 3D CMS Logo

Public Member Functions | Private Attributes

CSCPedestalChoice Class Reference

#include <CSCPedestalChoice.h>

Inheritance diagram for CSCPedestalChoice:
CSCDynamicPedestal1 CSCDynamicPedestal2 CSCStaticPedestal

List of all members.

Public Member Functions

 CSCPedestalChoice ()
float getDefault () const
 Return default pedestal (typically zero)
virtual float pedestal (const std::vector< float > &sca, const CSCRecoConditions *cond=0, const CSCDetId id=0, int ichan=0)=0
void setDefault (float ped)
 Allow reseting of default pedestal (not currently used)
virtual ~CSCPedestalChoice ()

Private Attributes

float defaultPed

Detailed Description

ABC for concrete classes which estimate SCA pedestal in alternative ways

Definition at line 14 of file CSCPedestalChoice.h.


Constructor & Destructor Documentation

CSCPedestalChoice::CSCPedestalChoice ( ) [inline]

Definition at line 16 of file CSCPedestalChoice.h.

: defaultPed( 0. ){}
virtual CSCPedestalChoice::~CSCPedestalChoice ( ) [inline, virtual]

Definition at line 17 of file CSCPedestalChoice.h.

{};

Member Function Documentation

float CSCPedestalChoice::getDefault ( ) const [inline]

Return default pedestal (typically zero)

Definition at line 19 of file CSCPedestalChoice.h.

References defaultPed.

Referenced by CSCDynamicPedestal2::pedestal(), and CSCDynamicPedestal1::pedestal().

{ return defaultPed; } 
virtual float CSCPedestalChoice::pedestal ( const std::vector< float > &  sca,
const CSCRecoConditions cond = 0,
const CSCDetId  id = 0,
int  ichan = 0 
) [pure virtual]

Return appropriate pedestal for supplied SCA vector. If using conditions data then must also supply pointer to CSCRecoConditions and CSCDetId + channel

Implemented in CSCDynamicPedestal2, CSCDynamicPedestal1, and CSCStaticPedestal.

Referenced by CSCHitFromStripOnly::fillPulseHeights().

void CSCPedestalChoice::setDefault ( float  ped) [inline]

Allow reseting of default pedestal (not currently used)

Definition at line 21 of file CSCPedestalChoice.h.

References defaultPed.

{ defaultPed = ped; }

Member Data Documentation

Definition at line 30 of file CSCPedestalChoice.h.

Referenced by getDefault(), and setDefault().