CMS 3D CMS Logo

EDMNeutronWriter.cc
Go to the documentation of this file.
3 
5 : theEvent(nullptr),
6  theHits(nullptr)
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::unique_ptr<edm::PSimHitContainer>(new edm::PSimHitContainer());
24 }
25 
27 {
29 }
30 
31 
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
Definition: Event.h:137
~EDMNeutronWriter() override
void beginEvent(edm::Event &e, const edm::EventSetup &es) override
std::unique_ptr< edm::PSimHitContainer > theHits
#define nullptr
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