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 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)
 

Protected Attributes

float calibFactor_
 

Detailed Description

Definition at line 534 of file PFRecHitQTests.h.

Constructor & Destructor Documentation

PFRecHitQTestHCALCalib29::PFRecHitQTestHCALCalib29 ( )
inline

Definition at line 536 of file PFRecHitQTests.h.

536  {
537 
538  }
PFRecHitQTestHCALCalib29::PFRecHitQTestHCALCalib29 ( const edm::ParameterSet iConfig)
inline

Definition at line 540 of file PFRecHitQTests.h.

References edm::ParameterSet::getParameter().

540  :
541  PFRecHitQTestBase(iConfig)
542  {
543  calibFactor_ =iConfig.getParameter<double>("calibFactor");
544  }
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 546 of file PFRecHitQTests.h.

546  {
547  }
bool PFRecHitQTestHCALCalib29::test ( reco::PFRecHit hit,
const EcalRecHit rh,
bool &  clean 
)
inlinevirtual

Implements PFRecHitQTestBase.

Definition at line 549 of file PFRecHitQTests.h.

549  {
550  return true;
551  }
bool PFRecHitQTestHCALCalib29::test ( reco::PFRecHit hit,
const HBHERecHit rh,
bool &  clean 
)
inlinevirtual

Implements PFRecHitQTestBase.

Definition at line 552 of file PFRecHitQTests.h.

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

552  {
553  HcalDetId detId(hit.detId());
554  if (abs(detId.ieta())==29)
555  hit.setEnergy(hit.energy()*calibFactor_);
556  return true;
557 
558  }
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 560 of file PFRecHitQTests.h.

560  {
561  return true;
562 
563  }
bool PFRecHitQTestHCALCalib29::test ( reco::PFRecHit hit,
const HORecHit rh,
bool &  clean 
)
inlinevirtual

Implements PFRecHitQTestBase.

Definition at line 564 of file PFRecHitQTests.h.

564  {
565  return true;
566  }
bool PFRecHitQTestHCALCalib29::test ( reco::PFRecHit hit,
const CaloTower rh,
bool &  clean 
)
inlinevirtual

Implements PFRecHitQTestBase.

Definition at line 568 of file PFRecHitQTests.h.

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

568  {
569  CaloTowerDetId detId(hit.detId());
570  if (detId.ietaAbs()==29)
571  hit.setEnergy(hit.energy()*calibFactor_);
572  return true;
573 
574  }
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 576 of file PFRecHitQTests.h.

576  {
577  return true;
578  }

Member Data Documentation

float PFRecHitQTestHCALCalib29::calibFactor_
protected

Definition at line 581 of file PFRecHitQTests.h.