BOSS 8.0.0
BESIII Offline Software System
Loading...
Searching...
No Matches
McTrajectory.cxx
Go to the documentation of this file.
1#include "McTruth/McTrajectory.h"
2#include <iostream>
3#include <math.h>
4
5namespace Event {
6
7 /// Retrieve pointer to McParticle (const or non-const)
8 const McParticle* McTrajectory::getMcParticle() const { return m_mcParticle; }
9 McParticle* McTrajectory::getMcParticle() { return m_mcParticle; }
10
11 /// Update pointer to McParticle (by a C++ pointer or a smart reference)
12 void McTrajectory::setMcParticle( McParticle* value ) { m_mcParticle = value; }
13
14 void McTrajectory::setMcParticle( SmartRef<McParticle> value ) { m_mcParticle = value; }
15
16 void McTrajectory::addPoints( std::vector<Hep3Vector>& points ) { m_points = points; }
17
18} // namespace Event
const McParticle * getMcParticle() const
Get the pointer to the McParticle.
void setMcParticle(SmartRef< McParticle > value)
Set the pointer to the McParticle.
void addPoints(std::vector< Hep3Vector > &points)
Add the 3d points to the trajectory.