CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
EDMNeutronWriter.cc
Go to the documentation of this file.
3 
5 : theEvent(0),
6  theHits(0)
7 {
8 }
9 
10 
12 
13 
15 {
16  theHits->insert(theHits->end(), simHits.begin(), simHits.end());
17 }
18 
19 
21 {
22  theEvent = &e;
23  theHits = std::auto_ptr<edm::PSimHitContainer>(new edm::PSimHitContainer());
24 }
25 
27 {
29 }
30 
31 
virtual void writeCluster(int detType, const edm::PSimHitContainer &simHits)
writes out a list of SimHits.
virtual void endEvent()
std::auto_ptr< edm::PSimHitContainer > theHits
OrphanHandle< PROD > put(std::auto_ptr< PROD > product)
Put a new product.
Definition: Event.h:121
virtual void beginEvent(edm::Event &e, const edm::EventSetup &es)
edm::Event * theEvent
tuple simHits
Definition: trackerHits.py:16
virtual ~EDMNeutronWriter()
std::vector< PSimHit > PSimHitContainer