CMS 3D CMS Logo

Public Member Functions | Private Attributes

EDMNeutronWriter Class Reference

#include <EDMNeutronWriter.h>

Inheritance diagram for EDMNeutronWriter:
NeutronWriter

List of all members.

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.
virtual ~EDMNeutronWriter ()

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.

: theEvent(0),
  theHits(0)
{
}
EDMNeutronWriter::~EDMNeutronWriter ( ) [virtual]

Definition at line 11 of file EDMNeutronWriter.cc.

{}

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.

{
  theEvent = &e;
  theHits = std::auto_ptr<edm::PSimHitContainer>(new edm::PSimHitContainer());
}
void EDMNeutronWriter::endEvent ( ) [virtual]

Reimplemented from NeutronWriter.

Definition at line 26 of file EDMNeutronWriter.cc.

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

virtual void EDMNeutronWriter::initialize ( int  detType) [inline, virtual]

Reimplemented from NeutronWriter.

Definition at line 18 of file EDMNeutronWriter.h.

{}
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.

{
  theHits->insert(theHits->end(), simHits.begin(), simHits.end());
}

Member Data Documentation

Definition at line 21 of file EDMNeutronWriter.h.

Referenced by beginEvent(), and endEvent().

Definition at line 22 of file EDMNeutronWriter.h.

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