#include <HcalHitAnalyzer.h>
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_ |
Compares HCAL RecHits to SimHit
Rick Wilkinson, Caltech
Definition at line 23 of file HcalHitAnalyzer.h.
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")) { }
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_); }
Definition at line 37 of file HcalHitAnalyzer.h.
Referenced by analyze().
HBHEHitFilter HcalHitAnalyzer::hbheFilter_ [private] |
Definition at line 33 of file HcalHitAnalyzer.h.
Definition at line 42 of file HcalHitAnalyzer.h.
Referenced by analyze().
CaloHitAnalyzer HcalHitAnalyzer::hfAnalyzer_ [private] |
Definition at line 39 of file HcalHitAnalyzer.h.
Referenced by analyze().
HFHitFilter HcalHitAnalyzer::hfFilter_ [private] |
Definition at line 35 of file HcalHitAnalyzer.h.
Definition at line 44 of file HcalHitAnalyzer.h.
Referenced by analyze().
CaloHitAnalyzer HcalHitAnalyzer::hoAnalyzer_ [private] |
Definition at line 38 of file HcalHitAnalyzer.h.
Referenced by analyze().
HOHitFilter HcalHitAnalyzer::hoFilter_ [private] |
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.
CaloHitAnalyzer HcalHitAnalyzer::zdcAnalyzer_ [private] |
Definition at line 40 of file HcalHitAnalyzer.h.
ZDCHitFilter HcalHitAnalyzer::zdcFilter_ [private] |
Definition at line 36 of file HcalHitAnalyzer.h.