BDSIM
BDSIM is a Geant4 extension toolkit for simulation of particle transport in accelerator beamlines.
|
Class to map a rebdsim file structure and create duplicate in output. More...
#include <FileMapper.hh>
Public Member Functions | |
HistogramMap ()=delete | |
No need for default constructor. | |
HistogramMap (TFile *file, TFile *output, bool debugIn=false) | |
void | MapDirectory (TDirectory *dir, TFile *output, const std::string &parentDir) |
const std::vector< RBDS::HistogramPath > & | Histograms () const |
Access full vector of histograms. | |
Private Attributes | |
bool | debug |
Debug flag. | |
std::vector< RBDS::HistogramPath > | histograms |
Storage of all objects. | |
Class to map a rebdsim file structure and create duplicate in output.
Definition at line 94 of file FileMapper.hh.
HistogramMap::HistogramMap | ( | TFile * | file, |
TFile * | output, | ||
bool | debugIn = false |
||
) |
Definition at line 153 of file FileMapper.cc.
|
inline |
Definition at line 101 of file FileMapper.hh.
|
inline |
Access full vector of histograms.
Definition at line 110 of file FileMapper.hh.
References histograms.
void HistogramMap::MapDirectory | ( | TDirectory * | dir, |
TFile * | output, | ||
const std::string & | parentDir | ||
) |
Recursively inspect a directory and create similar directories in the output file. Also make histogram paths.
Definition at line 164 of file FileMapper.cc.
References debug, RBDS::DetermineDimensionality(), RBDS::DetermineMergeType(), histograms, and MapDirectory().
Referenced by MapDirectory().
|
private |
|
private |
Storage of all objects.
Definition at line 114 of file FileMapper.hh.
Referenced by Histograms(), and MapDirectory().