BDSIM
BDSIM is a Geant4 extension toolkit for simulation of particle transport in accelerator beamlines.
Loading...
Searching...
No Matches
Public Member Functions | Private Attributes
HistogramMap Class Reference

Class to map a rebdsim file structure and create duplicate in output. More...

#include <FileMapper.hh>

Collaboration diagram for HistogramMap:
Collaboration graph

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::HistogramPathhistograms
 Storage of all objects.
 

Detailed Description

Class to map a rebdsim file structure and create duplicate in output.

Author
Laurie Nevay

Definition at line 94 of file FileMapper.hh.

Constructor & Destructor Documentation

◆ HistogramMap()

HistogramMap::HistogramMap ( TFile *  file,
TFile *  output,
bool  debugIn = false 
)

Definition at line 153 of file FileMapper.cc.

◆ ~HistogramMap()

HistogramMap::~HistogramMap ( )
inline

Definition at line 101 of file FileMapper.hh.

Member Function Documentation

◆ Histograms()

const std::vector< RBDS::HistogramPath > & HistogramMap::Histograms ( ) const
inline

Access full vector of histograms.

Definition at line 110 of file FileMapper.hh.

References histograms.

◆ MapDirectory()

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().

Here is the call graph for this function:
Here is the caller graph for this function:

Field Documentation

◆ debug

bool HistogramMap::debug
private

Debug flag.

Definition at line 113 of file FileMapper.hh.

Referenced by MapDirectory().

◆ histograms

std::vector<RBDS::HistogramPath> HistogramMap::histograms
private

Storage of all objects.

Definition at line 114 of file FileMapper.hh.

Referenced by Histograms(), and MapDirectory().


The documentation for this class was generated from the following files: