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)
 
 PFRecHitQTestHCALCalib29 ()
 
 PFRecHitQTestHCALCalib29 (const edm::ParameterSet &iConfig)
 
bool test (reco::PFRecHit &hit, const EcalRecHit &rh, bool &clean, bool fullReadOut)
 
bool test (reco::PFRecHit &hit, const HBHERecHit &rh, bool &clean)
 
bool test (reco::PFRecHit &hit, const HFRecHit &rh, bool &clean)
 
bool test (reco::PFRecHit &hit, const HORecHit &rh, bool &clean)
 
bool test (reco::PFRecHit &hit, const CaloTower &rh, bool &clean)
 
bool test (reco::PFRecHit &hit, const HGCRecHit &rh, bool &clean)
 
- Public Member Functions inherited from PFRecHitQTestBase
 PFRecHitQTestBase ()
 
 PFRecHitQTestBase (const edm::ParameterSet &iConfig)
 
virtual ~PFRecHitQTestBase ()=default
 

Protected Attributes

float calibFactor_
 

Detailed Description

Definition at line 615 of file PFRecHitQTests.h.

Constructor & Destructor Documentation

PFRecHitQTestHCALCalib29::PFRecHitQTestHCALCalib29 ( )
inline

Definition at line 617 of file PFRecHitQTests.h.

617  {
618 
619  }
PFRecHitQTestHCALCalib29::PFRecHitQTestHCALCalib29 ( const edm::ParameterSet iConfig)
inline

Definition at line 621 of file PFRecHitQTests.h.

References edm::ParameterSet::getParameter().

621  :
622  PFRecHitQTestBase(iConfig)
623  {
624  calibFactor_ =iConfig.getParameter<double>("calibFactor");
625  }
T getParameter(std::string const &) const

Member Function Documentation

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

Implements PFRecHitQTestBase.

Definition at line 627 of file PFRecHitQTests.h.

627  {
628  }
bool PFRecHitQTestHCALCalib29::test ( reco::PFRecHit hit,
const EcalRecHit rh,
bool &  clean,
bool  fullReadOut 
)
inlinevirtual

Implements PFRecHitQTestBase.

Definition at line 630 of file PFRecHitQTests.h.

630  {
631  return true;
632  }
bool PFRecHitQTestHCALCalib29::test ( reco::PFRecHit hit,
const HBHERecHit rh,
bool &  clean 
)
inlinevirtual

Implements PFRecHitQTestBase.

Definition at line 633 of file PFRecHitQTests.h.

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

633  {
634  HcalDetId detId(hit.detId());
635  if (abs(detId.ieta())==29)
636  hit.setEnergy(hit.energy()*calibFactor_);
637  return true;
638 
639  }
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 
)
inlinevirtual

Implements PFRecHitQTestBase.

Definition at line 641 of file PFRecHitQTests.h.

641  {
642  return true;
643 
644  }
bool PFRecHitQTestHCALCalib29::test ( reco::PFRecHit hit,
const HORecHit rh,
bool &  clean 
)
inlinevirtual

Implements PFRecHitQTestBase.

Definition at line 645 of file PFRecHitQTests.h.

645  {
646  return true;
647  }
bool PFRecHitQTestHCALCalib29::test ( reco::PFRecHit hit,
const CaloTower rh,
bool &  clean 
)
inlinevirtual

Implements PFRecHitQTestBase.

Definition at line 649 of file PFRecHitQTests.h.

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

649  {
650  CaloTowerDetId detId(hit.detId());
651  if (detId.ietaAbs()==29)
652  hit.setEnergy(hit.energy()*calibFactor_);
653  return true;
654 
655  }
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 
)
inlinevirtual

Implements PFRecHitQTestBase.

Definition at line 657 of file PFRecHitQTests.h.

657  {
658  return true;
659  }

Member Data Documentation

float PFRecHitQTestHCALCalib29::calibFactor_
protected

Definition at line 662 of file PFRecHitQTests.h.