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_);
~CSCStaticPedestal() override
float getDefault() const
Return default pedestal (typically zero)
float pedestal(const std::vector< float > &sca, const CSCRecoConditions *, const CSCDetId, int) override
void operator()(float &elem) const
CSCSubtractPedestal(float ped)
~CSCDynamicPedestal1() override
~CSCDynamicPedestal2() override
void setDefault(float ped)
Allow reseting of default pedestal (not currently used)
float pedestal(const std::vector< float > &sca, const CSCRecoConditions *, const CSCDetId, int) override
virtual ~CSCPedestalChoice()
void operator()(int &elem) const
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