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

Constructor & Destructor Documentation

PFRecHitQTestHCALCalib29::PFRecHitQTestHCALCalib29 ( )
inline

Definition at line 529 of file PFRecHitQTests.h.

529  {
530 
531  }
PFRecHitQTestHCALCalib29::PFRecHitQTestHCALCalib29 ( const edm::ParameterSet iConfig)
inline

Definition at line 533 of file PFRecHitQTests.h.

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

533  :
534  PFRecHitQTestBase(iConfig)
535  {
536  calibFactor_ =iConfig.getParameter<double>("calibFactor");
537  }
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 539 of file PFRecHitQTests.h.

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

Implements PFRecHitQTestBase.

Definition at line 542 of file PFRecHitQTests.h.

542  {
543  return true;
544  }
bool PFRecHitQTestHCALCalib29::test ( reco::PFRecHit hit,
const HBHERecHit rh,
bool &  clean 
)
inlinevirtual

Implements PFRecHitQTestBase.

Definition at line 545 of file PFRecHitQTests.h.

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

545  {
546  HcalDetId detId(hit.detId());
547  if (abs(detId.ieta())==29)
548  hit.setEnergy(hit.energy()*calibFactor_);
549  return true;
550 
551  }
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 553 of file PFRecHitQTests.h.

553  {
554  return true;
555 
556  }
bool PFRecHitQTestHCALCalib29::test ( reco::PFRecHit hit,
const HORecHit rh,
bool &  clean 
)
inlinevirtual

Implements PFRecHitQTestBase.

Definition at line 557 of file PFRecHitQTests.h.

557  {
558  return true;
559  }
bool PFRecHitQTestHCALCalib29::test ( reco::PFRecHit hit,
const CaloTower rh,
bool &  clean 
)
inlinevirtual

Implements PFRecHitQTestBase.

Definition at line 561 of file PFRecHitQTests.h.

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

561  {
562  CaloTowerDetId detId(hit.detId());
563  if (detId.ietaAbs()==29)
564  hit.setEnergy(hit.energy()*calibFactor_);
565  return true;
566 
567  }
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
bool PFRecHitQTestHCALCalib29::test ( reco::PFRecHit hit,
const HGCRecHit rh,
bool &  clean 
)
inlinevirtual

Implements PFRecHitQTestBase.

Definition at line 569 of file PFRecHitQTests.h.

569  {
570  return true;
571  }

Member Data Documentation

float PFRecHitQTestHCALCalib29::calibFactor_
protected

Definition at line 574 of file PFRecHitQTests.h.

Referenced by PFRecHitQTestHCALCalib29(), and test().