CMS 3D CMS Logo

NUEvent Class Reference

#include <FastSimDataFormats/NuclearInteractions/interface/NUEvent.h>

List of all members.

Public Member Functions

void addNUInteraction (const NUInteraction &idx)
void addNUParticle (const NUParticle &ptc)
const unsigned nInteractions () const
const unsigned nParticles () const
 NUEvent ()
void reset ()
const std::vector
< NUEvent::NUInteraction > & 
theNUInteractions ()
const std::vector
< NUEvent::NUParticle > & 
theNUParticles ()
virtual ~NUEvent ()

Private Attributes

unsigned NInteractions_
unsigned NParticles_
std::vector
< NUEvent::NUInteraction
NUInteractions_
std::vector< NUEvent::NUParticleNUParticles_

Classes

class  NUInteraction
class  NUParticle


Detailed Description

Definition at line 6 of file NUEvent.h.


Constructor & Destructor Documentation

NUEvent::NUEvent (  )  [inline]

Definition at line 10 of file NUEvent.h.

00010 : NParticles_(0), NInteractions_(0) {}

virtual NUEvent::~NUEvent (  )  [inline, virtual]

Definition at line 11 of file NUEvent.h.

00011 {}


Member Function Documentation

void NUEvent::addNUInteraction ( const NUInteraction idx  )  [inline]

Definition at line 45 of file NUEvent.h.

References NInteractions_, and NUInteractions_.

00045                                                     {
00046     NUInteractions_.push_back(idx);
00047     ++NInteractions_;
00048   }

void NUEvent::addNUParticle ( const NUParticle ptc  )  [inline]

Definition at line 40 of file NUEvent.h.

References NParticles_, and NUParticles_.

00040                                               {
00041     NUParticles_.push_back(ptc);
00042     ++NParticles_;
00043   }

const unsigned NUEvent::nInteractions (  )  const [inline]

Definition at line 58 of file NUEvent.h.

References NInteractions_.

00058 { return NInteractions_; }

const unsigned NUEvent::nParticles (  )  const [inline]

Definition at line 56 of file NUEvent.h.

References NParticles_.

00056 { return NParticles_; }

void NUEvent::reset ( void   )  [inline]

Definition at line 12 of file NUEvent.h.

References NInteractions_, NParticles_, NUInteractions_, and NUParticles_.

00012                {
00013     NUParticles_.clear();
00014     NUInteractions_.clear();
00015     NParticles_ = 0;
00016     NInteractions_ = 0;  
00017   }

const std::vector<NUEvent::NUInteraction>& NUEvent::theNUInteractions (  )  [inline]

Definition at line 53 of file NUEvent.h.

References NUInteractions_.

00054     {return NUInteractions_;}

const std::vector<NUEvent::NUParticle>& NUEvent::theNUParticles (  )  [inline]

Definition at line 50 of file NUEvent.h.

References NUParticles_.

00051     {return NUParticles_;}


Member Data Documentation

unsigned NUEvent::NInteractions_ [private]

Definition at line 65 of file NUEvent.h.

Referenced by addNUInteraction(), nInteractions(), and reset().

unsigned NUEvent::NParticles_ [private]

Definition at line 64 of file NUEvent.h.

Referenced by addNUParticle(), nParticles(), and reset().

std::vector<NUEvent::NUInteraction> NUEvent::NUInteractions_ [private]

Definition at line 63 of file NUEvent.h.

Referenced by addNUInteraction(), reset(), and theNUInteractions().

std::vector<NUEvent::NUParticle> NUEvent::NUParticles_ [private]

Definition at line 62 of file NUEvent.h.

Referenced by addNUParticle(), reset(), and theNUParticles().


The documentation for this class was generated from the following file:
Generated on Tue Jun 9 18:29:07 2009 for CMSSW by  doxygen 1.5.4