#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_ |
std::string | hitReadoutName_ |
CastorSimParameterMap | simParameterMap_ |
Compares RecHits to SimHit
P. Katsas, Univ. of Athens
Definition at line 18 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_) { }
void CastorHitAnalyzer::analyze | ( | edm::Event const & | e, |
edm::EventSetup const & | c | ||
) | [virtual] |
Implements edm::EDAnalyzer.
Definition at line 32 of file CastorHitAnalyzer.cc.
References castorAnalyzer_, 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_); }
Definition at line 30 of file CastorHitAnalyzer.h.
Referenced by analyze().
Definition at line 29 of file CastorHitAnalyzer.h.
std::string CastorHitAnalyzer::hitReadoutName_ [private] |
Definition at line 27 of file CastorHitAnalyzer.h.
Definition at line 28 of file CastorHitAnalyzer.h.