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

Constructor & Destructor Documentation

PFRecHitQTestHCALCalib29::PFRecHitQTestHCALCalib29 ( )
inline

Definition at line 437 of file PFRecHitQTests.h.

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

Definition at line 441 of file PFRecHitQTests.h.

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

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

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

Implements PFRecHitQTestBase.

Definition at line 450 of file PFRecHitQTests.h.

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

Implements PFRecHitQTestBase.

Definition at line 453 of file PFRecHitQTests.h.

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

453  {
454  HcalDetId detId(hit.detId());
455  if (abs(detId.ieta())==29)
456  hit.setEnergy(hit.energy()*calibFactor_);
457  return true;
458 
459  }
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 461 of file PFRecHitQTests.h.

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

Implements PFRecHitQTestBase.

Definition at line 465 of file PFRecHitQTests.h.

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

Implements PFRecHitQTestBase.

Definition at line 469 of file PFRecHitQTests.h.

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

469  {
470  CaloTowerDetId detId(hit.detId());
471  if (detId.ietaAbs()==29)
472  hit.setEnergy(hit.energy()*calibFactor_);
473  return true;
474 
475  }
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 478 of file PFRecHitQTests.h.

Referenced by PFRecHitQTestHCALCalib29(), and test().