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