CMS 3D CMS Logo

Public Member Functions | Private Attributes

HcalHitAnalyzer Class Reference

#include <HcalHitAnalyzer.h>

Inheritance diagram for HcalHitAnalyzer:
edm::EDAnalyzer

List of all members.

Public Member Functions

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

Private Attributes

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

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]

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().

                                                                       {
   // Step A: Get Inputs
  edm::Handle<CrossingFrame<PCaloHit> > cf, zdccf;
  e.getByLabel("mix", "g4SimHitsHcalHits",cf);
  //e.getByLabel("mix", "ZDCHits", zdccf);

  // test access to SimHits for HcalHits and ZDC hits
  std::auto_ptr<MixCollection<PCaloHit> > hits(new MixCollection<PCaloHit>(cf.product()));
  //std::auto_ptr<MixCollection<PCaloHit> > zdcHits(new MixCollection<PCaloHit>(zdccf.product()));
  hbheAnalyzer_.fillHits(*hits); 
  //hoAnalyzer_.fillHits(*hits);
  //hfAnalyzer_.fillHits(*hits);
  //zdcAnalyzer_.fillHits(*hits);
  HcalHitAnalyzerImpl::analyze<HBHERecHitCollection>(e, hbheAnalyzer_);
  HcalHitAnalyzerImpl::analyze<HORecHitCollection>(e, hoAnalyzer_);
  HcalHitAnalyzerImpl::analyze<HFRecHitCollection>(e, hfAnalyzer_);
  //HcalHitAnalyzerImpl::analyze<ZDCRecHitCollection>(e, zdcAnalyzer_);
}

Member Data Documentation

Definition at line 36 of file HcalHitAnalyzer.h.

Referenced by analyze().

Definition at line 32 of file HcalHitAnalyzer.h.

Definition at line 38 of file HcalHitAnalyzer.h.

Referenced by analyze().

Definition at line 34 of file HcalHitAnalyzer.h.

Definition at line 37 of file HcalHitAnalyzer.h.

Referenced by analyze().

Definition at line 33 of file HcalHitAnalyzer.h.

Definition at line 31 of file HcalHitAnalyzer.h.

Definition at line 39 of file HcalHitAnalyzer.h.

Definition at line 35 of file HcalHitAnalyzer.h.