1 #ifndef CSCRecHitD_CSCPedestalChoice_h
2 #define CSCRecHitD_CSCPedestalChoice_h
27 virtual float pedestal(
const std::vector<float>& sca,
50 ped = (sca[0] + sca[1]) / 2.;
88 float ped = cond->
pedestal(
id, ichan);
105 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
void operator()(int &elem) const
~CSCDynamicPedestal2() override
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()
virtual float pedestal(const std::vector< float > &sca, const CSCRecoConditions *cond=nullptr, const CSCDetId id=0, int ichan=0)=0
float pedestal(const std::vector< float > &sca, const CSCRecoConditions *cond, const CSCDetId id, int ichan) override