CMS 3D CMS Logo

EDMNeutronWriter.cc
Go to the documentation of this file.
2 
3 #include <memory>
4 
6 
7 EDMNeutronWriter::EDMNeutronWriter() : theEvent(nullptr), theHits(nullptr) {}
8 
10 
12  theHits->insert(theHits->end(), simHits.begin(), simHits.end());
13 }
14 
16  theEvent = &e;
17  theHits = std::make_unique<edm::PSimHitContainer>();
18 }
19 
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
Definition: Event.h:133
~EDMNeutronWriter() override
void beginEvent(edm::Event &e, const edm::EventSetup &es) override
std::unique_ptr< edm::PSimHitContainer > theHits
void endEvent() override
edm::Event * theEvent
void writeCluster(int detType, const edm::PSimHitContainer &simHits) override
writes out a list of SimHits.
std::vector< PSimHit > PSimHitContainer
def move(src, dest)
Definition: eostools.py:511