CMS 3D CMS Logo

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

#include <PFRecHitQTests.h>

Inheritance diagram for PFRecHitQTestHCALTimeVsDepth:
PFRecHitQTestBase

Public Member Functions

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

Protected Member Functions

bool test (unsigned aDETID, double energy, double time, bool &clean)
 

Protected Attributes

std::vector< int > depths_
 
std::vector< double > maxTimes_
 
std::vector< double > minTimes_
 
std::vector< double > thresholds_
 

Detailed Description

Definition at line 245 of file PFRecHitQTests.h.

Constructor & Destructor Documentation

PFRecHitQTestHCALTimeVsDepth::PFRecHitQTestHCALTimeVsDepth ( )
inline

Definition at line 247 of file PFRecHitQTests.h.

247  {
248  }
PFRecHitQTestHCALTimeVsDepth::PFRecHitQTestHCALTimeVsDepth ( const edm::ParameterSet iConfig)
inline

Definition at line 250 of file PFRecHitQTests.h.

References edm::ParameterSet::getParameter(), and muonDTDigis_cfi::pset.

250  :
251  PFRecHitQTestBase(iConfig)
252  {
253  std::vector<edm::ParameterSet> psets = iConfig.getParameter<std::vector<edm::ParameterSet> >("cuts");
254  for (auto & pset : psets) {
255  depths_.push_back(pset.getParameter<int>("depth"));
256  minTimes_.push_back(pset.getParameter<double>("minTime"));
257  maxTimes_.push_back(pset.getParameter<double>("maxTime"));
258  thresholds_.push_back(pset.getParameter<double>("threshold"));
259  }
260  }
T getParameter(std::string const &) const
std::vector< double > minTimes_
std::vector< double > maxTimes_
std::vector< double > thresholds_
PFRecHitQTestBase()=default
std::vector< int > depths_

Member Function Documentation

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

Implements PFRecHitQTestBase.

Definition at line 262 of file PFRecHitQTests.h.

262  {
263  }
bool PFRecHitQTestHCALTimeVsDepth::test ( reco::PFRecHit hit,
const EcalRecHit rh,
bool &  clean,
bool  fullReadOut 
)
inlineoverridevirtual

Implements PFRecHitQTestBase.

Definition at line 265 of file PFRecHitQTests.h.

265  {
266  return true;
267  }
bool PFRecHitQTestHCALTimeVsDepth::test ( reco::PFRecHit hit,
const HBHERecHit rh,
bool &  clean 
)
inlineoverridevirtual

Implements PFRecHitQTestBase.

Definition at line 268 of file PFRecHitQTests.h.

References clean, CaloRecHit::detid(), CaloRecHit::energy(), PFRecHitQTestThreshold::test(), and CaloRecHit::time().

268  {
269  return test(rh.detid(), rh.energy(), rh.time(), clean);
270  }
constexpr float energy() const
Definition: CaloRecHit.h:31
constexpr const DetId & detid() const
Definition: CaloRecHit.h:35
constexpr float time() const
Definition: CaloRecHit.h:33
std::vector< T * > clean
Definition: MVATrainer.cc:154
bool test(reco::PFRecHit &hit, const EcalRecHit &rh, bool &clean, bool fullReadOut) override
bool PFRecHitQTestHCALTimeVsDepth::test ( reco::PFRecHit hit,
const HFRecHit rh,
bool &  clean 
)
inlineoverridevirtual

Implements PFRecHitQTestBase.

Definition at line 272 of file PFRecHitQTests.h.

References clean, CaloRecHit::detid(), CaloRecHit::energy(), PFRecHitQTestThreshold::test(), and CaloRecHit::time().

272  {
273  return test(rh.detid(), rh.energy(), rh.time(), clean);
274  }
constexpr float energy() const
Definition: CaloRecHit.h:31
constexpr const DetId & detid() const
Definition: CaloRecHit.h:35
constexpr float time() const
Definition: CaloRecHit.h:33
std::vector< T * > clean
Definition: MVATrainer.cc:154
bool test(reco::PFRecHit &hit, const EcalRecHit &rh, bool &clean, bool fullReadOut) override
bool PFRecHitQTestHCALTimeVsDepth::test ( reco::PFRecHit hit,
const HORecHit rh,
bool &  clean 
)
inlineoverridevirtual

Implements PFRecHitQTestBase.

Definition at line 275 of file PFRecHitQTests.h.

References clean, CaloRecHit::detid(), CaloRecHit::energy(), PFRecHitQTestThreshold::test(), and CaloRecHit::time().

275  {
276  return test(rh.detid(), rh.energy(), rh.time(), clean);
277  }
constexpr float energy() const
Definition: CaloRecHit.h:31
constexpr const DetId & detid() const
Definition: CaloRecHit.h:35
constexpr float time() const
Definition: CaloRecHit.h:33
std::vector< T * > clean
Definition: MVATrainer.cc:154
bool test(reco::PFRecHit &hit, const EcalRecHit &rh, bool &clean, bool fullReadOut) override
bool PFRecHitQTestHCALTimeVsDepth::test ( reco::PFRecHit hit,
const CaloTower rh,
bool &  clean 
)
inlineoverridevirtual

Implements PFRecHitQTestBase.

Definition at line 279 of file PFRecHitQTests.h.

279  {
280  return true;
281  }
bool PFRecHitQTestHCALTimeVsDepth::test ( reco::PFRecHit hit,
const HGCRecHit rh,
bool &  clean 
)
inlineoverridevirtual

Implements PFRecHitQTestBase.

Definition at line 283 of file PFRecHitQTests.h.

283  {
284  return true;
285  }
bool PFRecHitQTestHCALTimeVsDepth::test ( unsigned  aDETID,
double  energy,
double  time,
bool &  clean 
)
inlineprotected

Definition at line 293 of file PFRecHitQTests.h.

References HcalDetId::depth(), mps_fire::i, and or.

293  {
294  HcalDetId detid(aDETID);
295  for (unsigned int i=0;i<depths_.size();++i) {
296  if (detid.depth() == depths_[i]) {
297  if ((time <minTimes_[i] or time >maxTimes_[i] ) and energy>thresholds_[i])
298  {
299  clean=true;
300  return false;
301  }
302  break;
303  }
304  }
305  return true;
306  }
std::vector< double > minTimes_
std::vector< double > maxTimes_
std::vector< double > thresholds_
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
std::vector< T * > clean
Definition: MVATrainer.cc:154
std::vector< int > depths_

Member Data Documentation

std::vector<int> PFRecHitQTestHCALTimeVsDepth::depths_
protected

Definition at line 288 of file PFRecHitQTests.h.

std::vector<double> PFRecHitQTestHCALTimeVsDepth::maxTimes_
protected

Definition at line 290 of file PFRecHitQTests.h.

std::vector<double> PFRecHitQTestHCALTimeVsDepth::minTimes_
protected

Definition at line 289 of file PFRecHitQTests.h.

std::vector<double> PFRecHitQTestHCALTimeVsDepth::thresholds_
protected

Definition at line 291 of file PFRecHitQTests.h.