#include <McTrajectory.h>
Inheritance diagram for Event::McTrajectory:
Public Member Functions | |
virtual const CLID & | clID () const |
McTrajectory () | |
~McTrajectory () | |
void | addPoints (std::vector< Hep3Vector > &points) |
Add the 3d points to the trajectory. | |
void | setMcParticle (SmartRef< McParticle > value) |
Set the pointer to the McParticle. | |
void | setMcParticle (McParticle *value) |
Update pointer to McParticle (by a C++ pointer or a smart reference). | |
const McParticle * | getMcParticle () const |
Retrieve pointer to McParticle (const or non-const). | |
McParticle * | getMcParticle () |
std::vector< Hep3Vector > & | getPoints () |
Get the 3d points. | |
int | getCharge () const |
get, set charge | |
void | setCharge (int charge) |
Static Public Member Functions | |
static const CLID & | classID () |
Private Attributes | |
SmartRef< McParticle > | m_mcParticle |
Pointer to McParticle of this trajectory. | |
std::vector< Hep3Vector > | m_points |
The point of the trajectory. | |
int | m_charge |
the (redundant?) charge |
Definition at line 19 of file McTrajectory.h.
Event::McTrajectory::McTrajectory | ( | ) | [inline] |
Event::McTrajectory::~McTrajectory | ( | ) | [inline] |
void Event::McTrajectory::addPoints | ( | std::vector< Hep3Vector > & | points | ) |
Add the 3d points to the trajectory.
Definition at line 24 of file McTrajectory.cxx.
References m_points.
00024 { 00025 m_points = points; 00026 }
static const CLID& Event::McTrajectory::classID | ( | ) | [inline, static] |
Definition at line 23 of file McTrajectory.h.
References CLID_McTrajectory.
Referenced by clID().
00023 { return CLID_McTrajectory; }
virtual const CLID& Event::McTrajectory::clID | ( | ) | const [inline, virtual] |
Definition at line 22 of file McTrajectory.h.
References classID().
00022 { return McTrajectory::classID(); }
int Event::McTrajectory::getCharge | ( | ) | const [inline] |
get, set charge
Definition at line 43 of file McTrajectory.h.
References m_charge.
00043 { return m_charge; }
McParticle * Event::McTrajectory::getMcParticle | ( | ) |
Definition at line 11 of file McTrajectory.cxx.
References m_mcParticle.
00011 { 00012 return m_mcParticle; 00013 }
const McParticle * Event::McTrajectory::getMcParticle | ( | ) | const |
Retrieve pointer to McParticle (const or non-const).
Definition at line 8 of file McTrajectory.cxx.
References m_mcParticle.
00008 { 00009 return m_mcParticle; 00010 }
std::vector<Hep3Vector>& Event::McTrajectory::getPoints | ( | ) | [inline] |
Get the 3d points.
Definition at line 40 of file McTrajectory.h.
References m_points.
00040 {return m_points;}
void Event::McTrajectory::setCharge | ( | int | charge | ) | [inline] |
void Event::McTrajectory::setMcParticle | ( | McParticle * | value | ) |
Update pointer to McParticle (by a C++ pointer or a smart reference).
Definition at line 16 of file McTrajectory.cxx.
References m_mcParticle.
00016 { 00017 m_mcParticle = value; 00018 }
void Event::McTrajectory::setMcParticle | ( | SmartRef< McParticle > | value | ) |
Set the pointer to the McParticle.
Definition at line 20 of file McTrajectory.cxx.
References m_mcParticle.
00020 { 00021 m_mcParticle = value; 00022 }
int Event::McTrajectory::m_charge [private] |
the (redundant?) charge
Definition at line 52 of file McTrajectory.h.
Referenced by getCharge(), and setCharge().
SmartRef<McParticle> Event::McTrajectory::m_mcParticle [private] |
Pointer to McParticle of this trajectory.
Definition at line 48 of file McTrajectory.h.
Referenced by getMcParticle(), and setMcParticle().
std::vector<Hep3Vector> Event::McTrajectory::m_points [private] |
The point of the trajectory.
Definition at line 50 of file McTrajectory.h.
Referenced by addPoints(), and getPoints().