BDSIM
BDSIM is a Geant4 extension toolkit for simulation of particle transport in accelerator beamlines.
Loading...
Searching...
No Matches
Data.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 RBDSDATA_H
20#define RBDSDATA_H
21
22#include "Rtypes.h" // for classdef
23
24#include <map>
25#include <string>
26
27class TDirectory;
28class TFile;
29
36namespace RBDS
37{
39 TFile* CreateEmptyRebdsimFile(const std::string& fileName,
40 unsigned long long int nOriginalEventsIn = 1);
41
45 std::map<std::string, TDirectory*> CreateDirectories(TFile* outputFile,
46 std::string treeName);
47}
48
56{
57public:
59 virtual ~DataDummyClass();
60
61 TFile* CreateEmptyRebdsimFile(const std::string& fileName,
62 unsigned long long int nOriginalEventsIn = 1);
63
64 std::map<std::string, TDirectory*> CreateDirectories(TFile* outputFile,
65 std::string treeName);
66 ClassDef(DataDummyClass,1);
67};
68
69#endif
A dummy class as ROOT won't seem to import namespaced functions in CLING for python.
Definition: Data.hh:56
Utility functions for data files.
TFile * CreateEmptyRebdsimFile(const std::string &fileName, unsigned long long int nOriginalEventsIn=1)
Create a new TFile and add a header to it. The header object is filled and written.
Definition: Data.cc:52
std::map< std::string, TDirectory * > CreateDirectories(TFile *outputFile, std::string treeName)
Definition: Data.cc:79