#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_ |
CaloHitAnalyzer | hfAnalyzer_ |
HFHitFilter | hfFilter_ |
CaloHitAnalyzer | hoAnalyzer_ |
HOHitFilter | hoFilter_ |
HcalSimParameterMap | simParameterMap_ |
CaloHitAnalyzer | zdcAnalyzer_ |
ZDCHitFilter | zdcFilter_ |
Compares HCAL RecHits to SimHit
Rick Wilkinson, Caltech
Definition at line 22 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_) { }
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_); }
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.
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.