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 603 of file PFRecHitQTests.h.

Constructor & Destructor Documentation

PFRecHitQTestHCALCalib29::PFRecHitQTestHCALCalib29 ( )
inline

Definition at line 605 of file PFRecHitQTests.h.

605  :
606  calibFactor_(0.)
607  {
608  }
PFRecHitQTestHCALCalib29::PFRecHitQTestHCALCalib29 ( const edm::ParameterSet iConfig)
inline

Definition at line 610 of file PFRecHitQTests.h.

610  :
611  PFRecHitQTestBase(iConfig),
612  calibFactor_(iConfig.getParameter<double>("calibFactor"))
613  {
614  }
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 616 of file PFRecHitQTests.h.

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

Implements PFRecHitQTestBase.

Definition at line 619 of file PFRecHitQTests.h.

619  {
620  return true;
621  }
bool PFRecHitQTestHCALCalib29::test ( reco::PFRecHit hit,
const HBHERecHit rh,
bool &  clean 
)
inlineoverridevirtual

Implements PFRecHitQTestBase.

Definition at line 622 of file PFRecHitQTests.h.

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

622  {
623  HcalDetId detId(hit.detId());
624  if (abs(detId.ieta())==29)
625  hit.setEnergy(hit.energy()*calibFactor_);
626  return true;
627  }
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 629 of file PFRecHitQTests.h.

629  {
630  return true;
631  }
bool PFRecHitQTestHCALCalib29::test ( reco::PFRecHit hit,
const HORecHit rh,
bool &  clean 
)
inlineoverridevirtual

Implements PFRecHitQTestBase.

Definition at line 632 of file PFRecHitQTests.h.

632  {
633  return true;
634  }
bool PFRecHitQTestHCALCalib29::test ( reco::PFRecHit hit,
const CaloTower rh,
bool &  clean 
)
inlineoverridevirtual

Implements PFRecHitQTestBase.

Definition at line 636 of file PFRecHitQTests.h.

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

636  {
637  CaloTowerDetId detId(hit.detId());
638  if (detId.ietaAbs()==29)
639  hit.setEnergy(hit.energy()*calibFactor_);
640  return true;
641  }
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 643 of file PFRecHitQTests.h.

643  {
644  return true;
645  }

Member Data Documentation

const float PFRecHitQTestHCALCalib29::calibFactor_
protected

Definition at line 648 of file PFRecHitQTests.h.