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
PFRecHitQTestECAL Class Reference

#include <PFRecHitQTests.h>

Inheritance diagram for PFRecHitQTestECAL:
PFRecHitQTestBase

Public Member Functions

void beginEvent (const edm::Event &event, const edm::EventSetup &iSetup)
 
 PFRecHitQTestECAL ()
 
 PFRecHitQTestECAL (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

bool skipTTRecoveredHits_
 
double thresholdCleaning_
 
bool timingCleaning_
 
bool topologicalCleaning_
 

Detailed Description

Definition at line 199 of file PFRecHitQTests.h.

Constructor & Destructor Documentation

PFRecHitQTestECAL::PFRecHitQTestECAL ( )
inline

Definition at line 201 of file PFRecHitQTests.h.

201  {
202 
203  }
PFRecHitQTestECAL::PFRecHitQTestECAL ( const edm::ParameterSet iConfig)
inline

Definition at line 205 of file PFRecHitQTests.h.

References edm::ParameterSet::getParameter(), skipTTRecoveredHits_, thresholdCleaning_, timingCleaning_, and topologicalCleaning_.

205  :
206  PFRecHitQTestBase(iConfig)
207  {
208  thresholdCleaning_ = iConfig.getParameter<double>("cleaningThreshold");
209  timingCleaning_ = iConfig.getParameter<bool>("timingCleaning");
210  topologicalCleaning_ = iConfig.getParameter<bool>("topologicalCleaning");
211  skipTTRecoveredHits_ = iConfig.getParameter<bool>("skipTTRecoveredHits");
212 
213  }
T getParameter(std::string const &) const

Member Function Documentation

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

Implements PFRecHitQTestBase.

Definition at line 215 of file PFRecHitQTests.h.

215  {
216  }
bool PFRecHitQTestECAL::test ( reco::PFRecHit hit,
const EcalRecHit rh,
bool &  clean 
)
inlinevirtual

Implements PFRecHitQTestBase.

Definition at line 218 of file PFRecHitQTests.h.

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

218  {
220  {
221  clean=true;
222  return false;
223  }
224  if ( timingCleaning_ && rh.energy() > thresholdCleaning_ &&
226  clean=true;
227  return false;
228  }
229 
230  if ( topologicalCleaning_ &&
231  ( rh.checkFlag(EcalRecHit::kWeird) ||
233  clean=true;
234  return false;
235  }
236 
237  return true;
238  }
bool checkFlag(int flag) const
check if the flag is true
Definition: EcalRecHit.h:176
float energy() const
Definition: EcalRecHit.h:68
std::vector< T * > clean
Definition: MVATrainer.cc:156
bool PFRecHitQTestECAL::test ( reco::PFRecHit hit,
const HBHERecHit rh,
bool &  clean 
)
inlinevirtual

Implements PFRecHitQTestBase.

Definition at line 240 of file PFRecHitQTests.h.

240  {
241  return true;
242  }
bool PFRecHitQTestECAL::test ( reco::PFRecHit hit,
const HFRecHit rh,
bool &  clean 
)
inlinevirtual

Implements PFRecHitQTestBase.

Definition at line 244 of file PFRecHitQTests.h.

244  {
245  return true;
246 
247  }
bool PFRecHitQTestECAL::test ( reco::PFRecHit hit,
const HORecHit rh,
bool &  clean 
)
inlinevirtual

Implements PFRecHitQTestBase.

Definition at line 249 of file PFRecHitQTests.h.

249  {
250  return true;
251  }
bool PFRecHitQTestECAL::test ( reco::PFRecHit hit,
const CaloTower rh,
bool &  clean 
)
inlinevirtual

Implements PFRecHitQTestBase.

Definition at line 253 of file PFRecHitQTests.h.

253  {
254  return true;
255 
256  }

Member Data Documentation

bool PFRecHitQTestECAL::skipTTRecoveredHits_
protected

Definition at line 263 of file PFRecHitQTests.h.

Referenced by PFRecHitQTestECAL(), and test().

double PFRecHitQTestECAL::thresholdCleaning_
protected

Definition at line 260 of file PFRecHitQTests.h.

Referenced by PFRecHitQTestECAL(), and test().

bool PFRecHitQTestECAL::timingCleaning_
protected

Definition at line 261 of file PFRecHitQTests.h.

Referenced by PFRecHitQTestECAL(), and test().

bool PFRecHitQTestECAL::topologicalCleaning_
protected

Definition at line 262 of file PFRecHitQTests.h.

Referenced by PFRecHitQTestECAL(), and test().