BDSIM
BDSIM is a Geant4 extension toolkit for simulation of particle transport in accelerator beamlines.
Loading...
Searching...
No Matches
Run.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 RUN_H
19#define RUN_H
20
21#include "TChain.h"
22
23#include "RebdsimTypes.hh"
24
27
34class Run
35{
36public:
37 Run();
38 explicit Run(bool debugIn);
39 Run(bool debugIn,
40 int dataVersionIn);
41 virtual ~Run();
42
44 void SetBranchAddress(TTree* t,
45 bool allBranchesOn = true,
46 const RBDS::VectorString* branchesToTurnOn = nullptr);
47
48 // These variables are named to match the naems in the output file we would find.
53
55
56private:
57 bool debug;
58 int dataVersion;
59
60 ClassDef(Run, 2);
61};
62
63#endif
Holder for a set of histograms to be stored.
Information pertaining to a run.
Class to overlay a run from a ROOT file with.
Definition Run.hh:35
BDSOutputROOTEventHistograms * Histos
Member that ROOT can map file data to locally.
Definition Run.hh:51
void SetBranchAddress(TTree *t, bool allBranchesOn=true, const RBDS::VectorString *branchesToTurnOn=nullptr)
Map the ROOT file to members in this class.
Definition Run.cc:66
BDSOutputROOTEventRunInfo * Summary
Member that ROOT can map file data to locally.
Definition Run.hh:50
BDSOutputROOTEventRunInfo * Info
For backwards compatibiliy.
Definition Run.hh:54