CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions
CSCStaticPedestal Class Reference

#include <CSCPedestalChoice.h>

Inheritance diagram for CSCStaticPedestal:
CSCPedestalChoice

Public Member Functions

 CSCStaticPedestal ()
 
float pedestal (const std::vector< float > &sca, const CSCRecoConditions *cond, const CSCDetId id, int ichan) override
 
 ~CSCStaticPedestal () 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 static, taken from conditions data

Definition at line 83 of file CSCPedestalChoice.h.

Constructor & Destructor Documentation

CSCStaticPedestal::CSCStaticPedestal ( )
inline

Definition at line 85 of file CSCPedestalChoice.h.

85 {}
CSCStaticPedestal::~CSCStaticPedestal ( )
inlineoverride

Definition at line 86 of file CSCPedestalChoice.h.

86 {}

Member Function Documentation

float CSCStaticPedestal::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 87 of file CSCPedestalChoice.h.

References CSCRecoConditions::pedestal().

87  {
88  float ped = cond->pedestal(id, ichan);
89  return ped;
90  }
float pedestal(const CSCDetId &id, int channel) const
static pedestal in ADC counts for strip channel (e.g. 1-16 for ganged ME1a, 1-48 for unganged ME1a) ...