CMS 3D CMS Logo

List of all members | Public Member Functions | Protected Attributes
PFRecHitQTestHCALCalib29 Class Reference

#include <PFRecHitQTests.h>

Inheritance diagram for PFRecHitQTestHCALCalib29:
PFRecHitQTestBase

Public Member Functions

void beginEvent (const edm::Event &event, const edm::EventSetup &iSetup) override
 
 PFRecHitQTestHCALCalib29 ()
 
 PFRecHitQTestHCALCalib29 (const edm::ParameterSet &iConfig)
 
bool test (reco::PFRecHit &hit, const EcalRecHit &rh, bool &clean, bool fullReadOut) override
 
bool test (reco::PFRecHit &hit, const HBHERecHit &rh, bool &clean) override
 
bool test (reco::PFRecHit &hit, const HFRecHit &rh, bool &clean) override
 
bool test (reco::PFRecHit &hit, const HORecHit &rh, bool &clean) override
 
bool test (reco::PFRecHit &hit, const CaloTower &rh, bool &clean) override
 
bool test (reco::PFRecHit &hit, const HGCRecHit &rh, bool &clean) override
 
- Public Member Functions inherited from PFRecHitQTestBase
 PFRecHitQTestBase ()=default
 
 PFRecHitQTestBase (const edm::ParameterSet &iConfig)
 
virtual ~PFRecHitQTestBase ()=default
 

Protected Attributes

const float calibFactor_
 

Detailed Description

Definition at line 679 of file PFRecHitQTests.h.

Constructor & Destructor Documentation

PFRecHitQTestHCALCalib29::PFRecHitQTestHCALCalib29 ( )
inline

Definition at line 681 of file PFRecHitQTests.h.

681  :
682  calibFactor_(0.)
683  {
684  }
PFRecHitQTestHCALCalib29::PFRecHitQTestHCALCalib29 ( const edm::ParameterSet iConfig)
inline

Definition at line 686 of file PFRecHitQTests.h.

686  :
687  PFRecHitQTestBase(iConfig),
688  calibFactor_(iConfig.getParameter<double>("calibFactor"))
689  {
690  }
T getParameter(std::string const &) const
PFRecHitQTestBase()=default

Member Function Documentation

void PFRecHitQTestHCALCalib29::beginEvent ( const edm::Event event,
const edm::EventSetup iSetup 
)
inlineoverridevirtual

Implements PFRecHitQTestBase.

Definition at line 692 of file PFRecHitQTests.h.

692  {
693  }
bool PFRecHitQTestHCALCalib29::test ( reco::PFRecHit hit,
const EcalRecHit rh,
bool &  clean,
bool  fullReadOut 
)
inlineoverridevirtual

Implements PFRecHitQTestBase.

Definition at line 695 of file PFRecHitQTests.h.

695  {
696  return true;
697  }
bool PFRecHitQTestHCALCalib29::test ( reco::PFRecHit hit,
const HBHERecHit rh,
bool &  clean 
)
inlineoverridevirtual

Implements PFRecHitQTestBase.

Definition at line 698 of file PFRecHitQTests.h.

References funct::abs(), reco::PFRecHit::detId(), reco::PFRecHit::energy(), and reco::PFRecHit::setEnergy().

698  {
699  HcalDetId detId(hit.detId());
700  if (abs(detId.ieta())==29)
701  hit.setEnergy(hit.energy()*calibFactor_);
702  return true;
703  }
unsigned detId() const
rechit detId
Definition: PFRecHit.h:108
Abs< T >::type abs(const T &t)
Definition: Abs.h:22
float energy() const
rechit energy
Definition: PFRecHit.h:114
void setEnergy(float energy)
Definition: PFRecHit.h:74
bool PFRecHitQTestHCALCalib29::test ( reco::PFRecHit hit,
const HFRecHit rh,
bool &  clean 
)
inlineoverridevirtual

Implements PFRecHitQTestBase.

Definition at line 705 of file PFRecHitQTests.h.

705  {
706  return true;
707  }
bool PFRecHitQTestHCALCalib29::test ( reco::PFRecHit hit,
const HORecHit rh,
bool &  clean 
)
inlineoverridevirtual

Implements PFRecHitQTestBase.

Definition at line 708 of file PFRecHitQTests.h.

708  {
709  return true;
710  }
bool PFRecHitQTestHCALCalib29::test ( reco::PFRecHit hit,
const CaloTower rh,
bool &  clean 
)
inlineoverridevirtual

Implements PFRecHitQTestBase.

Definition at line 712 of file PFRecHitQTests.h.

References reco::PFRecHit::detId(), reco::PFRecHit::energy(), and reco::PFRecHit::setEnergy().

712  {
713  CaloTowerDetId detId(hit.detId());
714  if (detId.ietaAbs()==29)
715  hit.setEnergy(hit.energy()*calibFactor_);
716  return true;
717  }
unsigned detId() const
rechit detId
Definition: PFRecHit.h:108
float energy() const
rechit energy
Definition: PFRecHit.h:114
void setEnergy(float energy)
Definition: PFRecHit.h:74
bool PFRecHitQTestHCALCalib29::test ( reco::PFRecHit hit,
const HGCRecHit rh,
bool &  clean 
)
inlineoverridevirtual

Implements PFRecHitQTestBase.

Definition at line 719 of file PFRecHitQTests.h.

719  {
720  return true;
721  }

Member Data Documentation

const float PFRecHitQTestHCALCalib29::calibFactor_
protected

Definition at line 724 of file PFRecHitQTests.h.