#include <MCParticleSIO.h>
Collaboration diagram for MCParticleSIO:

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 MCParticleSIO * | parent () const |
| const MCParticleSIO * | child (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 LCDMcPart * | getMcPart () |
| 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 |
| LCDMcPart * | pMcPart |
|
|
Definition at line 23 of file MCParticleSIO.h. Referenced by LCDG4EventAction::EndOfEventAction(), GetG4Status(), and status().
|
|
||||||||||||||||
|
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 } |
|
|
Definition at line 23 of file MCParticleSIO.cc.
00024 {
00025 }
|
|
|
Definition at line 27 of file MCParticleSIO.cc. References _children. Referenced by LCDG4EventAction::EndOfEventAction().
00028 {
00029 _children.push_back(child);
00030 }
|
|
|
Definition at line 86 of file MCParticleSIO.h. References _calpx. Referenced by MCPrintSIO::xfer_recurse().
00086 { return _calpx; }
|
|
|
Definition at line 87 of file MCParticleSIO.h. References _calpy. Referenced by MCPrintSIO::xfer_recurse().
00087 { return _calpy; }
|
|
|
Definition at line 88 of file MCParticleSIO.h. References _calpz. Referenced by MCPrintSIO::xfer_recurse().
00088 { return _calpz; }
|
|
|
Definition at line 83 of file MCParticleSIO.h. References _calx. Referenced by MCPrintSIO::xfer_recurse().
00083 { return _calx; }
|
|
|
Definition at line 84 of file MCParticleSIO.h. References _caly. Referenced by MCPrintSIO::xfer_recurse().
00084 { return _caly; }
|
|
|
Definition at line 85 of file MCParticleSIO.h. References _calz. Referenced by MCPrintSIO::xfer_recurse().
00085 { return _calz; }
|
|
|
Definition at line 144 of file MCParticleSIO.h. References _charge. Referenced by MCPrintSIO::xfer_recurse().
00145 {return _charge;}
|
|
|
Definition at line 37 of file MCParticleSIO.cc. References _children. Referenced by MCPrintSIO::particleCnt(), and MCPrintSIO::xfer_recurse().
00038 {
00039 return _children[i];
00040 }
|
|
|
Definition at line 147 of file MCParticleSIO.h. References _energy. Referenced by MCPrintSIO::xfer_recurse().
00148 {return _energy;}
|
|
|
Definition at line 121 of file MCParticleSIO.h. References _fsflag. Referenced by LCDG4EventAction::EndOfEventAction(), and MCPrintSIO::xfer_recurse().
00121 { return _fsflag;}
|
|
|
Definition at line 118 of file MCParticleSIO.h. References Status. Referenced by LCDG4EventAction::EndOfEventAction().
00118 {return _status;}
|
|
|
Definition at line 122 of file MCParticleSIO.h. References _fsflag.
00122 { return _fsflag;}
|
|
|
Definition at line 81 of file MCParticleSIO.h. References pMcPart. Referenced by LCDG4EventAction::EndOfEventAction().
00081 { return pMcPart; }
|
|
|
Definition at line 141 of file MCParticleSIO.h. References _id. Referenced by MCPrintSIO::xfer_recurse().
00142 {return _id;}
|
|
|
Definition at line 126 of file MCParticleSIO.h. References _children. Referenced by MCPrintSIO::particleCnt().
00126 {return _children.size();}
|
|
|
Definition at line 42 of file MCParticleSIO.cc. References _parent. Referenced by MCPrintSIO::xfer_recurse().
00043 {
00044 return _parent;
00045 }
|
|
|
Definition at line 130 of file MCParticleSIO.h. References _px. Referenced by MCPrintSIO::xfer_recurse().
00131 {return _px;}
|
|
|
Definition at line 134 of file MCParticleSIO.h. References _py. Referenced by MCPrintSIO::xfer_recurse().
00135 {return _py;}
|
|
|
Definition at line 138 of file MCParticleSIO.h. References _pz. Referenced by MCPrintSIO::xfer_recurse().
00139 {return _pz;}
|
|
||||||||||||||||
|
Definition at line 62 of file MCParticleSIO.cc. References _calpx, _calpy, and _calpz. Referenced by LCDG4EventAction::EndOfEventAction(), and MCParticleSIO().
|
|
||||||||||||||||
|
Definition at line 58 of file MCParticleSIO.cc. References _calx, _caly, and _calz. Referenced by LCDG4EventAction::EndOfEventAction(), and MCParticleSIO().
|
|
|
Definition at line 123 of file MCParticleSIO.h. References _fsflag. Referenced by LCDG4EventAction::EndOfEventAction().
00123 { _fsflag = fsflag;}
|
|
|
Definition at line 119 of file MCParticleSIO.h. References _status. Referenced by LCDG4EventAction::EndOfEventAction().
00119 {_status = s;}
|
|
|
Definition at line 124 of file MCParticleSIO.h. References _fsflag.
00124 { _fsflag = fsflag;}
|
|
|
Definition at line 80 of file MCParticleSIO.h. References pMcPart. Referenced by LCDG4EventAction::EndOfEventAction().
00080 { pMcPart = mcp; }
|
|
||||||||||||||||
|
Definition at line 51 of file MCParticleSIO.cc. Referenced by LCDG4EventAction::EndOfEventAction(), and MCParticleSIO().
|
|
|
Definition at line 32 of file MCParticleSIO.cc. References _parent. Referenced by LCDG4EventAction::EndOfEventAction().
00033 {
00034 _parent = parent;
00035 }
|
|
||||||||||||||||
|
Definition at line 47 of file MCParticleSIO.cc. Referenced by LCDG4EventAction::EndOfEventAction(), and MCParticleSIO().
|
|
|
Definition at line 117 of file MCParticleSIO.h. References _status. Referenced by LCDG4EventAction::EndOfEventAction().
00117 {_status = s;}
|
|
|
Definition at line 116 of file MCParticleSIO.h. References Status. Referenced by LCDG4EventAction::EndOfEventAction(), and MCPrintSIO::xfer_recurse().
00116 {return _status;}
|
|
|
Definition at line 128 of file MCParticleSIO.h. References _x. Referenced by MCPrintSIO::xfer_recurse().
00129 {return _x;}
|
|
|
Definition at line 132 of file MCParticleSIO.h. References _y. Referenced by MCPrintSIO::xfer_recurse().
00133 {return _y;}
|
|
|
Definition at line 136 of file MCParticleSIO.h. References _z. Referenced by MCPrintSIO::xfer_recurse().
00137 {return _z;}
|
|
|
Definition at line 103 of file MCParticleSIO.h. Referenced by calPX(), and setCalMomentum(). |
|
|
Definition at line 103 of file MCParticleSIO.h. Referenced by calPY(), and setCalMomentum(). |
|
|
Definition at line 103 of file MCParticleSIO.h. Referenced by calPZ(), and setCalMomentum(). |
|
|
Definition at line 102 of file MCParticleSIO.h. Referenced by calX(), and setCalPosition(). |
|
|
Definition at line 102 of file MCParticleSIO.h. Referenced by calY(), and setCalPosition(). |
|
|
Definition at line 102 of file MCParticleSIO.h. Referenced by calZ(), and setCalPosition(). |
|
|
Definition at line 93 of file MCParticleSIO.h. Referenced by charge(). |
|
|
Definition at line 111 of file MCParticleSIO.h. Referenced by addChild(), child(), and numChildren(). |
|
|
Definition at line 94 of file MCParticleSIO.h. Referenced by energy(). |
|
|
Definition at line 106 of file MCParticleSIO.h. Referenced by getfsflag(), GetGenStatus(), setfsflag(), and SetGenStatus(). |
|
|
Definition at line 92 of file MCParticleSIO.h. Referenced by id(). |
|
|
Definition at line 110 of file MCParticleSIO.h. Referenced by parent(), and setParent(). |
|
|
Definition at line 99 of file MCParticleSIO.h. Referenced by px(), and setMomentum(). |
|
|
Definition at line 100 of file MCParticleSIO.h. Referenced by py(), and setMomentum(). |
|
|
Definition at line 101 of file MCParticleSIO.h. Referenced by pz(), and setMomentum(). |
|
|
Definition at line 105 of file MCParticleSIO.h. Referenced by SetG4Status(), and setStatus(). |
|
|
Definition at line 96 of file MCParticleSIO.h. Referenced by setPosition(), and x(). |
|
|
Definition at line 97 of file MCParticleSIO.h. Referenced by setPosition(), and y(). |
|
|
Definition at line 98 of file MCParticleSIO.h. Referenced by setPosition(), and z(). |
|
|
Definition at line 113 of file MCParticleSIO.h. Referenced by getMcPart(), and setMcPart(). |
1.3.4