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_
edm::InputTag hbheRecHitCollectionTag_
CaloHitAnalyzer hfAnalyzer_
HFHitFilter hfFilter_
edm::InputTag hfRecHitCollectionTag_
CaloHitAnalyzer hoAnalyzer_
HOHitFilter hoFilter_
edm::InputTag hoRecHitCollectionTag_
HcalSimParameterMap simParameterMap_
CaloHitAnalyzer zdcAnalyzer_
ZDCHitFilter zdcFilter_

Detailed Description

Compares HCAL RecHits to SimHit

Rick Wilkinson, Caltech

Definition at line 23 of file HcalHitAnalyzer.h.


Constructor & Destructor Documentation

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

Definition at line 7 of file HcalHitAnalyzer.cc.

: simParameterMap_(conf),
  hbheFilter_(),
  hoFilter_(),
  hfFilter_(true),
  zdcFilter_(),
  hbheAnalyzer_("HBHE", 1., &simParameterMap_, &hbheFilter_),
  hoAnalyzer_("HO", 1., &simParameterMap_, &hoFilter_),
  hfAnalyzer_("HF", 1., &simParameterMap_, &hfFilter_),
  zdcAnalyzer_("ZDC", 1., &simParameterMap_, &zdcFilter_),
  hbheRecHitCollectionTag_(conf.getParameter<edm::InputTag>("hbheRecHitCollectionTag")),
  hoRecHitCollectionTag_(conf.getParameter<edm::InputTag>("hoRecHitCollectionTag")),
  hfRecHitCollectionTag_(conf.getParameter<edm::InputTag>("hfRecHitCollectionTag"))
{
}

Member Function Documentation

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

Implements edm::EDAnalyzer.

Definition at line 36 of file HcalHitAnalyzer.cc.

References alignCSCRings::e, CaloHitAnalyzer::fillHits(), edm::Event::getByLabel(), hbheAnalyzer_, hbheRecHitCollectionTag_, hfAnalyzer_, hfRecHitCollectionTag_, hoAnalyzer_, hoRecHitCollectionTag_, 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_, hbheRecHitCollectionTag_);
  HcalHitAnalyzerImpl::analyze<HORecHitCollection>(e, hoAnalyzer_, hoRecHitCollectionTag_);
  HcalHitAnalyzerImpl::analyze<HFRecHitCollection>(e, hfAnalyzer_, hfRecHitCollectionTag_);
  //HcalHitAnalyzerImpl::analyze<ZDCRecHitCollection>(e, zdcAnalyzer_);
}

Member Data Documentation

Definition at line 37 of file HcalHitAnalyzer.h.

Referenced by analyze().

Definition at line 33 of file HcalHitAnalyzer.h.

Definition at line 42 of file HcalHitAnalyzer.h.

Referenced by analyze().

Definition at line 39 of file HcalHitAnalyzer.h.

Referenced by analyze().

Definition at line 35 of file HcalHitAnalyzer.h.

Definition at line 44 of file HcalHitAnalyzer.h.

Referenced by analyze().

Definition at line 38 of file HcalHitAnalyzer.h.

Referenced by analyze().

Definition at line 34 of file HcalHitAnalyzer.h.

Definition at line 43 of file HcalHitAnalyzer.h.

Referenced by analyze().

Definition at line 32 of file HcalHitAnalyzer.h.

Definition at line 40 of file HcalHitAnalyzer.h.

Definition at line 36 of file HcalHitAnalyzer.h.