CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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)
 
- Public Member Functions inherited from PFRecHitQTestBase
 PFRecHitQTestBase ()
 
 PFRecHitQTestBase (const edm::ParameterSet &iConfig)
 

Protected Attributes

float calibFactor_
 

Detailed Description

Definition at line 434 of file PFRecHitQTests.h.

Constructor & Destructor Documentation

PFRecHitQTestHCALCalib29::PFRecHitQTestHCALCalib29 ( )
inline

Definition at line 436 of file PFRecHitQTests.h.

436  {
437 
438  }
PFRecHitQTestHCALCalib29::PFRecHitQTestHCALCalib29 ( const edm::ParameterSet iConfig)
inline

Definition at line 440 of file PFRecHitQTests.h.

References calibFactor_, and edm::ParameterSet::getParameter().

440  :
441  PFRecHitQTestBase(iConfig)
442  {
443  calibFactor_ =iConfig.getParameter<double>("calibFactor");
444  }
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 446 of file PFRecHitQTests.h.

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

Implements PFRecHitQTestBase.

Definition at line 449 of file PFRecHitQTests.h.

449  {
450  return true;
451  }
bool PFRecHitQTestHCALCalib29::test ( reco::PFRecHit hit,
const HBHERecHit rh,
bool &  clean 
)
inlinevirtual

Implements PFRecHitQTestBase.

Definition at line 452 of file PFRecHitQTests.h.

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

452  {
453  HcalDetId detId(hit.detId());
454  if (abs(detId.ieta())==29)
455  hit.setEnergy(hit.energy()*calibFactor_);
456  return true;
457 
458  }
unsigned detId() const
rechit detId
Definition: PFRecHit.h:106
void setEnergy(double energy)
Definition: PFRecHit.h:72
Abs< T >::type abs(const T &t)
Definition: Abs.h:22
double energy() const
rechit energy
Definition: PFRecHit.h:112
bool PFRecHitQTestHCALCalib29::test ( reco::PFRecHit hit,
const HFRecHit rh,
bool &  clean 
)
inlinevirtual

Implements PFRecHitQTestBase.

Definition at line 460 of file PFRecHitQTests.h.

460  {
461  return true;
462 
463  }
bool PFRecHitQTestHCALCalib29::test ( reco::PFRecHit hit,
const HORecHit rh,
bool &  clean 
)
inlinevirtual

Implements PFRecHitQTestBase.

Definition at line 464 of file PFRecHitQTests.h.

464  {
465  return true;
466  }
bool PFRecHitQTestHCALCalib29::test ( reco::PFRecHit hit,
const CaloTower rh,
bool &  clean 
)
inlinevirtual

Implements PFRecHitQTestBase.

Definition at line 468 of file PFRecHitQTests.h.

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

468  {
469  CaloTowerDetId detId(hit.detId());
470  if (detId.ietaAbs()==29)
471  hit.setEnergy(hit.energy()*calibFactor_);
472  return true;
473 
474  }
unsigned detId() const
rechit detId
Definition: PFRecHit.h:106
void setEnergy(double energy)
Definition: PFRecHit.h:72
double energy() const
rechit energy
Definition: PFRecHit.h:112

Member Data Documentation

float PFRecHitQTestHCALCalib29::calibFactor_
protected

Definition at line 477 of file PFRecHitQTests.h.

Referenced by PFRecHitQTestHCALCalib29(), and test().