CMS 3D CMS Logo

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

#include <PFRecHitQTests.h>

Inheritance diagram for PFRecHitQTestECAL:
PFRecHitQTestBase

Public Member Functions

void beginEvent (const edm::Event &event, const edm::EventSetup &iSetup) override
 
 PFRecHitQTestECAL ()
 
 PFRecHitQTestECAL (const edm::ParameterSet &iConfig, edm::ConsumesCollector &cc)
 
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, edm::ConsumesCollector &cc)
 
virtual ~PFRecHitQTestBase ()=default
 

Protected Attributes

bool skipTTRecoveredHits_
 
double thresholdCleaning_
 
bool timingCleaning_
 
bool topologicalCleaning_
 

Detailed Description

Definition at line 436 of file PFRecHitQTests.h.

Constructor & Destructor Documentation

◆ PFRecHitQTestECAL() [1/2]

PFRecHitQTestECAL::PFRecHitQTestECAL ( )
inline

Definition at line 438 of file PFRecHitQTests.h.

438 {}

◆ PFRecHitQTestECAL() [2/2]

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

Definition at line 440 of file PFRecHitQTests.h.

441  : PFRecHitQTestBase(iConfig, cc),
442  thresholdCleaning_(iConfig.getParameter<double>("cleaningThreshold")),
443  timingCleaning_(iConfig.getParameter<bool>("timingCleaning")),
444  topologicalCleaning_(iConfig.getParameter<bool>("topologicalCleaning")),
445  skipTTRecoveredHits_(iConfig.getParameter<bool>("skipTTRecoveredHits")) {}

Member Function Documentation

◆ beginEvent()

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

Implements PFRecHitQTestBase.

Definition at line 447 of file PFRecHitQTests.h.

447 {}

◆ test() [1/6]

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

Implements PFRecHitQTestBase.

Definition at line 473 of file PFRecHitQTests.h.

473 { return true; }

◆ test() [2/6]

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

Implements PFRecHitQTestBase.

Definition at line 449 of file PFRecHitQTests.h.

449  {
451  clean = true;
452  return false;
453  }
455  clean = true;
456  return false;
457  }
458 
460  clean = true;
461  return false;
462  }
463 
464  return true;
465  }

References EcalRecHit::checkFlag(), clean(), EcalRecHit::energy(), EcalRecHit::kDiWeird, EcalRecHit::kOutOfTime, EcalRecHit::kTowerRecovered, EcalRecHit::kWeird, or, skipTTRecoveredHits_, thresholdCleaning_, timingCleaning_, and topologicalCleaning_.

◆ test() [3/6]

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

Implements PFRecHitQTestBase.

Definition at line 467 of file PFRecHitQTests.h.

467 { return true; }

◆ test() [4/6]

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

Implements PFRecHitQTestBase.

Definition at line 469 of file PFRecHitQTests.h.

469 { return true; }

◆ test() [5/6]

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

Implements PFRecHitQTestBase.

Definition at line 475 of file PFRecHitQTests.h.

475 { return true; }

◆ test() [6/6]

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

Implements PFRecHitQTestBase.

Definition at line 471 of file PFRecHitQTests.h.

471 { return true; }

Member Data Documentation

◆ skipTTRecoveredHits_

bool PFRecHitQTestECAL::skipTTRecoveredHits_
protected

Definition at line 481 of file PFRecHitQTests.h.

Referenced by test().

◆ thresholdCleaning_

double PFRecHitQTestECAL::thresholdCleaning_
protected

Definition at line 478 of file PFRecHitQTests.h.

Referenced by test().

◆ timingCleaning_

bool PFRecHitQTestECAL::timingCleaning_
protected

Definition at line 479 of file PFRecHitQTests.h.

Referenced by test().

◆ topologicalCleaning_

bool PFRecHitQTestECAL::topologicalCleaning_
protected

Definition at line 480 of file PFRecHitQTests.h.

Referenced by test().

EcalRecHit::energy
float energy() const
Definition: EcalRecHit.h:68
EcalRecHit::kTowerRecovered
Definition: EcalRecHit.h:30
PFRecHitQTestECAL::topologicalCleaning_
bool topologicalCleaning_
Definition: PFRecHitQTests.h:480
PFRecHitQTestECAL::skipTTRecoveredHits_
bool skipTTRecoveredHits_
Definition: PFRecHitQTests.h:481
EcalRecHit::checkFlag
bool checkFlag(int flag) const
check if the flag is true
Definition: EcalRecHit.h:187
EcalRecHit::kOutOfTime
Definition: EcalRecHit.h:23
PFRecHitQTestBase::PFRecHitQTestBase
PFRecHitQTestBase()=default
EcalRecHit::kWeird
Definition: EcalRecHit.h:35
cc
clean
static void clean(char *s)
Definition: ConnectionManager.cc:13
PFRecHitQTestECAL::timingCleaning_
bool timingCleaning_
Definition: PFRecHitQTests.h:479
or
The Signals That Services Can Subscribe To This is based on ActivityRegistry and is current per Services can connect to the signals distributed by the ActivityRegistry in order to monitor the activity of the application Each possible callback has some defined which we here list in angle e< void, edm::EventID const &, edm::Timestamp const & > We also list in braces which AR_WATCH_USING_METHOD_ is used for those or
Definition: Activities.doc:12
edm::ParameterSet::getParameter
T getParameter(std::string const &) const
Definition: ParameterSet.h:303
EcalRecHit::kDiWeird
Definition: EcalRecHit.h:36
PFRecHitQTestECAL::thresholdCleaning_
double thresholdCleaning_
Definition: PFRecHitQTests.h:478