CMS 3D CMS Logo

Public Member Functions | Private Attributes

CastorDigiAnalyzer Class Reference

#include <CastorDigiAnalyzer.h>

Inheritance diagram for CastorDigiAnalyzer:
edm::EDAnalyzer

List of all members.

Public Member Functions

virtual void analyze (edm::Event const &e, edm::EventSetup const &c)
 CastorDigiAnalyzer (edm::ParameterSet const &conf)

Private Attributes

CastorDigiStatistics castorDigiStatistics_
CastorHitFilter castorFilter_
CaloHitAnalyzer castorHitAnalyzer_
std::string hitReadoutName_
CastorSimParameterMap simParameterMap_

Detailed Description

Castor digis Author: Panos Katsas

Definition at line 20 of file CastorDigiAnalyzer.h.


Constructor & Destructor Documentation

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

Definition at line 7 of file CastorDigiAnalyzer.cc.

: hitReadoutName_("CastorHits"),
  simParameterMap_(),
  castorHitAnalyzer_("CASTORDigi", 1., &simParameterMap_, &castorFilter_),
  castorDigiStatistics_("CASTORDigi", 3, 10., 6., 0.1, 0.5, castorHitAnalyzer_)
{
}

Member Function Documentation

void CastorDigiAnalyzer::analyze ( edm::Event const &  e,
edm::EventSetup const &  c 
) [virtual]

Implements edm::EDAnalyzer.

Definition at line 32 of file CastorDigiAnalyzer.cc.

References castorDigiStatistics_, castorHitAnalyzer_, CaloHitAnalyzer::fillHits(), edm::Event::getByLabel(), and edm::Handle< T >::product().

                                                                          {
  //  edm::Handle<edm::PCaloHitContainer> hits;
edm::Handle<CrossingFrame<PCaloHit> > castorcf;

e.getByLabel("mix", "g4SimHitsCastorFI", castorcf);


//access to SimHits
std::auto_ptr<MixCollection<PCaloHit> > hits(new MixCollection<PCaloHit>(castorcf.product()));
//  if (hits.isValid()) {
    castorHitAnalyzer_.fillHits(*hits);
    CastorDigiAnalyzerImpl::analyze<CastorDigiCollection>(e, castorDigiStatistics_);
  }

Member Data Documentation

Definition at line 33 of file CastorDigiAnalyzer.h.

Referenced by analyze().

Definition at line 31 of file CastorDigiAnalyzer.h.

Definition at line 32 of file CastorDigiAnalyzer.h.

Referenced by analyze().

std::string CastorDigiAnalyzer::hitReadoutName_ [private]

Definition at line 29 of file CastorDigiAnalyzer.h.

Definition at line 30 of file CastorDigiAnalyzer.h.