CMS 3D CMS Logo

Public Member Functions | Private Attributes

CastorHitAnalyzer Class Reference

#include <CastorHitAnalyzer.h>

Inheritance diagram for CastorHitAnalyzer:
edm::EDAnalyzer

List of all members.

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_

Detailed Description

Compares RecHits to SimHit

P. Katsas, Univ. of Athens

Definition at line 18 of file CastorHitAnalyzer.h.


Constructor & Destructor Documentation

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

Definition at line 7 of file CastorHitAnalyzer.cc.


Member Function Documentation

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_, 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_);
  }

Member Data Documentation

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.