CGEM BOSS 6.6.5.i
BESIII Offline Software System
Loading...
Searching...
No Matches
Event::McTrajectory Class Reference

#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 McParticlegetMcParticle () const
 Get the pointer to the McParticle.
 
McParticlegetMcParticle ()
 
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 ()
 

Detailed Description

Definition at line 19 of file McTrajectory.h.

Constructor & Destructor Documentation

◆ McTrajectory()

Event::McTrajectory::McTrajectory ( )
inline

Definition at line 25 of file McTrajectory.h.

25{}

◆ ~McTrajectory()

Event::McTrajectory::~McTrajectory ( )
inline

Definition at line 26 of file McTrajectory.h.

26{}

Member Function Documentation

◆ addPoints()

void Event::McTrajectory::addPoints ( std::vector< Hep3Vector > & points)

Add the 3d points to the trajectory.

Definition at line 24 of file McTrajectory.cxx.

24 {
25 m_points = points;
26}

◆ classID()

static const CLID & Event::McTrajectory::classID ( )
inlinestatic

Definition at line 23 of file McTrajectory.h.

23{ return CLID_McTrajectory; }
const CLID & CLID_McTrajectory

Referenced by clID().

◆ clID()

virtual const CLID & Event::McTrajectory::clID ( ) const
inlinevirtual

Definition at line 22 of file McTrajectory.h.

22{ return McTrajectory::classID(); }
static const CLID & classID()

◆ getCharge()

int Event::McTrajectory::getCharge ( ) const
inline

get, set charge

Definition at line 43 of file McTrajectory.h.

43{ return m_charge; }

◆ getMcParticle() [1/2]

McParticle * Event::McTrajectory::getMcParticle ( )

Definition at line 11 of file McTrajectory.cxx.

11 {
12 return m_mcParticle;
13}

◆ getMcParticle() [2/2]

const McParticle * Event::McTrajectory::getMcParticle ( ) const

Get the pointer to the McParticle.

Retrieve pointer to McParticle (const or non-const)

Definition at line 8 of file McTrajectory.cxx.

8 {
9 return m_mcParticle;
10}

◆ getPoints()

std::vector< Hep3Vector > & Event::McTrajectory::getPoints ( )
inline

Get the 3d points.

Definition at line 40 of file McTrajectory.h.

40{return m_points;}

◆ setCharge()

void Event::McTrajectory::setCharge ( int charge)
inline

Definition at line 44 of file McTrajectory.h.

44{ m_charge=charge;}

◆ setMcParticle() [1/2]

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.

16 {
17 m_mcParticle = value;
18}

◆ setMcParticle() [2/2]

void Event::McTrajectory::setMcParticle ( SmartRef< McParticle > value)

Set the pointer to the McParticle.

Definition at line 20 of file McTrajectory.cxx.

20 {
21 m_mcParticle = value;
22}

The documentation for this class was generated from the following files: