CMS 3D CMS Logo

CSCTruthTest Class Reference

#include <SimMuon/MCTruth/src/CSCTruthTest.h>

Inheritance diagram for CSCTruthTest:

edm::EDAnalyzer

List of all members.

Public Member Functions

 CSCTruthTest (const edm::ParameterSet &)
 ~CSCTruthTest ()

Private Member Functions

virtual void analyze (const edm::Event &, const edm::EventSetup &)

Private Attributes

MuonTruth theTruth


Detailed Description

Definition at line 7 of file CSCTruthTest.h.


Constructor & Destructor Documentation

CSCTruthTest::CSCTruthTest ( const edm::ParameterSet iConfig  )  [explicit]

Definition at line 8 of file CSCTruthTest.cc.

00009   : theTruth(iConfig)
00010 {
00011 
00012 }

CSCTruthTest::~CSCTruthTest (  ) 

Definition at line 15 of file CSCTruthTest.cc.

00016 {
00017  
00018 }


Member Function Documentation

void CSCTruthTest::analyze ( const edm::Event iEvent,
const edm::EventSetup iSetup 
) [private, virtual]

Implements edm::EDAnalyzer.

Definition at line 21 of file CSCTruthTest.cc.

References MuonTruth::analyze(), GenMuonPlsPt100GeV_cfg::cout, lat::endl(), MuonTruth::eventSetup(), edm::Event::getByLabel(), MuonTruth::muonFraction(), and theTruth.

00022 {
00023   using namespace edm;
00024   
00025   Handle<CSCRecHit2DCollection> cscRecHits;
00026   iEvent.getByLabel("csc2DRecHits",cscRecHits);
00027 
00028   theTruth.eventSetup(iEvent,iSetup);
00029 
00030   for(CSCRecHit2DCollection::const_iterator recHitItr = cscRecHits->begin();
00031       recHitItr != cscRecHits->end(); recHitItr++)
00032   {
00033      theTruth.analyze(*recHitItr);
00034      std::cout << theTruth.muonFraction() << " " << recHitItr->cscDetId() << std::endl;
00035   }
00036 }


Member Data Documentation

MuonTruth CSCTruthTest::theTruth [private]

Definition at line 16 of file CSCTruthTest.h.

Referenced by analyze().


The documentation for this class was generated from the following files:
Generated on Tue Jun 9 18:17:31 2009 for CMSSW by  doxygen 1.5.4