Go to the documentation of this file. 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_);
void operator()(float &elem) const
float pedestal(const std::vector< float > &sca, const CSCRecoConditions *, const CSCDetId, int) override
float pedestal(const std::vector< float > &sca, const CSCRecoConditions *cond, const CSCDetId id, int ichan) override
~CSCStaticPedestal() override
float pedestal(const std::vector< float > &sca, const CSCRecoConditions *, const CSCDetId, int) override
~CSCDynamicPedestal2() override
void setDefault(float ped)
Allow reseting of default pedestal (not currently used)
void operator()(int &elem) const
~CSCDynamicPedestal1() override
virtual float pedestal(const std::vector< float > &sca, const CSCRecoConditions *cond=nullptr, const CSCDetId id=0, int ichan=0)=0
virtual ~CSCPedestalChoice()
CSCSubtractPedestal(float ped)
float getDefault() const
Return default pedestal (typically zero)