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)
~CSCStaticPedestal() override
void operator()(float &elem) const
float pedestal(const std::vector< float > &sca, const CSCRecoConditions *, const CSCDetId, int) override
CSCSubtractPedestal(float ped)
~CSCDynamicPedestal1() override
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
~CSCDynamicPedestal2() override
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) ...
float pedestal(const std::vector< float > &sca, const CSCRecoConditions *, const CSCDetId, int) override
virtual ~CSCPedestalChoice()
float pedestal(const std::vector< float > &sca, const CSCRecoConditions *cond, const CSCDetId id, int ichan) override