CMS 3D CMS Logo

List of all members | Public Member Functions
CSCDynamicPedestal1 Class Reference

#include <CSCPedestalChoice.h>

Inheritance diagram for CSCDynamicPedestal1:
CSCPedestalChoice

Public Member Functions

 CSCDynamicPedestal1 ()
 
float pedestal (const std::vector< float > &sca, const CSCRecoConditions *, const CSCDetId, int) override
 
 ~CSCDynamicPedestal1 () override
 
- Public Member Functions inherited from CSCPedestalChoice
 CSCPedestalChoice ()
 
float getDefault () const
 Return default pedestal (typically zero) More...
 
void setDefault (float ped)
 Allow reseting of default pedestal (not currently used) More...
 
virtual ~CSCPedestalChoice ()
 

Detailed Description

Concrete CSCPedestalChoice... Pedestal is dynamic, take first SCA time bin

Definition at line 63 of file CSCPedestalChoice.h.

Constructor & Destructor Documentation

CSCDynamicPedestal1::CSCDynamicPedestal1 ( )
inline

Definition at line 65 of file CSCPedestalChoice.h.

65 {}
CSCDynamicPedestal1::~CSCDynamicPedestal1 ( )
inlineoverride

Definition at line 66 of file CSCPedestalChoice.h.

66 {}

Member Function Documentation

float CSCDynamicPedestal1::pedestal ( const std::vector< float > &  sca,
const CSCRecoConditions cond,
const CSCDetId  id,
int  ichan 
)
inlineoverridevirtual

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

Implements CSCPedestalChoice.

Definition at line 67 of file CSCPedestalChoice.h.

References CSCPedestalChoice::getDefault().

67  {
68  float ped = getDefault();
69  if (!sca.empty()) {
70  ped = sca[0];
71  }
72  return ped;
73  }
float getDefault() const
Return default pedestal (typically zero)