#include <CSCPedestalChoice.h>
Public Member Functions | |
CSCDynamicPedestal2 () | |
float | pedestal (const std::vector< float > &sca, const CSCRecoConditions *, const CSCDetId, int) |
~CSCDynamicPedestal2 () |
Concrete CSCPedestalChoice... Pedestal is dynamic, averages first two SCA time bins
Definition at line 40 of file CSCPedestalChoice.h.
CSCDynamicPedestal2::CSCDynamicPedestal2 | ( | ) | [inline] |
Definition at line 42 of file CSCPedestalChoice.h.
{}
CSCDynamicPedestal2::~CSCDynamicPedestal2 | ( | ) | [inline] |
Definition at line 43 of file CSCPedestalChoice.h.
{}
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; }