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