CMS 3D CMS Logo

edm::GenHIEvent Class Reference

#include <SimDataFormats/HiGenData/interface/GenHIEvent.h>

List of all members.

Public Member Functions

 GenHIEvent (std::vector< SubEvent > evs, int x=0)
 GenHIEvent ()
int getNsubs () const
std::vector< HepMC::GenParticle * > getParticles (const HepMC::GenEvent &evt, int sub_id) const
SubEvent getSubEvent (int sub_id) const
const HepMC::GenVertex * getVertex (const HepMC::GenEvent &evt, int sub_id) const
virtual ~GenHIEvent ()

Private Attributes

std::vector< SubEventevts_
int sel_


Detailed Description

Definition at line 11 of file GenHIEvent.h.


Constructor & Destructor Documentation

edm::GenHIEvent::GenHIEvent (  )  [inline]

Definition at line 13 of file GenHIEvent.h.

00013 : evts_(0), sel_(0) {}

edm::GenHIEvent::GenHIEvent ( std::vector< SubEvent evs,
int  x = 0 
) [inline]

Definition at line 14 of file GenHIEvent.h.

00014 : evts_(evs), sel_(x) {}

virtual edm::GenHIEvent::~GenHIEvent (  )  [inline, virtual]

Definition at line 15 of file GenHIEvent.h.

00015 {}


Member Function Documentation

int edm::GenHIEvent::getNsubs (  )  const [inline]

Definition at line 19 of file GenHIEvent.h.

References evts_.

00019 {return evts_.size();}

std::vector< HepMC::GenParticle * > GenHIEvent::getParticles ( const HepMC::GenEvent &  evt,
int  sub_id 
) const

Definition at line 10 of file GenHIEvent.cc.

References edm::SubEvent::getParticles(), and getSubEvent().

00010                                                                                                 {
00011    std::vector<HepMC::GenParticle*> particles = getSubEvent(sub_id).getParticles(evt);
00012    return particles;
00013 }

SubEvent GenHIEvent::getSubEvent ( int  sub_id  )  const

Definition at line 5 of file GenHIEvent.cc.

References evts_.

Referenced by getParticles(), and getVertex().

00005                                                  {
00006    SubEvent evt = evts_[sub_id]; 
00007    return evt;
00008 }

const HepMC::GenVertex * GenHIEvent::getVertex ( const HepMC::GenEvent &  evt,
int  sub_id 
) const

Definition at line 15 of file GenHIEvent.cc.

References getSubEvent(), and edm::SubEvent::getVertex().

00015                                                                                       {
00016    const HepMC::GenVertex* vertex = getSubEvent(sub_id).getVertex(evt);
00017    return vertex;
00018 }


Member Data Documentation

std::vector<SubEvent> edm::GenHIEvent::evts_ [private]

Definition at line 22 of file GenHIEvent.h.

Referenced by getNsubs(), and getSubEvent().

int edm::GenHIEvent::sel_ [private]

Definition at line 23 of file GenHIEvent.h.


The documentation for this class was generated from the following files:
Generated on Tue Jun 9 18:41:02 2009 for CMSSW by  doxygen 1.5.4