#include <CSCPedestalChoice.h>
Public Member Functions | |
CSCDynamicPedestal1 () | |
float | pedestal (const std::vector< float > &sca, const CSCRecoConditions *, const CSCDetId, int) |
~CSCDynamicPedestal1 () |
Concrete CSCPedestalChoice... Pedestal is dynamic, take first SCA time bin
Definition at line 61 of file CSCPedestalChoice.h.
CSCDynamicPedestal1::CSCDynamicPedestal1 | ( | ) | [inline] |
Definition at line 63 of file CSCPedestalChoice.h.
{}
CSCDynamicPedestal1::~CSCDynamicPedestal1 | ( | ) | [inline] |
Definition at line 64 of file CSCPedestalChoice.h.
{}
float CSCDynamicPedestal1::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 65 of file CSCPedestalChoice.h.
References CSCPedestalChoice::getDefault().
{ float ped = getDefault(); if ( !sca.empty() ){ ped = sca[0]; } return ped; }