Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
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
RandomEngineAndDistribution
;
30
31
class
FSimEvent
:
public
FBaseSimEvent
{
32
33
public
:
34
36
FSimEvent
(
const
edm::ParameterSet
& kine);
37
38
FSimEvent
(
const
edm::ParameterSet
& vtx,
39
const
edm::ParameterSet
& kine);
40
42
virtual
~FSimEvent
();
43
45
void
fill
(
const
HepMC::GenEvent & hev,
edm::EventID
& Id,
RandomEngineAndDistribution
const
*);
46
48
void
fill
(
const
reco::GenParticleCollection
&
parts
,
edm::EventID
& Id,
RandomEngineAndDistribution
const
*);
49
51
void
fill
(
const
std::vector<SimTrack>& simTracks,
52
const
std::vector<SimVertex>& simVertices);
53
55
edm::EventID
id
()
const
;
56
58
float
weight
()
const
;
59
61
unsigned
int
nTracks
()
const
;
63
unsigned
int
nVertices
()
const
;
65
unsigned
int
nGenParts
()
const
;
66
68
void
load
(
edm::SimTrackContainer
&
c
,
edm::SimTrackContainer
&
m
)
const
;
69
void
load
(
edm::SimVertexContainer
& c)
const
;
70
void
load
(
FSimVertexTypeCollection
& c)
const
;
71
72
private
:
73
74
edm::EventID
id_
;
75
double
weight_
;
76
77
};
78
79
#endif // FSIMEVENT_H
reco::GenParticleCollection
std::vector< GenParticle > GenParticleCollection
collection of GenParticles
Definition:
GenParticleFwd.h:10
FSimEvent::fill
void fill(const HepMC::GenEvent &hev, edm::EventID &Id, RandomEngineAndDistribution const *)
fill the FBaseSimEvent from the current HepMC::GenEvent
Definition:
FSimEvent.cc:25
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:62
FSimEvent::FSimEvent
FSimEvent(const edm::ParameterSet &kine)
Default constructor.
Definition:
FSimEvent.cc:6
FBaseSimEvent
Definition:
FBaseSimEvent.h:45
FSimEvent::weight_
double weight_
Definition:
FSimEvent.h:75
contentValuesFiles.parts
parts
Definition:
contentValuesFiles.py:58
edm::EventID
Definition:
EventID.h:34
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:47
FSimEvent::id
edm::EventID id() const
Method to return the EventId.
Definition:
FSimEvent.cc:38
m
int m
Definition:
DTDataIntegrityTask.cc:30
FSimEvent::nGenParts
unsigned int nGenParts() const
Number of MC particles.
Definition:
FSimEvent.cc:57
FSimEvent::~FSimEvent
virtual ~FSimEvent()
usual virtual destructor
Definition:
FSimEvent.cc:15
FSimEvent::nVertices
unsigned int nVertices() const
Number of vertices.
Definition:
FSimEvent.cc:52
edm::SimVertexContainer
std::vector< SimVertex > SimVertexContainer
Definition:
SimVertexContainer.h:13
FSimEvent::weight
float weight() const
Method to return the event weight.
Definition:
FSimEvent.cc:42
trackerHits.c
tuple c
Definition:
trackerHits.py:26
SimTrackContainer.h
edm::ParameterSet
Definition:
ParameterSet.h:35
FSimEvent
Definition:
FSimEvent.h:31
edm::SimTrackContainer
std::vector< SimTrack > SimTrackContainer
Definition:
SimTrackContainer.h:12
RandomEngineAndDistribution
Definition:
RandomEngineAndDistribution.h:18
SimVertexContainer.h
FSimEvent::id_
edm::EventID id_
Definition:
FSimEvent.h:74
Generated for CMSSW Reference Manual by
1.8.5