CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Private Attributes
CastorHitAnalyzer Class Reference

#include <CastorHitAnalyzer.h>

Inheritance diagram for CastorHitAnalyzer:
edm::EDAnalyzer

Public Member Functions

virtual void analyze (edm::Event const &e, edm::EventSetup const &c)
 
 CastorHitAnalyzer (edm::ParameterSet const &conf)
 
- Public Member Functions inherited from edm::EDAnalyzer
 EDAnalyzer ()
 
std::string workerType () const
 
virtual ~EDAnalyzer ()
 

Private Attributes

CaloHitAnalyzer castorAnalyzer_
 
CastorHitFilter castorFilter_
 
std::string hitReadoutName_
 
CastorSimParameterMap simParameterMap_
 

Additional Inherited Members

- Public Types inherited from edm::EDAnalyzer
typedef EDAnalyzer ModuleType
 
typedef WorkerT< EDAnalyzerWorkerType
 
- Static Public Member Functions inherited from edm::EDAnalyzer
static const std::string & baseType ()
 
static void fillDescriptions (ConfigurationDescriptions &descriptions)
 
static void prevalidate (ConfigurationDescriptions &)
 
- Protected Member Functions inherited from edm::EDAnalyzer
CurrentProcessingContext const * currentContext () const
 

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.

8  : hitReadoutName_("CastorHits"),
10  castorFilter_(),
12 {
13 }
CastorHitFilter castorFilter_
CastorSimParameterMap simParameterMap_
CaloHitAnalyzer castorAnalyzer_
std::string hitReadoutName_

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().

32  {
34 e.getByLabel("mix", "g4SimHitsCastorFI", castorcf);
35 
36 
37  // access to SimHits
38 std::auto_ptr<MixCollection<PCaloHit> > hits(new MixCollection<PCaloHit>(castorcf.product()));
40  CastorHitAnalyzerImpl::analyze<CastorRecHitCollection>(e, castorAnalyzer_);
41  }
void fillHits(MixCollection< PCaloHit > &hits)
should be called each event
CaloHitAnalyzer castorAnalyzer_
T const * product() const
Definition: Handle.h:74

Member Data Documentation

CaloHitAnalyzer CastorHitAnalyzer::castorAnalyzer_
private

Definition at line 30 of file CastorHitAnalyzer.h.

Referenced by analyze().

CastorHitFilter CastorHitAnalyzer::castorFilter_
private

Definition at line 29 of file CastorHitAnalyzer.h.

std::string CastorHitAnalyzer::hitReadoutName_
private

Definition at line 27 of file CastorHitAnalyzer.h.

CastorSimParameterMap CastorHitAnalyzer::simParameterMap_
private

Definition at line 28 of file CastorHitAnalyzer.h.