Main Page
Namespaces
Classes
Package Documentation
src
FastSimulation
Event
interface
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
5
#include "
DataFormats/Provenance/interface/EventID.h
"
6
#include "
DataFormats/HepMCCandidate/interface/GenParticleFwd.h
"
7
#include "
SimDataFormats/Track/interface/SimTrackContainer.h
"
8
#include "
SimDataFormats/Vertex/interface/SimVertexContainer.h
"
9
10
// FAMOS Headers
11
#include "
FastSimulation/Event/interface/FBaseSimEvent.h
"
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
43
void
fill
(
const
std::vector<SimTrack>&
simTracks
,
44
const
std::vector<SimVertex>&
simVertices
);
45
47
edm::EventID
id
()
const
;
48
50
float
weight
()
const
;
51
53
unsigned
int
nTracks
()
const
;
55
unsigned
int
nVertices
()
const
;
57
unsigned
int
nGenParts
()
const
;
58
60
void
load
(
edm::SimTrackContainer
&
c
,
edm::SimTrackContainer
&
m
)
const
;
61
void
load
(
edm::SimVertexContainer
& c)
const
;
62
void
load
(
FSimVertexTypeCollection
& c)
const
;
63
64
private
:
65
66
edm::EventID
id_
;
67
double
weight_
;
68
69
};
70
71
#endif // FSIMEVENT_H
EventID.h
FBaseSimEvent.h
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:51
FSimEvent::fill
void fill(const HepMC::GenEvent &hev, edm::EventID &Id)
fill the FBaseSimEvent from the current HepMC::GenEvent
Definition:
FSimEvent.cc:14
FSimEvent::FSimEvent
FSimEvent(const edm::ParameterSet &kine)
Default constructor.
Definition:
FSimEvent.cc:6
EnergyCorrector.c
c
Definition:
EnergyCorrector.py:44
FBaseSimEvent
Definition:
FBaseSimEvent.h:42
tkConvValidator_cfi.simTracks
simTracks
Definition:
tkConvValidator_cfi.py:137
FSimEvent::weight_
double weight_
Definition:
FSimEvent.h:67
HepMC::GenEvent
Definition:
hepmc_rootio.cc:9
edm::EventID
Definition:
EventID.h:31
GenParticleFwd.h
FSimVertexTypeCollection
std::vector< FSimVertexType > FSimVertexTypeCollection
collection of FSimVertexType objects
Definition:
FSimVertexTypeFwd.h:7
FSimEvent::nTracks
unsigned int nTracks() const
Number of tracks.
Definition:
FSimEvent.cc:36
FSimEvent::id
edm::EventID id() const
Method to return the EventId.
Definition:
FSimEvent.cc:27
FSimEvent::nGenParts
unsigned int nGenParts() const
Number of MC particles.
Definition:
FSimEvent.cc:46
FSimEvent::~FSimEvent
virtual ~FSimEvent()
usual virtual destructor
Definition:
FSimEvent.cc:10
FSimEvent::nVertices
unsigned int nVertices() const
Number of vertices.
Definition:
FSimEvent.cc:41
edm::SimVertexContainer
std::vector< SimVertex > SimVertexContainer
Definition:
SimVertexContainer.h:12
FSimEvent::weight
float weight() const
Method to return the event weight.
Definition:
FSimEvent.cc:31
funct::m
m
Definition:
Factorize.h:56
SimTrackContainer.h
edm::ParameterSet
Definition:
ParameterSet.h:36
FSimEvent
Definition:
FSimEvent.h:29
edm::SimTrackContainer
std::vector< SimTrack > SimTrackContainer
Definition:
SimTrackContainer.h:12
HGCalValidator_cfi.simVertices
simVertices
Definition:
HGCalValidator_cfi.py:33
SimVertexContainer.h
FSimEvent::id_
edm::EventID id_
Definition:
FSimEvent.h:66
Generated for CMSSW Reference Manual by
1.8.11