#include <EDMNeutronWriter.h>
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::Event * | theEvent |
std::auto_ptr < edm::PSimHitContainer > | theHits |
Writes an event made of neutron hits
Definition at line 9 of file EDMNeutronWriter.h.
EDMNeutronWriter::EDMNeutronWriter | ( | ) |
Definition at line 4 of file EDMNeutronWriter.cc.
EDMNeutronWriter::~EDMNeutronWriter | ( | ) | [virtual] |
Definition at line 11 of file EDMNeutronWriter.cc.
{}
void EDMNeutronWriter::beginEvent | ( | edm::Event & | e, |
const edm::EventSetup & | es | ||
) | [virtual] |
Reimplemented from NeutronWriter.
Definition at line 20 of file EDMNeutronWriter.cc.
References ExpressReco_HICollisions_FallBack::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] |
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.
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().