BDSIM
BDSIM is a Geant4 extension toolkit for simulation of particle transport in accelerator beamlines.
Loading...
Searching...
No Matches
__w
bdsim
bdsim
include
BDSOutputROOTEventCoords.hh
1
/*
2
Beam Delivery Simulation (BDSIM) Copyright (C) BDSIM Collaboration, 2001 - 2026.
3
4
This file is part of BDSIM.
5
6
BDSIM is free software: you can redistribute it and/or modify
7
it under the terms of the GNU General Public License as published
8
by the Free Software Foundation version 3 of the License.
9
10
BDSIM is distributed in the hope that it will be useful, but
11
WITHOUT ANY WARRANTY; without even the implied warranty of
12
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
GNU General Public License for more details.
14
15
You should have received a copy of the GNU General Public License
16
along with BDSIM. If not, see <http://www.gnu.org/licenses/>.
17
*/
18
#ifndef BDSOUTPUTROOTEVENTCOORDS_H
19
#define BDSOUTPUTROOTEVENTCOORDS_H
20
21
#include "Rtypes.h"
22
#include "TObject.h"
23
24
#include <vector>
25
26
#ifndef __ROOTBUILD__
27
#include "BDSParticleCoords.hh"
28
class
BDSPrimaryVertexInformationV
;
29
#endif
30
37
class
BDSOutputROOTEventCoords
:
public
TObject
38
{
39
public
:
40
BDSOutputROOTEventCoords
();
41
42
virtual
~BDSOutputROOTEventCoords
();
43
virtual
void
Flush();
44
45
void
FlushLocal();
46
48
void
Fill
(
const
BDSOutputROOTEventCoords
* other);
49
50
int
n;
51
std::vector<double> X;
52
std::vector<double> Y;
53
std::vector<double> Z;
54
std::vector<double> Xp;
55
std::vector<double> Yp;
56
std::vector<double> Zp;
57
std::vector<double> T;
58
59
#ifndef __ROOTBUILD__
60
void
Fill
(
const
BDSParticleCoords
& coords);
61
void
Fill
(
const
BDSPrimaryVertexInformationV
* vertexInfos);
62
#endif
63
64
ClassDef(
BDSOutputROOTEventCoords
,3);
65
};
66
67
#endif
BDSOutputROOTEventCoords
A set of coordinates.
Definition
BDSOutputROOTEventCoords.hh:38
BDSOutputROOTEventCoords::Fill
void Fill(const BDSOutputROOTEventCoords *other)
Fill from another instance.
Definition
BDSOutputROOTEventCoords.cc:74
BDSParticleCoords
A set of particle coordinates.
Definition
BDSParticleCoords.hh:34
BDSPrimaryVertexInformationV
Full set of coordinates for association with primary vertex. Vector version.
Definition
BDSPrimaryVertexInformationV.hh:42
Generated on Thu Nov 12 2026 21:36:59 for BDSIM by
1.9.8