test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Protected Attributes
PFRecHitQTestHOThreshold Class Reference

#include <PFRecHitQTests.h>

Inheritance diagram for PFRecHitQTestHOThreshold:
PFRecHitQTestBase

Public Member Functions

void beginEvent (const edm::Event &event, const edm::EventSetup &iSetup)
 
 PFRecHitQTestHOThreshold ()
 
 PFRecHitQTestHOThreshold (const edm::ParameterSet &iConfig)
 
bool test (reco::PFRecHit &hit, const EcalRecHit &rh, bool &clean)
 
bool test (reco::PFRecHit &hit, const HBHERecHit &rh, bool &clean)
 
bool test (reco::PFRecHit &hit, const HFRecHit &rh, bool &clean)
 
bool test (reco::PFRecHit &hit, const HORecHit &rh, bool &clean)
 
bool test (reco::PFRecHit &hit, const CaloTower &rh, bool &clean)
 
- Public Member Functions inherited from PFRecHitQTestBase
 PFRecHitQTestBase ()
 
 PFRecHitQTestBase (const edm::ParameterSet &iConfig)
 

Protected Attributes

double threshold0_
 
double threshold12_
 

Detailed Description

Definition at line 150 of file PFRecHitQTests.h.

Constructor & Destructor Documentation

PFRecHitQTestHOThreshold::PFRecHitQTestHOThreshold ( )
inline

Definition at line 152 of file PFRecHitQTests.h.

152  {
153 
154  }
PFRecHitQTestHOThreshold::PFRecHitQTestHOThreshold ( const edm::ParameterSet iConfig)
inline

Definition at line 156 of file PFRecHitQTests.h.

References edm::ParameterSet::getParameter(), threshold0_, and threshold12_.

156  :
157  PFRecHitQTestBase(iConfig)
158  {
159  threshold0_ = iConfig.getParameter<double>("threshold_ring0");
160  threshold12_ = iConfig.getParameter<double>("threshold_ring12");
161  }
T getParameter(std::string const &) const

Member Function Documentation

void PFRecHitQTestHOThreshold::beginEvent ( const edm::Event event,
const edm::EventSetup iSetup 
)
inlinevirtual

Implements PFRecHitQTestBase.

Definition at line 163 of file PFRecHitQTests.h.

163  {
164  }
bool PFRecHitQTestHOThreshold::test ( reco::PFRecHit hit,
const EcalRecHit rh,
bool &  clean 
)
inlinevirtual

Implements PFRecHitQTestBase.

Definition at line 166 of file PFRecHitQTests.h.

166  {
167  return true;
168  }
bool PFRecHitQTestHOThreshold::test ( reco::PFRecHit hit,
const HBHERecHit rh,
bool &  clean 
)
inlinevirtual

Implements PFRecHitQTestBase.

Definition at line 169 of file PFRecHitQTests.h.

169  {
170  return true;
171  }
bool PFRecHitQTestHOThreshold::test ( reco::PFRecHit hit,
const HFRecHit rh,
bool &  clean 
)
inlinevirtual

Implements PFRecHitQTestBase.

Definition at line 173 of file PFRecHitQTests.h.

173  {
174  return true;
175  }
bool PFRecHitQTestHOThreshold::test ( reco::PFRecHit hit,
const HORecHit rh,
bool &  clean 
)
inlinevirtual

Implements PFRecHitQTestBase.

Definition at line 176 of file PFRecHitQTests.h.

References funct::abs(), CaloRecHit::detid(), cond::rpcobgas::detid, reco::PFRecHit::energy(), threshold0_, and threshold12_.

176  {
177  HcalDetId detid(rh.detid());
178  if (abs(detid.ieta())<=4 && hit.energy()>threshold0_)
179  return true;
180  if (abs(detid.ieta())>4 && hit.energy()>threshold12_)
181  return true;
182 
183  return false;
184  }
const DetId & detid() const
Definition: CaloRecHit.h:20
Abs< T >::type abs(const T &t)
Definition: Abs.h:22
double energy() const
rechit energy
Definition: PFRecHit.h:107
bool PFRecHitQTestHOThreshold::test ( reco::PFRecHit hit,
const CaloTower rh,
bool &  clean 
)
inlinevirtual

Implements PFRecHitQTestBase.

Definition at line 186 of file PFRecHitQTests.h.

186  {
187  return true;
188  }

Member Data Documentation

double PFRecHitQTestHOThreshold::threshold0_
protected

Definition at line 191 of file PFRecHitQTests.h.

Referenced by PFRecHitQTestHOThreshold(), and test().

double PFRecHitQTestHOThreshold::threshold12_
protected

Definition at line 192 of file PFRecHitQTests.h.

Referenced by PFRecHitQTestHOThreshold(), and test().