CMS 3D CMS Logo

FSimEvent.h
Go to the documentation of this file.
1 #ifndef FastSimulation_Event_FSimEvent_H
2 #define FastSimulation_Event_FSimEvent_H
3 
4 // CMSSW Headers
9 
10 // FAMOS Headers
12 
29 class FSimEvent : public FBaseSimEvent {
30 public:
32  FSimEvent(const edm::ParameterSet& kine);
33 
35  virtual ~FSimEvent();
36 
38  void fill(const HepMC::GenEvent& hev, edm::EventID& Id);
39 
41  void fill(const std::vector<SimTrack>& simTracks, const std::vector<SimVertex>& simVertices);
42 
44  edm::EventID id() const;
45 
47  float weight() const;
48 
50  unsigned int nTracks() const;
52  unsigned int nVertices() const;
54  unsigned int nGenParts() const;
55 
58  void load(edm::SimVertexContainer& c) const;
59  void load(FSimVertexTypeCollection& c) const;
60 
61 private:
63  double weight_;
64 };
65 
66 #endif // FSIMEVENT_H
FBaseSimEvent.h
FSimEvent
Definition: FSimEvent.h:29
TrackCandidateProducer_cfi.simTracks
simTracks
Definition: TrackCandidateProducer_cfi.py:15
FSimEvent::nTracks
unsigned int nTracks() const
Number of tracks.
Definition: FSimEvent.cc:24
HepMC::GenEvent
Definition: hepmc_rootio.cc:9
visualization-live-secondInstance_cfg.m
m
Definition: visualization-live-secondInstance_cfg.py:72
EventID.h
GenParticleFwd.h
FSimEvent::id
edm::EventID id() const
Method to return the EventId.
Definition: FSimEvent.cc:20
edm::ParameterSet
Definition: ParameterSet.h:47
FSimEvent::weight_
double weight_
Definition: FSimEvent.h:63
FSimEvent::fill
void fill(const HepMC::GenEvent &hev, edm::EventID &Id)
fill the FBaseSimEvent from the current HepMC::GenEvent
Definition: FSimEvent.cc:10
FSimEvent::id_
edm::EventID id_
Definition: FSimEvent.h:62
HltBtagPostValidation_cff.c
c
Definition: HltBtagPostValidation_cff.py:31
FSimEvent::load
void load(edm::SimTrackContainer &c, edm::SimTrackContainer &m) const
Load containers of tracks (and muons) and vertices for the edm::Event.
Definition: FSimEvent.cc:30
FSimEvent::weight
float weight() const
Method to return the event weight.
Definition: FSimEvent.cc:22
edm::SimTrackContainer
std::vector< SimTrack > SimTrackContainer
Definition: SimTrackContainer.h:12
FSimEvent::nVertices
unsigned int nVertices() const
Number of vertices.
Definition: FSimEvent.cc:26
FSimVertexTypeCollection
std::vector< FSimVertexType > FSimVertexTypeCollection
collection of FSimVertexType objects
Definition: FSimVertexTypeFwd.h:7
HGCalValidator_cfi.simVertices
simVertices
Definition: HGCalValidator_cfi.py:43
FSimEvent::nGenParts
unsigned int nGenParts() const
Number of MC particles.
Definition: FSimEvent.cc:28
edm::EventID
Definition: EventID.h:31
FSimEvent::~FSimEvent
virtual ~FSimEvent()
usual virtual destructor
Definition: FSimEvent.cc:8
SimTrackContainer.h
edm::SimVertexContainer
std::vector< SimVertex > SimVertexContainer
Definition: SimVertexContainer.h:12
SimVertexContainer.h
FBaseSimEvent
Definition: FBaseSimEvent.h:42
FSimEvent::FSimEvent
FSimEvent(const edm::ParameterSet &kine)
Default constructor.
Definition: FSimEvent.cc:6