1 #ifndef CSCRecHitD_CSCPedestalChoice_h 2 #define CSCRecHitD_CSCPedestalChoice_h 27 virtual float pedestal(
const std::vector<float>& sca,
48 ped = ( sca[0]+sca[1] )/2.;
88 float ped = cond->
pedestal(
id, ichan );
107 elem -=
static_cast<int>(ped_);
float getDefault() const
Return default pedestal (typically zero)
float pedestal(const std::vector< float > &sca, const CSCRecoConditions *cond, const CSCDetId id, int ichan)
float pedestal(const std::vector< float > &sca, const CSCRecoConditions *, const CSCDetId, int)
void operator()(float &elem) const
float pedestal(const std::vector< float > &sca, const CSCRecoConditions *, const CSCDetId, int)
CSCSubtractPedestal(float ped)
virtual float pedestal(const std::vector< float > &sca, const CSCRecoConditions *cond=0, const CSCDetId id=0, int ichan=0)=0
void operator()(int &elem) const
def elem(elemtype, innerHTML='', html_class='', kwargs)
void setDefault(float ped)
Allow reseting of default pedestal (not currently used)
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) ...
virtual ~CSCPedestalChoice()