CMS 3D CMS Logo

List of all members | Public Member Functions | Protected Member Functions | Protected Attributes
PFRecHitQTestThresholdInThicknessNormalizedMIPs Class Reference

#include <PFRecHitQTests.h>

Inheritance diagram for PFRecHitQTestThresholdInThicknessNormalizedMIPs:
PFRecHitQTestBase

Public Member Functions

void beginEvent (const edm::Event &event, const edm::EventSetup &iSetup) override
 
 PFRecHitQTestThresholdInThicknessNormalizedMIPs ()
 
 PFRecHitQTestThresholdInThicknessNormalizedMIPs (const edm::ParameterSet &iConfig)
 
bool test (reco::PFRecHit &hit, const CaloTower &rh, bool &clean) override
 
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 HGCRecHit &rh, bool &clean) override
 
bool test (reco::PFRecHit &hit, const HORecHit &rh, bool &clean) override
 
- Public Member Functions inherited from PFRecHitQTestBase
 PFRecHitQTestBase ()=default
 
 PFRecHitQTestBase (const edm::ParameterSet &iConfig)
 
virtual ~PFRecHitQTestBase ()=default
 

Protected Member Functions

bool pass (const reco::PFRecHit &hit, const float mult)
 

Protected Attributes

const HGCalDDDConstantsddd_
 
const std::string geometryInstance_
 
const double mip_
 
const bool recHitEnergy_keV_
 
const double recHitEnergyMultiplier_
 
const double threshold_
 

Detailed Description

Definition at line 606 of file PFRecHitQTests.h.

Constructor & Destructor Documentation

◆ PFRecHitQTestThresholdInThicknessNormalizedMIPs() [1/2]

PFRecHitQTestThresholdInThicknessNormalizedMIPs::PFRecHitQTestThresholdInThicknessNormalizedMIPs ( )
inline

Definition at line 608 of file PFRecHitQTests.h.

◆ PFRecHitQTestThresholdInThicknessNormalizedMIPs() [2/2]

PFRecHitQTestThresholdInThicknessNormalizedMIPs::PFRecHitQTestThresholdInThicknessNormalizedMIPs ( const edm::ParameterSet iConfig)
inline

Definition at line 611 of file PFRecHitQTests.h.

612  : PFRecHitQTestBase(iConfig),
613  geometryInstance_(iConfig.getParameter<std::string>("geometryInstance")),
614  recHitEnergy_keV_(iConfig.getParameter<bool>("recHitEnergyIs_keV")),
615  threshold_(iConfig.getParameter<double>("thresholdInMIPs")),
616  mip_(iConfig.getParameter<double>("mipValueInkeV")),
617  recHitEnergyMultiplier_(iConfig.getParameter<double>("recHitEnergyMultiplier")) {}

Member Function Documentation

◆ beginEvent()

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

Implements PFRecHitQTestBase.

Definition at line 619 of file PFRecHitQTests.h.

619  {
621  iSetup.get<IdealGeometryRecord>().get(geometryInstance_, geoHandle);
622  ddd_ = &(geoHandle->topology().dddConstants());
623  }

References ddd_, HGCalTopology::dddConstants(), geometryInstance_, edm::EventSetup::get(), get, and HGCalGeometry::topology().

◆ pass()

bool PFRecHitQTestThresholdInThicknessNormalizedMIPs::pass ( const reco::PFRecHit hit,
const float  mult 
)
inlineprotected

Definition at line 663 of file PFRecHitQTests.h.

663  {
664  const double hitValueInMIPs = 1e6 * hit.energy() / (mult * mip_);
665  return hitValueInMIPs > threshold_;
666  }

References mip_, VarParsing::mult, and threshold_.

Referenced by test().

◆ test() [1/6]

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

Implements PFRecHitQTestBase.

Definition at line 643 of file PFRecHitQTests.h.

643  {
644  throw cms::Exception("WrongDetector") << "PFRecHitQTestThresholdInMIPs only works for HGCAL!";
645  return false;
646  }

References Exception.

◆ test() [2/6]

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

Implements PFRecHitQTestBase.

Definition at line 625 of file PFRecHitQTests.h.

625  {
626  throw cms::Exception("WrongDetector") << "PFRecHitQTestThresholdInMIPs only works for HGCAL!";
627  return false;
628  }

References Exception.

◆ test() [3/6]

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

Implements PFRecHitQTestBase.

Definition at line 629 of file PFRecHitQTests.h.

629  {
630  throw cms::Exception("WrongDetector") << "PFRecHitQTestThresholdInMIPs only works for HGCAL!";
631  return false;
632  }

References Exception.

◆ test() [4/6]

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

Implements PFRecHitQTestBase.

Definition at line 634 of file PFRecHitQTests.h.

634  {
635  throw cms::Exception("WrongDetector") << "PFRecHitQTestThresholdInMIPs only works for HGCAL!";
636  return false;
637  }

References Exception.

◆ test() [5/6]

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

Implements PFRecHitQTestBase.

Definition at line 648 of file PFRecHitQTests.h.

648  {
649  const double newE =
651  const int wafer = HGCalDetId(rh.detid()).wafer();
652  const float mult = (float)ddd_->waferTypeL(wafer); // 1 for 100um, 2 for 200um, 3 for 300um
653  hit.setEnergy(newE);
654  return pass(hit, mult);
655  }

References ddd_, CaloRecHit::detid(), CaloRecHit::energy(), dqmMemoryStats::float, VarParsing::mult, pass(), recHitEnergy_keV_, recHitEnergyMultiplier_, and HGCalDDDConstants::waferTypeL().

◆ test() [6/6]

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

Implements PFRecHitQTestBase.

Definition at line 638 of file PFRecHitQTests.h.

638  {
639  throw cms::Exception("WrongDetector") << "PFRecHitQTestThresholdInMIPs only works for HGCAL!";
640  return false;
641  }

References Exception.

Member Data Documentation

◆ ddd_

const HGCalDDDConstants* PFRecHitQTestThresholdInThicknessNormalizedMIPs::ddd_
protected

Definition at line 661 of file PFRecHitQTests.h.

Referenced by beginEvent(), and test().

◆ geometryInstance_

const std::string PFRecHitQTestThresholdInThicknessNormalizedMIPs::geometryInstance_
protected

Definition at line 658 of file PFRecHitQTests.h.

Referenced by beginEvent().

◆ mip_

const double PFRecHitQTestThresholdInThicknessNormalizedMIPs::mip_
protected

Definition at line 660 of file PFRecHitQTests.h.

Referenced by pass().

◆ recHitEnergy_keV_

const bool PFRecHitQTestThresholdInThicknessNormalizedMIPs::recHitEnergy_keV_
protected

Definition at line 659 of file PFRecHitQTests.h.

Referenced by test().

◆ recHitEnergyMultiplier_

const double PFRecHitQTestThresholdInThicknessNormalizedMIPs::recHitEnergyMultiplier_
protected

Definition at line 660 of file PFRecHitQTests.h.

Referenced by test().

◆ threshold_

const double PFRecHitQTestThresholdInThicknessNormalizedMIPs::threshold_
protected

Definition at line 660 of file PFRecHitQTests.h.

Referenced by pass().

PFRecHitQTestThresholdInThicknessNormalizedMIPs::ddd_
const HGCalDDDConstants * ddd_
Definition: PFRecHitQTests.h:661
PFRecHitQTestThresholdInThicknessNormalizedMIPs::mip_
const double mip_
Definition: PFRecHitQTests.h:660
HGCalTopology::dddConstants
const HGCalDDDConstants & dddConstants() const
Definition: HGCalTopology.h:98
dqmMemoryStats.float
float
Definition: dqmMemoryStats.py:127
PFRecHitQTestThresholdInThicknessNormalizedMIPs::threshold_
const double threshold_
Definition: PFRecHitQTests.h:660
CaloRecHit::energy
constexpr float energy() const
Definition: CaloRecHit.h:29
PFRecHitQTestThresholdInThicknessNormalizedMIPs::pass
bool pass(const reco::PFRecHit &hit, const float mult)
Definition: PFRecHitQTests.h:663
PFRecHitQTestThresholdInThicknessNormalizedMIPs::geometryInstance_
const std::string geometryInstance_
Definition: PFRecHitQTests.h:658
CaloRecHit::detid
constexpr const DetId & detid() const
Definition: CaloRecHit.h:33
PFRecHitQTestThresholdInThicknessNormalizedMIPs::recHitEnergy_keV_
const bool recHitEnergy_keV_
Definition: PFRecHitQTests.h:659
edm::EventSetup::get
T get() const
Definition: EventSetup.h:73
PFRecHitQTestThresholdInThicknessNormalizedMIPs::recHitEnergyMultiplier_
const double recHitEnergyMultiplier_
Definition: PFRecHitQTests.h:660
edm::ESHandle
Definition: DTSurvey.h:22
HGCalGeometry::topology
const HGCalTopology & topology() const
Definition: HGCalGeometry.h:112
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
PFRecHitQTestBase::PFRecHitQTestBase
PFRecHitQTestBase()=default
get
#define get
edm::ParameterSet::getParameter
T getParameter(std::string const &) const
HGCalDetId
Definition: HGCalDetId.h:8
Exception
Definition: hltDiff.cc:246
VarParsing.mult
mult
Definition: VarParsing.py:659
HGCalDDDConstants::waferTypeL
int waferTypeL(int wafer) const
Definition: HGCalDDDConstants.h:173
IdealGeometryRecord
Definition: IdealGeometryRecord.h:27
hit
Definition: SiStripHitEffFromCalibTree.cc:88