CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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
def move
Definition: eostools.py:511
void endEvent() override
edm::Event * theEvent
void writeCluster(int detType, const edm::PSimHitContainer &simHits) override
writes out a list of SimHits.
tuple simHits
Definition: trackerHits.py:16
std::vector< PSimHit > PSimHitContainer