#include <CastorHitAnalyzer.h>
Public Member Functions | |
virtual void | analyze (edm::Event const &e, edm::EventSetup const &c) |
CastorHitAnalyzer (edm::ParameterSet const &conf) | |
Private Attributes | |
CaloHitAnalyzer | castorAnalyzer_ |
CastorHitFilter | castorFilter_ |
edm::InputTag | castorRecHitCollectionTag_ |
std::string | hitReadoutName_ |
CastorSimParameterMap | simParameterMap_ |
Compares RecHits to SimHit
P. Katsas, Univ. of Athens
Definition at line 19 of file CastorHitAnalyzer.h.
CastorHitAnalyzer::CastorHitAnalyzer | ( | edm::ParameterSet const & | conf | ) | [explicit] |
Definition at line 7 of file CastorHitAnalyzer.cc.
: hitReadoutName_("CastorHits"), simParameterMap_(), castorFilter_(), castorAnalyzer_("CASTOR", 1., &simParameterMap_, &castorFilter_), castorRecHitCollectionTag_(conf.getParameter<edm::InputTag>("castorRecHitCollectionTag")) { }
void CastorHitAnalyzer::analyze | ( | edm::Event const & | e, |
edm::EventSetup const & | c | ||
) | [virtual] |
Implements edm::EDAnalyzer.
Definition at line 33 of file CastorHitAnalyzer.cc.
References castorAnalyzer_, castorRecHitCollectionTag_, alignCSCRings::e, CaloHitAnalyzer::fillHits(), edm::Event::getByLabel(), and edm::Handle< T >::product().
{ edm::Handle<CrossingFrame<PCaloHit> > castorcf; e.getByLabel("mix", "g4SimHitsCastorFI", castorcf); // access to SimHits std::auto_ptr<MixCollection<PCaloHit> > hits(new MixCollection<PCaloHit>(castorcf.product())); castorAnalyzer_.fillHits(*hits); CastorHitAnalyzerImpl::analyze<CastorRecHitCollection>(e, castorAnalyzer_, castorRecHitCollectionTag_); }
Definition at line 31 of file CastorHitAnalyzer.h.
Referenced by analyze().
Definition at line 30 of file CastorHitAnalyzer.h.
Definition at line 32 of file CastorHitAnalyzer.h.
Referenced by analyze().
std::string CastorHitAnalyzer::hitReadoutName_ [private] |
Definition at line 28 of file CastorHitAnalyzer.h.
Definition at line 29 of file CastorHitAnalyzer.h.