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) override
 
 PFRecHitQTestHCALCalib29 ()
 
 PFRecHitQTestHCALCalib29 (const edm::ParameterSet &iConfig, edm::ConsumesCollector &cc)
 
bool test (reco::PFRecHit &hit, const EcalRecHit &rh, bool &clean, bool fullReadOut) override
 
bool test (reco::PFRecHit &hit, const HBHERecHit &rh, bool &clean) override
 
bool test (reco::PFRecHit &hit, const HFRecHit &rh, bool &clean) override
 
bool test (reco::PFRecHit &hit, const HORecHit &rh, bool &clean) override
 
bool test (reco::PFRecHit &hit, const CaloTower &rh, bool &clean) override
 
bool test (reco::PFRecHit &hit, const HGCRecHit &rh, bool &clean) override
 
- Public Member Functions inherited from PFRecHitQTestBase
 PFRecHitQTestBase ()=default
 
 PFRecHitQTestBase (const edm::ParameterSet &iConfig, edm::ConsumesCollector &cc)
 
virtual ~PFRecHitQTestBase ()=default
 

Protected Attributes

const float calibFactor_
 

Detailed Description

Definition at line 560 of file PFRecHitQTests.h.

Constructor & Destructor Documentation

◆ PFRecHitQTestHCALCalib29() [1/2]

PFRecHitQTestHCALCalib29::PFRecHitQTestHCALCalib29 ( )
inline

Definition at line 562 of file PFRecHitQTests.h.

562 : calibFactor_(0.) {}

◆ PFRecHitQTestHCALCalib29() [2/2]

PFRecHitQTestHCALCalib29::PFRecHitQTestHCALCalib29 ( const edm::ParameterSet iConfig,
edm::ConsumesCollector cc 
)
inline

Definition at line 564 of file PFRecHitQTests.h.

565  : PFRecHitQTestBase(iConfig, cc), calibFactor_(iConfig.getParameter<double>("calibFactor")) {}
T getParameter(std::string const &) const
Definition: ParameterSet.h:307
uint32_t cc[maxCellsPerHit]
Definition: gpuFishbone.h:49
PFRecHitQTestBase()=default

Member Function Documentation

◆ beginEvent()

void PFRecHitQTestHCALCalib29::beginEvent ( const edm::Event event,
const edm::EventSetup iSetup 
)
inlineoverridevirtual

Implements PFRecHitQTestBase.

Definition at line 567 of file PFRecHitQTests.h.

567 {}

◆ test() [1/6]

bool PFRecHitQTestHCALCalib29::test ( reco::PFRecHit hit,
const EcalRecHit rh,
bool &  clean,
bool  fullReadOut 
)
inlineoverridevirtual

Implements PFRecHitQTestBase.

Definition at line 569 of file PFRecHitQTests.h.

569 { return true; }

◆ test() [2/6]

bool PFRecHitQTestHCALCalib29::test ( reco::PFRecHit hit,
const HBHERecHit rh,
bool &  clean 
)
inlineoverridevirtual

Implements PFRecHitQTestBase.

Definition at line 570 of file PFRecHitQTests.h.

References funct::abs(), calibFactor_, and hcalRecHitTable_cff::detId.

570  {
571  HcalDetId detId(hit.detId());
572  if (abs(detId.ieta()) == 29)
573  hit.setEnergy(hit.energy() * calibFactor_);
574  return true;
575  }
Abs< T >::type abs(const T &t)
Definition: Abs.h:22

◆ test() [3/6]

bool PFRecHitQTestHCALCalib29::test ( reco::PFRecHit hit,
const HFRecHit rh,
bool &  clean 
)
inlineoverridevirtual

Implements PFRecHitQTestBase.

Definition at line 577 of file PFRecHitQTests.h.

577 { return true; }

◆ test() [4/6]

bool PFRecHitQTestHCALCalib29::test ( reco::PFRecHit hit,
const HORecHit rh,
bool &  clean 
)
inlineoverridevirtual

Implements PFRecHitQTestBase.

Definition at line 578 of file PFRecHitQTests.h.

578 { return true; }

◆ test() [5/6]

bool PFRecHitQTestHCALCalib29::test ( reco::PFRecHit hit,
const CaloTower rh,
bool &  clean 
)
inlineoverridevirtual

Implements PFRecHitQTestBase.

Definition at line 580 of file PFRecHitQTests.h.

References calibFactor_, and hcalRecHitTable_cff::detId.

580  {
581  CaloTowerDetId detId(hit.detId());
582  if (detId.ietaAbs() == 29)
583  hit.setEnergy(hit.energy() * calibFactor_);
584  return true;
585  }

◆ test() [6/6]

bool PFRecHitQTestHCALCalib29::test ( reco::PFRecHit hit,
const HGCRecHit rh,
bool &  clean 
)
inlineoverridevirtual

Implements PFRecHitQTestBase.

Definition at line 587 of file PFRecHitQTests.h.

587 { return true; }

Member Data Documentation

◆ calibFactor_

const float PFRecHitQTestHCALCalib29::calibFactor_
protected

Definition at line 590 of file PFRecHitQTests.h.

Referenced by test().