BDSIM
BDSIM is a Geant4 extension toolkit for simulation of particle transport in accelerator beamlines.
Loading...
Searching...
No Matches
BDSOutputROOTEventCoords.hh
1/*
2Beam Delivery Simulation (BDSIM) Copyright (C) Royal Holloway,
3University of London 2001 - 2023.
4
5This file is part of BDSIM.
6
7BDSIM is free software: you can redistribute it and/or modify
8it under the terms of the GNU General Public License as published
9by the Free Software Foundation version 3 of the License.
10
11BDSIM is distributed in the hope that it will be useful, but
12WITHOUT ANY WARRANTY; without even the implied warranty of
13MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14GNU General Public License for more details.
15
16You should have received a copy of the GNU General Public License
17along 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"
30#endif
31
38class BDSOutputROOTEventCoords: public TObject
39{
40public:
42
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
void Fill(const BDSOutputROOTEventCoords *other)
Fill from another instance.
A set of particle coordinates.
Full set of coordinates for association with primary vertex. Vector version.