24 #include "HepMC/GenVertex.h"
25 #include "HepMC/GenEvent.h"
34 produces<edm::SimTrackContainer>();
35 produces<edm::SimVertexContainer>();
36 produces<FSimVertexTypeCollection>(
"VertexTypes");
37 produces<edm::PSimHitContainer>(
"TrackerHits");
38 produces<edm::PCaloHitContainer>(
"EcalHitsEB");
39 produces<edm::PCaloHitContainer>(
"EcalHitsEE");
40 produces<edm::PCaloHitContainer>(
"EcalHitsES");
41 produces<edm::PCaloHitContainer>(
"HcalHits");
44 if ( simulateMuons ) produces<edm::SimTrackContainer>(
"MuonSimTracks");
48 sourceToken = consumes<edm::HepMCProduct>(sourceLabel);
104 calo->loadFromEcalBarrel(*p4);
105 calo->loadFromEcalEndcap(*p5);
106 calo->loadFromPreshower(*p6);
107 calo->loadFromHcal(*p7);
108 calo->loadMuonSimTracks(*m1);
114 iEvent.
put(p3,
"TrackerHits");
115 iEvent.
put(v1,
"VertexTypes");
116 iEvent.
put(p4,
"EcalHitsEB");
117 iEvent.
put(p5,
"EcalHitsEE");
118 iEvent.
put(p6,
"EcalHitsES");
119 iEvent.
put(p7,
"HcalHits");
T getParameter(std::string const &) const
void reconstruct(const HepMC::GenEvent *evt, const TrackerTopology *tTopo, RandomEngineAndDistribution const *)
The real thing is done here.
std::vector< PCaloHit > PCaloHitContainer
void load(edm::SimTrackContainer &c, edm::SimTrackContainer &m) const
Load containers of tracks (and muons) and vertices for the edm::Event.
bool getByToken(EDGetToken token, Handle< PROD > &result) const
#define DEFINE_FWK_MODULE(type)
const HepPDT::ParticleDataTable * theTable() const
Get the pointer to the particle data table.
FamosManager * famosManager_
virtual void beginRun(edm::Run const &run, const edm::EventSetup &es) override
FamosProducer(edm::ParameterSet const &p)
OrphanHandle< PROD > put(std::auto_ptr< PROD > product)
Put a new product.
std::vector< FSimVertexType > FSimVertexTypeCollection
collection of FSimVertexType objects
CalorimetryManager * calorimetryManager() const
The calorimeter.
edm::EDGetTokenT< edm::HepMCProduct > sourceToken
std::vector< SimVertex > SimVertexContainer
virtual void produce(edm::Event &e, const edm::EventSetup &c) override
StreamID streamID() const
std::vector< PSimHit > PSimHitContainer
TrajectoryManager * trackerManager() const
The tracker.
FSimEvent * simEvent() const
The simulated event.
std::vector< SimTrack > SimTrackContainer
void setupGeometryAndField(edm::Run const &run, const edm::EventSetup &es)
Get information from the Event Setup.