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
EDMNeutronWriter Class Reference

#include <EDMNeutronWriter.h>

Inheritance diagram for EDMNeutronWriter:
NeutronWriter

Public Member Functions

virtual void beginEvent (edm::Event &e, const edm::EventSetup &es)
 
 EDMNeutronWriter ()
 
virtual void endEvent ()
 
virtual void initialize (int detType)
 
virtual void writeCluster (int detType, const edm::PSimHitContainer &simHits)
 writes out a list of SimHits. More...
 
virtual ~EDMNeutronWriter ()
 
- Public Member Functions inherited from NeutronWriter
virtual ~NeutronWriter ()
 

Private Attributes

edm::EventtheEvent
 
std::auto_ptr
< edm::PSimHitContainer
theHits
 

Detailed Description

Writes an event made of neutron hits

Definition at line 9 of file EDMNeutronWriter.h.

Constructor & Destructor Documentation

EDMNeutronWriter::EDMNeutronWriter ( )

Definition at line 4 of file EDMNeutronWriter.cc.

5 : theEvent(0),
6  theHits(0)
7 {
8 }
std::auto_ptr< edm::PSimHitContainer > theHits
edm::Event * theEvent
EDMNeutronWriter::~EDMNeutronWriter ( )
virtual

Definition at line 11 of file EDMNeutronWriter.cc.

11 {}

Member Function Documentation

void EDMNeutronWriter::beginEvent ( edm::Event e,
const edm::EventSetup es 
)
virtual

Reimplemented from NeutronWriter.

Definition at line 20 of file EDMNeutronWriter.cc.

References alignCSCRings::e, theEvent, and theHits.

21 {
22  theEvent = &e;
23  theHits = std::auto_ptr<edm::PSimHitContainer>(new edm::PSimHitContainer());
24 }
std::auto_ptr< edm::PSimHitContainer > theHits
edm::Event * theEvent
std::vector< PSimHit > PSimHitContainer
void EDMNeutronWriter::endEvent ( )
virtual

Reimplemented from NeutronWriter.

Definition at line 26 of file EDMNeutronWriter.cc.

References edm::Event::put(), theEvent, and theHits.

27 {
29 }
std::auto_ptr< edm::PSimHitContainer > theHits
OrphanHandle< PROD > put(std::auto_ptr< PROD > product)
Put a new product.
Definition: Event.h:85
edm::Event * theEvent
virtual void EDMNeutronWriter::initialize ( int  detType)
inlinevirtual

Reimplemented from NeutronWriter.

Definition at line 18 of file EDMNeutronWriter.h.

18 {}
void EDMNeutronWriter::writeCluster ( int  detType,
const edm::PSimHitContainer simHits 
)
virtual

writes out a list of SimHits.

Implements NeutronWriter.

Definition at line 14 of file EDMNeutronWriter.cc.

References theHits.

15 {
16  theHits->insert(theHits->end(), simHits.begin(), simHits.end());
17 }
std::auto_ptr< edm::PSimHitContainer > theHits
tuple simHits
Definition: trackerHits.py:16

Member Data Documentation

edm::Event* EDMNeutronWriter::theEvent
private

Definition at line 21 of file EDMNeutronWriter.h.

Referenced by beginEvent(), and endEvent().

std::auto_ptr<edm::PSimHitContainer> EDMNeutronWriter::theHits
private

Definition at line 22 of file EDMNeutronWriter.h.

Referenced by beginEvent(), endEvent(), and writeCluster().