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 
EDMNeutronWriter.h
EDMNeutronWriter::beginEvent
void beginEvent(edm::Event &e, const edm::EventSetup &es) override
Definition: EDMNeutronWriter.cc:15
EDMNeutronWriter::endEvent
void endEvent() override
Definition: EDMNeutronWriter.cc:20
FastTrackerRecHitCombiner_cfi.simHits
simHits
Definition: FastTrackerRecHitCombiner_cfi.py:5
EDMNeutronWriter::writeCluster
void writeCluster(int detType, const edm::PSimHitContainer &simHits) override
writes out a list of SimHits.
Definition: EDMNeutronWriter.cc:11
EDMNeutronWriter::~EDMNeutronWriter
~EDMNeutronWriter() override
Definition: EDMNeutronWriter.cc:9
EDMNeutronWriter::EDMNeutronWriter
EDMNeutronWriter()
Definition: EDMNeutronWriter.cc:7
EDMNeutronWriter::theEvent
edm::Event * theEvent
Definition: EDMNeutronWriter.h:21
Event.h
edm::Event::put
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
Definition: Event.h:133
edm::EventSetup
Definition: EventSetup.h:58
eostools.move
def move(src, dest)
Definition: eostools.py:511
bscTrigger_cfi.theHits
theHits
Definition: bscTrigger_cfi.py:18
EDMNeutronWriter::theHits
std::unique_ptr< edm::PSimHitContainer > theHits
Definition: EDMNeutronWriter.h:22
edm::PSimHitContainer
std::vector< PSimHit > PSimHitContainer
Definition: PSimHitContainer.h:11
edm::Event
Definition: Event.h:73
MillePedeFileConverter_cfg.e
e
Definition: MillePedeFileConverter_cfg.py:37