Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members

MCParticleSIO Class Reference

#include <MCParticleSIO.h>

Collaboration diagram for MCParticleSIO:

Collaboration graph
[legend]
List of all members.

Public Types

enum  Status {
  ALIVE, DECAYED, INTERACTED, LEFT,
  STOPPED, LOOPING, LOST, STUCK,
  PRIMARY, SHOWER, MAXSTEPS
}

Public Member Functions

 MCParticleSIO (long id, int charge, double energy)
 ~MCParticleSIO ()
MCParticleSIO::Status status () const
void setStatus (MCParticleSIO::Status)
MCParticleSIO::Status GetG4Status () const
void SetG4Status (MCParticleSIO::Status)
int getfsflag () const
void setfsflag (int fsflag)
int GetGenStatus () const
void SetGenStatus (int fsflag)
const MCParticleSIOparent () const
const MCParticleSIOchild (int i) const
int numChildren () const
void setPosition (double x, double y, double z)
void setCalPosition (double x, double y, double z)
void setMomentum (double px, double py, double pz)
void setCalMomentum (double px, double py, double pz)
double x () const
double y () const
double z () const
double px () const
double py () const
double pz () const
int id () const
int charge () const
double energy () const
void addChild (MCParticleSIO *child)
void setParent (MCParticleSIO *parent)
void setMcPart (LCDMcPart *mcp)
const LCDMcPartgetMcPart ()
double calX () const
double calY () const
double calZ () const
double calPX () const
double calPY () const
double calPZ () const

Private Attributes

int _id
int _charge
double _energy
double _x
double _y
double _z
double _px
double _py
double _pz
double _calx
double _caly
double _calz
double _calpx
double _calpy
double _calpz
Status _status
int _fsflag
MCParticleSIO_parent
std::vector< MCParticleSIO * > _children
LCDMcPartpMcPart

Member Enumeration Documentation

enum MCParticleSIO::Status
 

Enumeration values:
ALIVE 
DECAYED 
INTERACTED 
LEFT 
STOPPED 
LOOPING 
LOST 
STUCK 
PRIMARY 
SHOWER 
MAXSTEPS 

Definition at line 23 of file MCParticleSIO.h.

Referenced by LCDG4EventAction::EndOfEventAction(), GetG4Status(), and status().


Constructor & Destructor Documentation

MCParticleSIO::MCParticleSIO long  id,
int  charge,
double  energy
 

Definition at line 11 of file MCParticleSIO.cc.

References setCalMomentum(), setCalPosition(), setMomentum(), and setPosition().

00012   : _id(id)
00013   , _charge(charge)
00014   , _energy(energy)
00015   , _status(ALIVE)
00016 {
00017   setPosition(0.,0.,0.);
00018   setMomentum(0.,0.,0.);
00019   setCalPosition(0.,0.,0.);
00020   setCalMomentum(0.,0.,0.);
00021 }

MCParticleSIO::~MCParticleSIO  ) 
 

Definition at line 23 of file MCParticleSIO.cc.

00024 {
00025 }


Member Function Documentation

void MCParticleSIO::addChild MCParticleSIO child  ) 
 

Definition at line 27 of file MCParticleSIO.cc.

References _children.

Referenced by LCDG4EventAction::EndOfEventAction().

00028 {
00029   _children.push_back(child);
00030 }

double MCParticleSIO::calPX  )  const [inline]
 

Definition at line 86 of file MCParticleSIO.h.

References _calpx.

Referenced by MCPrintSIO::xfer_recurse().

00086 { return _calpx; }

double MCParticleSIO::calPY  )  const [inline]
 

Definition at line 87 of file MCParticleSIO.h.

References _calpy.

Referenced by MCPrintSIO::xfer_recurse().

00087 { return _calpy; }

double MCParticleSIO::calPZ  )  const [inline]
 

Definition at line 88 of file MCParticleSIO.h.

References _calpz.

Referenced by MCPrintSIO::xfer_recurse().

00088 { return _calpz; }

double MCParticleSIO::calX  )  const [inline]
 

Definition at line 83 of file MCParticleSIO.h.

References _calx.

Referenced by MCPrintSIO::xfer_recurse().

00083 { return _calx; }

double MCParticleSIO::calY  )  const [inline]
 

Definition at line 84 of file MCParticleSIO.h.

References _caly.

Referenced by MCPrintSIO::xfer_recurse().

00084 { return _caly; }

double MCParticleSIO::calZ  )  const [inline]
 

Definition at line 85 of file MCParticleSIO.h.

References _calz.

Referenced by MCPrintSIO::xfer_recurse().

00085 { return _calz; }

int MCParticleSIO::charge  )  const [inline]
 

Definition at line 144 of file MCParticleSIO.h.

References _charge.

Referenced by MCPrintSIO::xfer_recurse().

00145 {return _charge;}

const MCParticleSIO * MCParticleSIO::child int  i  )  const
 

Definition at line 37 of file MCParticleSIO.cc.

References _children.

Referenced by MCPrintSIO::particleCnt(), and MCPrintSIO::xfer_recurse().

00038 {
00039   return _children[i];
00040 }

double MCParticleSIO::energy  )  const [inline]
 

Definition at line 147 of file MCParticleSIO.h.

References _energy.

Referenced by MCPrintSIO::xfer_recurse().

00148 {return _energy;}

int MCParticleSIO::getfsflag  )  const [inline]
 

Definition at line 121 of file MCParticleSIO.h.

References _fsflag.

Referenced by LCDG4EventAction::EndOfEventAction(), and MCPrintSIO::xfer_recurse().

00121 { return _fsflag;}

MCParticleSIO::Status MCParticleSIO::GetG4Status  )  const [inline]
 

Definition at line 118 of file MCParticleSIO.h.

References Status.

Referenced by LCDG4EventAction::EndOfEventAction().

00118 {return _status;}

int MCParticleSIO::GetGenStatus  )  const [inline]
 

Definition at line 122 of file MCParticleSIO.h.

References _fsflag.

00122 { return _fsflag;}

const LCDMcPart* MCParticleSIO::getMcPart  )  [inline]
 

Definition at line 81 of file MCParticleSIO.h.

References pMcPart.

Referenced by LCDG4EventAction::EndOfEventAction().

00081 { return pMcPart; }

int MCParticleSIO::id  )  const [inline]
 

Definition at line 141 of file MCParticleSIO.h.

References _id.

Referenced by MCPrintSIO::xfer_recurse().

00142 {return _id;}

int MCParticleSIO::numChildren  )  const [inline]
 

Definition at line 126 of file MCParticleSIO.h.

References _children.

Referenced by MCPrintSIO::particleCnt().

00126 {return _children.size();}

const MCParticleSIO * MCParticleSIO::parent  )  const
 

Definition at line 42 of file MCParticleSIO.cc.

References _parent.

Referenced by MCPrintSIO::xfer_recurse().

00043 {
00044   return _parent;
00045 }

double MCParticleSIO::px  )  const [inline]
 

Definition at line 130 of file MCParticleSIO.h.

References _px.

Referenced by MCPrintSIO::xfer_recurse().

00131 {return _px;}

double MCParticleSIO::py  )  const [inline]
 

Definition at line 134 of file MCParticleSIO.h.

References _py.

Referenced by MCPrintSIO::xfer_recurse().

00135 {return _py;}

double MCParticleSIO::pz  )  const [inline]
 

Definition at line 138 of file MCParticleSIO.h.

References _pz.

Referenced by MCPrintSIO::xfer_recurse().

00139 {return _pz;}

void MCParticleSIO::setCalMomentum double  px,
double  py,
double  pz
 

Definition at line 62 of file MCParticleSIO.cc.

References _calpx, _calpy, and _calpz.

Referenced by LCDG4EventAction::EndOfEventAction(), and MCParticleSIO().

00063 {
00064   _calpx = px;
00065   _calpy = py;
00066   _calpz = pz;
00067 }

void MCParticleSIO::setCalPosition double  x,
double  y,
double  z
 

Definition at line 58 of file MCParticleSIO.cc.

References _calx, _caly, and _calz.

Referenced by LCDG4EventAction::EndOfEventAction(), and MCParticleSIO().

00058                                                                {
00059   _calx = x;  _caly = y;  _calz = z;
00060 }

void MCParticleSIO::setfsflag int  fsflag  )  [inline]
 

Definition at line 123 of file MCParticleSIO.h.

References _fsflag.

Referenced by LCDG4EventAction::EndOfEventAction().

00123 { _fsflag = fsflag;}

void MCParticleSIO::SetG4Status MCParticleSIO::Status   )  [inline]
 

Definition at line 119 of file MCParticleSIO.h.

References _status.

Referenced by LCDG4EventAction::EndOfEventAction().

00119 {_status = s;}

void MCParticleSIO::SetGenStatus int  fsflag  )  [inline]
 

Definition at line 124 of file MCParticleSIO.h.

References _fsflag.

00124 { _fsflag = fsflag;}

void MCParticleSIO::setMcPart LCDMcPart mcp  )  [inline]
 

Definition at line 80 of file MCParticleSIO.h.

References pMcPart.

Referenced by LCDG4EventAction::EndOfEventAction().

00080 { pMcPart = mcp; }

void MCParticleSIO::setMomentum double  px,
double  py,
double  pz
 

Definition at line 51 of file MCParticleSIO.cc.

References _px, _py, and _pz.

Referenced by LCDG4EventAction::EndOfEventAction(), and MCParticleSIO().

00052 {
00053   _px = px;
00054   _py = py;
00055   _pz = pz;
00056 }

void MCParticleSIO::setParent MCParticleSIO parent  ) 
 

Definition at line 32 of file MCParticleSIO.cc.

References _parent.

Referenced by LCDG4EventAction::EndOfEventAction().

00033 {
00034   _parent = parent;
00035 }

void MCParticleSIO::setPosition double  x,
double  y,
double  z
 

Definition at line 47 of file MCParticleSIO.cc.

References _x, _y, and _z.

Referenced by LCDG4EventAction::EndOfEventAction(), and MCParticleSIO().

00047                                                             {
00048   _x = x;  _y = y;  _z = z;
00049 }

void MCParticleSIO::setStatus MCParticleSIO::Status   )  [inline]
 

Definition at line 117 of file MCParticleSIO.h.

References _status.

Referenced by LCDG4EventAction::EndOfEventAction().

00117 {_status = s;}

MCParticleSIO::Status MCParticleSIO::status  )  const [inline]
 

Definition at line 116 of file MCParticleSIO.h.

References Status.

Referenced by LCDG4EventAction::EndOfEventAction(), and MCPrintSIO::xfer_recurse().

00116 {return _status;}

double MCParticleSIO::x  )  const [inline]
 

Definition at line 128 of file MCParticleSIO.h.

References _x.

Referenced by MCPrintSIO::xfer_recurse().

00129 {return _x;}

double MCParticleSIO::y  )  const [inline]
 

Definition at line 132 of file MCParticleSIO.h.

References _y.

Referenced by MCPrintSIO::xfer_recurse().

00133 {return _y;}

double MCParticleSIO::z  )  const [inline]
 

Definition at line 136 of file MCParticleSIO.h.

References _z.

Referenced by MCPrintSIO::xfer_recurse().

00137 {return _z;}


Member Data Documentation

double MCParticleSIO::_calpx [private]
 

Definition at line 103 of file MCParticleSIO.h.

Referenced by calPX(), and setCalMomentum().

double MCParticleSIO::_calpy [private]
 

Definition at line 103 of file MCParticleSIO.h.

Referenced by calPY(), and setCalMomentum().

double MCParticleSIO::_calpz [private]
 

Definition at line 103 of file MCParticleSIO.h.

Referenced by calPZ(), and setCalMomentum().

double MCParticleSIO::_calx [private]
 

Definition at line 102 of file MCParticleSIO.h.

Referenced by calX(), and setCalPosition().

double MCParticleSIO::_caly [private]
 

Definition at line 102 of file MCParticleSIO.h.

Referenced by calY(), and setCalPosition().

double MCParticleSIO::_calz [private]
 

Definition at line 102 of file MCParticleSIO.h.

Referenced by calZ(), and setCalPosition().

int MCParticleSIO::_charge [private]
 

Definition at line 93 of file MCParticleSIO.h.

Referenced by charge().

std::vector< MCParticleSIO*> MCParticleSIO::_children [private]
 

Definition at line 111 of file MCParticleSIO.h.

Referenced by addChild(), child(), and numChildren().

double MCParticleSIO::_energy [private]
 

Definition at line 94 of file MCParticleSIO.h.

Referenced by energy().

int MCParticleSIO::_fsflag [private]
 

Definition at line 106 of file MCParticleSIO.h.

Referenced by getfsflag(), GetGenStatus(), setfsflag(), and SetGenStatus().

int MCParticleSIO::_id [private]
 

Definition at line 92 of file MCParticleSIO.h.

Referenced by id().

MCParticleSIO* MCParticleSIO::_parent [private]
 

Definition at line 110 of file MCParticleSIO.h.

Referenced by parent(), and setParent().

double MCParticleSIO::_px [private]
 

Definition at line 99 of file MCParticleSIO.h.

Referenced by px(), and setMomentum().

double MCParticleSIO::_py [private]
 

Definition at line 100 of file MCParticleSIO.h.

Referenced by py(), and setMomentum().

double MCParticleSIO::_pz [private]
 

Definition at line 101 of file MCParticleSIO.h.

Referenced by pz(), and setMomentum().

Status MCParticleSIO::_status [private]
 

Definition at line 105 of file MCParticleSIO.h.

Referenced by SetG4Status(), and setStatus().

double MCParticleSIO::_x [private]
 

Definition at line 96 of file MCParticleSIO.h.

Referenced by setPosition(), and x().

double MCParticleSIO::_y [private]
 

Definition at line 97 of file MCParticleSIO.h.

Referenced by setPosition(), and y().

double MCParticleSIO::_z [private]
 

Definition at line 98 of file MCParticleSIO.h.

Referenced by setPosition(), and z().

LCDMcPart* MCParticleSIO::pMcPart [private]
 

Definition at line 113 of file MCParticleSIO.h.

Referenced by getMcPart(), and setMcPart().


The documentation for this class was generated from the following files:
Generated on Thu Oct 7 18:45:09 2004 for LCDG4 by doxygen 1.3.4