25 #include "HepMC/GenVertex.h" 26 #include "HepMC/GenEvent.h" 35 produces<edm::SimTrackContainer>();
36 produces<edm::SimVertexContainer>();
37 produces<FSimVertexTypeCollection>(
"VertexTypes");
38 produces<edm::PSimHitContainer>(
"TrackerHits");
39 produces<edm::PCaloHitContainer>(
"EcalHitsEB");
40 produces<edm::PCaloHitContainer>(
"EcalHitsEE");
41 produces<edm::PCaloHitContainer>(
"EcalHitsES");
42 produces<edm::PCaloHitContainer>(
"HcalHits");
45 if ( simulateMuons ) produces<edm::SimTrackContainer>(
"MuonSimTracks");
49 sourceToken = consumes<edm::HepMCProduct>(sourceLabel);
78 const HepMC::GenEvent * myGenEvent = theHepMCProduct->
GetEvent();
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
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
~FamosProducer() override
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.
void loadFromPreshower(edm::PCaloHitContainer &c) const
FamosManager * famosManager_
void beginRun(edm::Run const &run, const edm::EventSetup &es) override
FamosProducer(edm::ParameterSet const &p)
void loadFromEcalEndcap(edm::PCaloHitContainer &c) const
std::vector< FSimVertexType > FSimVertexTypeCollection
collection of FSimVertexType objects
void loadMuonSimTracks(edm::SimTrackContainer &m) const
void loadFromHcal(edm::PCaloHitContainer &c) const
CalorimetryManager * calorimetryManager() const
The calorimeter.
edm::EDGetTokenT< edm::HepMCProduct > sourceToken
const HepMC::GenEvent * GetEvent() const
void loadSimHits(edm::PSimHitContainer &c) const
std::vector< SimVertex > SimVertexContainer
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.
void loadFromEcalBarrel(edm::PCaloHitContainer &c) const