CMS 3D CMS Logo

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

#include <HcalHitAnalyzer.h>

Inheritance diagram for HcalHitAnalyzer:
edm::EDAnalyzer

Public Member Functions

virtual void analyze (edm::Event const &e, edm::EventSetup const &c)
 
 HcalHitAnalyzer (edm::ParameterSet const &conf)
 
- Public Member Functions inherited from edm::EDAnalyzer
 EDAnalyzer ()
 
std::string workerType () const
 
virtual ~EDAnalyzer ()
 

Private Attributes

CaloHitAnalyzer hbheAnalyzer_
 
HBHEHitFilter hbheFilter_
 
CaloHitAnalyzer hfAnalyzer_
 
HFHitFilter hfFilter_
 
CaloHitAnalyzer hoAnalyzer_
 
HOHitFilter hoFilter_
 
HcalSimParameterMap simParameterMap_
 
CaloHitAnalyzer zdcAnalyzer_
 
ZDCHitFilter zdcFilter_
 

Additional Inherited Members

- Public Types inherited from edm::EDAnalyzer
typedef EDAnalyzer ModuleType
 
typedef WorkerT< EDAnalyzerWorkerType
 
- Static Public Member Functions inherited from edm::EDAnalyzer
static const std::string & baseType ()
 
static void fillDescriptions (ConfigurationDescriptions &descriptions)
 
static void prevalidate (ConfigurationDescriptions &)
 
- Protected Member Functions inherited from edm::EDAnalyzer
CurrentProcessingContext const * currentContext () const
 

Detailed Description

Compares HCAL RecHits to SimHit

Rick Wilkinson, Caltech

Definition at line 22 of file HcalHitAnalyzer.h.

Constructor & Destructor Documentation

HcalHitAnalyzer::HcalHitAnalyzer ( edm::ParameterSet const &  conf)
explicit

Definition at line 7 of file HcalHitAnalyzer.cc.

9  hbheFilter_(),
10  hoFilter_(),
11  hfFilter_(true),
12  zdcFilter_(),
17 {
18 }
ZDCHitFilter zdcFilter_
CaloHitAnalyzer hfAnalyzer_
HcalSimParameterMap simParameterMap_
HOHitFilter hoFilter_
CaloHitAnalyzer hbheAnalyzer_
CaloHitAnalyzer hoAnalyzer_
tuple conf
Definition: dbtoconf.py:185
HBHEHitFilter hbheFilter_
HFHitFilter hfFilter_
CaloHitAnalyzer zdcAnalyzer_

Member Function Documentation

void HcalHitAnalyzer::analyze ( edm::Event const &  e,
edm::EventSetup const &  c 
)
virtual

Implements edm::EDAnalyzer.

Definition at line 33 of file HcalHitAnalyzer.cc.

References alignCSCRings::e, CaloHitAnalyzer::fillHits(), edm::Event::getByLabel(), hbheAnalyzer_, hfAnalyzer_, hoAnalyzer_, and edm::Handle< T >::product().

33  {
34  // Step A: Get Inputs
36  e.getByLabel("mix", "g4SimHitsHcalHits",cf);
37  //e.getByLabel("mix", "ZDCHits", zdccf);
38 
39  // test access to SimHits for HcalHits and ZDC hits
40  std::auto_ptr<MixCollection<PCaloHit> > hits(new MixCollection<PCaloHit>(cf.product()));
41  //std::auto_ptr<MixCollection<PCaloHit> > zdcHits(new MixCollection<PCaloHit>(zdccf.product()));
42  hbheAnalyzer_.fillHits(*hits);
43  //hoAnalyzer_.fillHits(*hits);
44  //hfAnalyzer_.fillHits(*hits);
45  //zdcAnalyzer_.fillHits(*hits);
46  HcalHitAnalyzerImpl::analyze<HBHERecHitCollection>(e, hbheAnalyzer_);
47  HcalHitAnalyzerImpl::analyze<HORecHitCollection>(e, hoAnalyzer_);
48  HcalHitAnalyzerImpl::analyze<HFRecHitCollection>(e, hfAnalyzer_);
49  //HcalHitAnalyzerImpl::analyze<ZDCRecHitCollection>(e, zdcAnalyzer_);
50 }
CaloHitAnalyzer hfAnalyzer_
void fillHits(MixCollection< PCaloHit > &hits)
should be called each event
CaloHitAnalyzer hbheAnalyzer_
CaloHitAnalyzer hoAnalyzer_
T const * product() const
Definition: Handle.h:74

Member Data Documentation

CaloHitAnalyzer HcalHitAnalyzer::hbheAnalyzer_
private

Definition at line 36 of file HcalHitAnalyzer.h.

Referenced by analyze().

HBHEHitFilter HcalHitAnalyzer::hbheFilter_
private

Definition at line 32 of file HcalHitAnalyzer.h.

CaloHitAnalyzer HcalHitAnalyzer::hfAnalyzer_
private

Definition at line 38 of file HcalHitAnalyzer.h.

Referenced by analyze().

HFHitFilter HcalHitAnalyzer::hfFilter_
private

Definition at line 34 of file HcalHitAnalyzer.h.

CaloHitAnalyzer HcalHitAnalyzer::hoAnalyzer_
private

Definition at line 37 of file HcalHitAnalyzer.h.

Referenced by analyze().

HOHitFilter HcalHitAnalyzer::hoFilter_
private

Definition at line 33 of file HcalHitAnalyzer.h.

HcalSimParameterMap HcalHitAnalyzer::simParameterMap_
private

Definition at line 31 of file HcalHitAnalyzer.h.

CaloHitAnalyzer HcalHitAnalyzer::zdcAnalyzer_
private

Definition at line 39 of file HcalHitAnalyzer.h.

ZDCHitFilter HcalHitAnalyzer::zdcFilter_
private

Definition at line 35 of file HcalHitAnalyzer.h.