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_
edm::InputTag castorRecHitCollectionTag_
std::string hitReadoutName_
CastorSimParameterMap simParameterMap_

Detailed Description

Compares RecHits to SimHit

P. Katsas, Univ. of Athens

Definition at line 19 of file CastorHitAnalyzer.h.


Constructor & Destructor Documentation

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"))
{
}

Member Function Documentation

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

Member Data Documentation

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.