BDSIM
BDSIM is a Geant4 extension toolkit for simulation of particle transport in accelerator beamlines.
Loading...
Searching...
No Matches
bdsim
include
BDSOutputROOTEventCoords.hh
1
/*
2
Beam Delivery Simulation (BDSIM) Copyright (C) Royal Holloway,
3
University of London 2001 - 2023.
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
47
void
Fill
(
const
BDSOutputROOTEventCoords
* other);
48
49
int
n;
50
std::vector<double> X;
51
std::vector<double> Y;
52
std::vector<double> Z;
53
std::vector<double> Xp;
54
std::vector<double> Yp;
55
std::vector<double> Zp;
56
std::vector<double> T;
57
58
#ifndef __ROOTBUILD__
59
void
Fill
(
const
BDSParticleCoords
& coords);
60
void
Fill
(
const
BDSPrimaryVertexInformationV
* vertexInfos);
61
#endif
62
63
ClassDef(
BDSOutputROOTEventCoords
,3);
64
};
65
66
#endif
BDSOutputROOTEventCoords
A set of coordinates.
Definition:
BDSOutputROOTEventCoords.hh:39
BDSOutputROOTEventCoords::Fill
void Fill(const BDSOutputROOTEventCoords *other)
Fill from another instance.
Definition:
BDSOutputROOTEventCoords.cc:68
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 Mon Aug 14 2023 13:49:30 for BDSIM by
1.9.6