CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Private Attributes
CSCPedestalChoice Class Referenceabstract

#include <CSCPedestalChoice.h>

Inheritance diagram for CSCPedestalChoice:
CSCDynamicPedestal1 CSCDynamicPedestal2 CSCStaticPedestal

Public Member Functions

 CSCPedestalChoice ()
 
float getDefault () const
 Return default pedestal (typically zero) More...
 
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) More...
 
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.

16 : defaultPed( 0. ){}
virtual CSCPedestalChoice::~CSCPedestalChoice ( )
inlinevirtual

Definition at line 17 of file CSCPedestalChoice.h.

17 {};

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().

19 { 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 CSCStaticPedestal, CSCDynamicPedestal1, and CSCDynamicPedestal2.

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.

21 { defaultPed = ped; }

Member Data Documentation

float CSCPedestalChoice::defaultPed
private

Definition at line 30 of file CSCPedestalChoice.h.

Referenced by getDefault(), and setDefault().