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

Constructor & Destructor Documentation

PFRecHitQTestHCALCalib29::PFRecHitQTestHCALCalib29 ( )
inline

Definition at line 276 of file PFRecHitQTests.h.

276  {
277 
278  }
PFRecHitQTestHCALCalib29::PFRecHitQTestHCALCalib29 ( const edm::ParameterSet iConfig)
inline

Definition at line 280 of file PFRecHitQTests.h.

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

280  :
281  PFRecHitQTestBase(iConfig)
282  {
283  calibFactor_ =iConfig.getParameter<double>("calibFactor");
284  }
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 286 of file PFRecHitQTests.h.

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

Implements PFRecHitQTestBase.

Definition at line 289 of file PFRecHitQTests.h.

289  {
290  return true;
291  }
bool PFRecHitQTestHCALCalib29::test ( reco::PFRecHit hit,
const HBHERecHit rh,
bool &  clean 
)
inlinevirtual

Implements PFRecHitQTestBase.

Definition at line 292 of file PFRecHitQTests.h.

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

292  {
293  HcalDetId detId(hit.detId());
294  if (abs(detId.ieta())==29)
295  hit.setEnergy(hit.energy()*calibFactor_);
296  return true;
297 
298  }
unsigned detId() const
rechit detId
Definition: PFRecHit.h:101
void setEnergy(double energy)
Definition: PFRecHit.h:69
Abs< T >::type abs(const T &t)
Definition: Abs.h:22
double energy() const
rechit energy
Definition: PFRecHit.h:107
bool PFRecHitQTestHCALCalib29::test ( reco::PFRecHit hit,
const HFRecHit rh,
bool &  clean 
)
inlinevirtual

Implements PFRecHitQTestBase.

Definition at line 300 of file PFRecHitQTests.h.

300  {
301  return true;
302 
303  }
bool PFRecHitQTestHCALCalib29::test ( reco::PFRecHit hit,
const HORecHit rh,
bool &  clean 
)
inlinevirtual

Implements PFRecHitQTestBase.

Definition at line 304 of file PFRecHitQTests.h.

304  {
305  return true;
306  }
bool PFRecHitQTestHCALCalib29::test ( reco::PFRecHit hit,
const CaloTower rh,
bool &  clean 
)
inlinevirtual

Implements PFRecHitQTestBase.

Definition at line 308 of file PFRecHitQTests.h.

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

308  {
309  CaloTowerDetId detId(hit.detId());
310  if (detId.ietaAbs()==29)
311  hit.setEnergy(hit.energy()*calibFactor_);
312  return true;
313 
314  }
unsigned detId() const
rechit detId
Definition: PFRecHit.h:101
void setEnergy(double energy)
Definition: PFRecHit.h:69
double energy() const
rechit energy
Definition: PFRecHit.h:107

Member Data Documentation

float PFRecHitQTestHCALCalib29::calibFactor_
protected

Definition at line 317 of file PFRecHitQTests.h.

Referenced by PFRecHitQTestHCALCalib29(), and test().