CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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 
31 public:
32 
34  FSimEvent(const edm::ParameterSet& kine);
35 
37  virtual ~FSimEvent();
38 
40  void fill(const HepMC::GenEvent & hev, edm::EventID & Id);
41 
44 
46  void fill(const std::vector<SimTrack>& simTracks,
47  const std::vector<SimVertex>& simVertices);
48 
50  edm::EventID id() const;
51 
53  float weight() const;
54 
56  unsigned int nTracks() const;
58  unsigned int nVertices() const;
60  unsigned int nGenParts() const;
61 
64  void load(edm::SimVertexContainer & c) const;
65  void load(FSimVertexTypeCollection & c) const;
66 
67 private:
68 
70  double weight_;
71 
72 };
73 
74 #endif // FSIMEVENT_H
std::vector< GenParticle > GenParticleCollection
collection of GenParticles
void load(edm::SimTrackContainer &c, edm::SimTrackContainer &m) const
Load containers of tracks (and muons) and vertices for the edm::Event.
Definition: FSimEvent.cc:57
void fill(const HepMC::GenEvent &hev, edm::EventID &Id)
fill the FBaseSimEvent from the current HepMC::GenEvent
Definition: FSimEvent.cc:20
FSimEvent(const edm::ParameterSet &kine)
Default constructor.
Definition: FSimEvent.cc:6
double weight_
Definition: FSimEvent.h:70
std::vector< FSimVertexType > FSimVertexTypeCollection
collection of FSimVertexType objects
unsigned int nTracks() const
Number of tracks.
Definition: FSimEvent.cc:42
edm::EventID id() const
Method to return the EventId.
Definition: FSimEvent.cc:33
unsigned int nGenParts() const
Number of MC particles.
Definition: FSimEvent.cc:52
virtual ~FSimEvent()
usual virtual destructor
Definition: FSimEvent.cc:10
unsigned int nVertices() const
Number of vertices.
Definition: FSimEvent.cc:47
std::vector< SimVertex > SimVertexContainer
float weight() const
Method to return the event weight.
Definition: FSimEvent.cc:37
std::vector< SimTrack > SimTrackContainer
edm::EventID id_
Definition: FSimEvent.h:69