CMS 3D CMS Logo

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=nullptr, 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::CSCPedestalChoice ( )
inline

Definition at line 16 of file CSCPedestalChoice.h.

16 : defaultPed(0.) {}

◆ ~CSCPedestalChoice()

virtual CSCPedestalChoice::~CSCPedestalChoice ( )
inlinevirtual

Definition at line 17 of file CSCPedestalChoice.h.

17 {}

Member Function Documentation

◆ getDefault()

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; }

◆ pedestal()

virtual float CSCPedestalChoice::pedestal ( const std::vector< float > &  sca,
const CSCRecoConditions cond = nullptr,
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().

◆ setDefault()

void CSCPedestalChoice::setDefault ( float  ped)
inline

Allow reseting of default pedestal (not currently used)

Definition at line 21 of file CSCPedestalChoice.h.

References defaultPed, and QIE10Task_cfi::ped.

Member Data Documentation

◆ defaultPed

float CSCPedestalChoice::defaultPed
private

Definition at line 33 of file CSCPedestalChoice.h.

Referenced by getDefault(), and setDefault().