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 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 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 189 of file PFRecHitQTests.h.

Constructor & Destructor Documentation

◆ PFRecHitQTestHCALTimeVsDepth() [1/2]

PFRecHitQTestHCALTimeVsDepth::PFRecHitQTestHCALTimeVsDepth ( )
inline

Definition at line 191 of file PFRecHitQTests.h.

191 {}

◆ PFRecHitQTestHCALTimeVsDepth() [2/2]

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

Definition at line 193 of file PFRecHitQTests.h.

193  : PFRecHitQTestBase(iConfig) {
194  std::vector<edm::ParameterSet> psets = iConfig.getParameter<std::vector<edm::ParameterSet> >("cuts");
195  for (auto& pset : psets) {
196  depths_.push_back(pset.getParameter<int>("depth"));
197  minTimes_.push_back(pset.getParameter<double>("minTime"));
198  maxTimes_.push_back(pset.getParameter<double>("maxTime"));
199  thresholds_.push_back(pset.getParameter<double>("threshold"));
200  }
201  }

References depths_, edm::ParameterSet::getParameter(), maxTimes_, minTimes_, muonDTDigis_cfi::pset, and thresholds_.

Member Function Documentation

◆ beginEvent()

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

Implements PFRecHitQTestBase.

Definition at line 203 of file PFRecHitQTests.h.

203 {}

◆ test() [1/7]

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

Implements PFRecHitQTestBase.

Definition at line 217 of file PFRecHitQTests.h.

217 { return true; }

◆ test() [2/7]

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

Implements PFRecHitQTestBase.

Definition at line 205 of file PFRecHitQTests.h.

205 { return true; }

Referenced by test().

◆ test() [3/7]

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

Implements PFRecHitQTestBase.

Definition at line 206 of file PFRecHitQTests.h.

206  {
207  return test(rh.detid(), rh.energy(), rh.time(), clean);
208  }

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

◆ test() [4/7]

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

Implements PFRecHitQTestBase.

Definition at line 210 of file PFRecHitQTests.h.

210  {
211  return test(rh.detid(), rh.energy(), rh.time(), clean);
212  }

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

◆ test() [5/7]

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

Implements PFRecHitQTestBase.

Definition at line 219 of file PFRecHitQTests.h.

219 { return true; }

◆ test() [6/7]

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

Implements PFRecHitQTestBase.

Definition at line 213 of file PFRecHitQTests.h.

213  {
214  return test(rh.detid(), rh.energy(), rh.time(), clean);
215  }

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

◆ test() [7/7]

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

Definition at line 227 of file PFRecHitQTests.h.

227  {
228  HcalDetId detid(aDETID);
229  for (unsigned int i = 0; i < depths_.size(); ++i) {
230  if (detid.depth() == depths_[i]) {
231  if ((time < minTimes_[i] or time > maxTimes_[i]) and energy > thresholds_[i]) {
232  clean = true;
233  return false;
234  }
235  break;
236  }
237  }
238  return true;
239  }

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

Member Data Documentation

◆ depths_

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

Definition at line 222 of file PFRecHitQTests.h.

Referenced by PFRecHitQTestHCALTimeVsDepth(), and test().

◆ maxTimes_

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

Definition at line 224 of file PFRecHitQTests.h.

Referenced by PFRecHitQTestHCALTimeVsDepth(), and test().

◆ minTimes_

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

Definition at line 223 of file PFRecHitQTests.h.

Referenced by PFRecHitQTestHCALTimeVsDepth(), and test().

◆ thresholds_

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

Definition at line 225 of file PFRecHitQTests.h.

Referenced by PFRecHitQTestHCALTimeVsDepth(), and test().

mps_fire.i
i
Definition: mps_fire.py:355
CaloRecHit::energy
constexpr float energy() const
Definition: CaloRecHit.h:29
CaloRecHit::detid
constexpr const DetId & detid() const
Definition: CaloRecHit.h:33
PFRecHitQTestHCALTimeVsDepth::depths_
std::vector< int > depths_
Definition: PFRecHitQTests.h:222
HCALHighEnergyHPDFilter_cfi.energy
energy
Definition: HCALHighEnergyHPDFilter_cfi.py:5
PFRecHitQTestHCALTimeVsDepth::maxTimes_
std::vector< double > maxTimes_
Definition: PFRecHitQTests.h:224
CaloRecHit::time
constexpr float time() const
Definition: CaloRecHit.h:31
PFRecHitQTestHCALTimeVsDepth::test
bool test(reco::PFRecHit &hit, const EcalRecHit &rh, bool &clean, bool fullReadOut) override
Definition: PFRecHitQTests.h:205
HcalDetId
Definition: HcalDetId.h:12
PFRecHitQTestBase::PFRecHitQTestBase
PFRecHitQTestBase()=default
PFRecHitQTestHCALTimeVsDepth::thresholds_
std::vector< double > thresholds_
Definition: PFRecHitQTests.h:225
edm::ParameterSet::getParameter
T getParameter(std::string const &) const
PFRecHitQTestHCALTimeVsDepth::minTimes_
std::vector< double > minTimes_
Definition: PFRecHitQTests.h:223
clean
static void clean(char *s)
Definition: ConnectionManager.cc:13
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
ntuplemaker.time
time
Definition: ntuplemaker.py:310
muonDTDigis_cfi.pset
pset
Definition: muonDTDigis_cfi.py:27