test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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)
 
 ~CSCDynamicPedestal1 ()
 
- 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 61 of file CSCPedestalChoice.h.

Constructor & Destructor Documentation

CSCDynamicPedestal1::CSCDynamicPedestal1 ( )
inline

Definition at line 63 of file CSCPedestalChoice.h.

63 {}
CSCDynamicPedestal1::~CSCDynamicPedestal1 ( )
inline

Definition at line 64 of file CSCPedestalChoice.h.

64 {}

Member Function Documentation

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

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 65 of file CSCPedestalChoice.h.

References CSCPedestalChoice::getDefault().

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