CMS 3D CMS Logo

Public Member Functions

CSCDynamicPedestal2 Class Reference

#include <CSCPedestalChoice.h>

Inheritance diagram for CSCDynamicPedestal2:
CSCPedestalChoice

List of all members.

Public Member Functions

 CSCDynamicPedestal2 ()
float pedestal (const std::vector< float > &sca, const CSCRecoConditions *, const CSCDetId, int)
 ~CSCDynamicPedestal2 ()

Detailed Description

Concrete CSCPedestalChoice... Pedestal is dynamic, averages first two SCA time bins

Definition at line 40 of file CSCPedestalChoice.h.


Constructor & Destructor Documentation

CSCDynamicPedestal2::CSCDynamicPedestal2 ( ) [inline]

Definition at line 42 of file CSCPedestalChoice.h.

{}
CSCDynamicPedestal2::~CSCDynamicPedestal2 ( ) [inline]

Definition at line 43 of file CSCPedestalChoice.h.

{}

Member Function Documentation

float CSCDynamicPedestal2::pedestal ( const std::vector< float > &  sca,
const CSCRecoConditions cond,
const CSCDetId  id,
int  ichan 
) [inline, virtual]

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

References CSCPedestalChoice::getDefault().

                                                           {
                float ped = getDefault();
                if ( !sca.empty() ){
                        ped = ( sca[0]+sca[1] )/2.;
                }
                return ped;
        }