CMS 3D CMS Logo

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
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, 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 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< edm::ParameterSetpsets_
 
std::vector< double > thresholds_
 

Detailed Description

Definition at line 199 of file PFRecHitQTests.h.

Constructor & Destructor Documentation

◆ PFRecHitQTestHCALTimeVsDepth() [1/2]

PFRecHitQTestHCALTimeVsDepth::PFRecHitQTestHCALTimeVsDepth ( )
inline

Definition at line 201 of file PFRecHitQTests.h.

201 {}

◆ PFRecHitQTestHCALTimeVsDepth() [2/2]

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

Definition at line 203 of file PFRecHitQTests.h.

References depths_, maxTimes_, minTimes_, muonDTDigis_cfi::pset, psets_, and thresholds_.

204  : PFRecHitQTestBase(iConfig, cc), psets_(iConfig.getParameter<std::vector<edm::ParameterSet>>("cuts")) {
205  for (auto& pset : psets_) {
206  depths_.push_back(pset.getParameter<int>("depth"));
207  minTimes_.push_back(pset.getParameter<double>("minTime"));
208  maxTimes_.push_back(pset.getParameter<double>("maxTime"));
209  thresholds_.push_back(pset.getParameter<double>("threshold"));
210  }
211  }
T getParameter(std::string const &) const
Definition: ParameterSet.h:303
std::vector< double > minTimes_
uint32_t cc[maxCellsPerHit]
Definition: gpuFishbone.h:49
std::vector< double > maxTimes_
std::vector< double > thresholds_
PFRecHitQTestBase()=default
std::vector< int > depths_
std::vector< edm::ParameterSet > psets_

Member Function Documentation

◆ beginEvent()

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

Implements PFRecHitQTestBase.

Definition at line 213 of file PFRecHitQTests.h.

213 {}

◆ test() [1/7]

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

Implements PFRecHitQTestBase.

Definition at line 215 of file PFRecHitQTests.h.

Referenced by test().

215 { return true; }

◆ test() [2/7]

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

Implements PFRecHitQTestBase.

Definition at line 216 of file PFRecHitQTests.h.

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

216  {
217  return test(rh.detid(), rh.energy(), rh.time(), clean);
218  }
constexpr const DetId & detid() const
Definition: CaloRecHit.h:33
constexpr float energy() const
Definition: CaloRecHit.h:29
static void clean(char *s)
constexpr float time() const
Definition: CaloRecHit.h:31
bool test(reco::PFRecHit &hit, const EcalRecHit &rh, bool &clean, bool fullReadOut) override

◆ test() [3/7]

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

Implements PFRecHitQTestBase.

Definition at line 220 of file PFRecHitQTests.h.

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

220  {
221  return test(rh.detid(), rh.energy(), rh.time(), clean);
222  }
constexpr const DetId & detid() const
Definition: CaloRecHit.h:33
constexpr float energy() const
Definition: CaloRecHit.h:29
static void clean(char *s)
constexpr float time() const
Definition: CaloRecHit.h:31
bool test(reco::PFRecHit &hit, const EcalRecHit &rh, bool &clean, bool fullReadOut) override

◆ test() [4/7]

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

Implements PFRecHitQTestBase.

Definition at line 223 of file PFRecHitQTests.h.

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

223  {
224  return test(rh.detid(), rh.energy(), rh.time(), clean);
225  }
constexpr const DetId & detid() const
Definition: CaloRecHit.h:33
constexpr float energy() const
Definition: CaloRecHit.h:29
static void clean(char *s)
constexpr float time() const
Definition: CaloRecHit.h:31
bool test(reco::PFRecHit &hit, const EcalRecHit &rh, bool &clean, bool fullReadOut) override

◆ test() [5/7]

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

Implements PFRecHitQTestBase.

Definition at line 227 of file PFRecHitQTests.h.

227 { return true; }

◆ test() [6/7]

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

Implements PFRecHitQTestBase.

Definition at line 229 of file PFRecHitQTests.h.

229 { return true; }

◆ test() [7/7]

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

Definition at line 238 of file PFRecHitQTests.h.

References clean(), HcalDetId::depth(), depths_, HCALHighEnergyHPDFilter_cfi::energy, mps_fire::i, maxTimes_, minTimes_, or, thresholds_, and protons_cff::time.

238  {
239  HcalDetId detid(aDETID);
240  for (unsigned int i = 0; i < depths_.size(); ++i) {
241  if (detid.depth() == depths_[i]) {
242  if ((time < minTimes_[i] or time > maxTimes_[i]) and energy > thresholds_[i]) {
243  clean = true;
244  return false;
245  }
246  break;
247  }
248  }
249  return true;
250  }
std::vector< double > minTimes_
std::vector< double > maxTimes_
std::vector< double > thresholds_
static void clean(char *s)
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< int > depths_

Member Data Documentation

◆ depths_

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

Definition at line 233 of file PFRecHitQTests.h.

Referenced by PFRecHitQTestHCALTimeVsDepth(), and test().

◆ maxTimes_

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

Definition at line 235 of file PFRecHitQTests.h.

Referenced by PFRecHitQTestHCALTimeVsDepth(), and test().

◆ minTimes_

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

Definition at line 234 of file PFRecHitQTests.h.

Referenced by PFRecHitQTestHCALTimeVsDepth(), and test().

◆ psets_

std::vector<edm::ParameterSet> PFRecHitQTestHCALTimeVsDepth::psets_
protected

Definition at line 232 of file PFRecHitQTests.h.

Referenced by PFRecHitQTestHCALTimeVsDepth().

◆ thresholds_

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

Definition at line 236 of file PFRecHitQTests.h.

Referenced by PFRecHitQTestHCALTimeVsDepth(), and test().