BDSIM
BDSIM is a Geant4 extension toolkit for simulation of particle transport in accelerator beamlines.
Loading...
Searching...
No Matches
EventAnalysisOrbit.hh
1/*
2Beam Delivery Simulation (BDSIM) Copyright (C) BDSIM Collaboration, 2001 - 2026.
3
4This file is part of BDSIM.
5
6BDSIM is free software: you can redistribute it and/or modify
7it under the terms of the GNU General Public License as published
8by the Free Software Foundation version 3 of the License.
9
10BDSIM is distributed in the hope that it will be useful, but
11WITHOUT ANY WARRANTY; without even the implied warranty of
12MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13GNU General Public License for more details.
14
15You should have received a copy of the GNU General Public License
16along with BDSIM. If not, see <http://www.gnu.org/licenses/>.
17*/
18#ifndef EVENTANALYSISORBIT_H
19#define EVENTANALYSISORBIT_H
20
21#include "EventAnalysis.hh"
22
23#include "Rtypes.h" // for classdef
24
25#include <string>
26#include <vector>
27
28class Event;
29class TChain;
30class TFile;
31
39{
40public:
45
48 TChain* chain,
49 bool perEntryAnalysis = true,
50 bool processSamplersIn = true,
51 bool debugIn = false,
52 bool printOutIn = true,
53 double printModuloFraction = 0.01,
54 bool emittanceOnTheFlyIn = false,
55 long int eventStartIn = 0,
56 long int eventEndIn = -1);
57
58 virtual ~EventAnalysisOrbit(){;}
59
60 void Clear();
61 void ExtractOrbit(int index);
62 void WriteOrbit(TFile* f);
63
65 std::vector<double> ss;
66 std::vector<double> x;
67 std::vector<double> xp;
68 std::vector<double> y;
69 std::vector<double> yp;
70 std::vector<std::string> elementName;
72
73 ClassDef(EventAnalysisOrbit,1);
74};
75
76#endif
Simple analysis to pull out first hit in each sampler.
std::vector< std::string > elementName
Temporary storage for orbit.
std::vector< double > y
Temporary storage for orbit.
std::vector< double > ss
Temporary storage for orbit.
std::vector< double > xp
Temporary storage for orbit.
void Clear()
Empty the member vectors of their data.
void ExtractOrbit(int index)
Extract an orbit from the data.
std::vector< double > x
Temporary storage for orbit.
std::vector< double > yp
Temporary storage for orbit.
void WriteOrbit(TFile *f)
Write orbit to a ROOT file.
Event level analysis.
Event loader.
Definition Event.hh:49