Crombie Tools
crombie::FileConfig::DirectoryInfo Class Reference

Holds information for the files to run over as well as relevant processes. More...

#include <FileConfig.h>

Public Member Functions

 DirectoryInfo (const std::string &line, const Type type, const std::vector< Process > &processes)
 

Public Attributes

std::vector< FileInfofiles {}
 The file infos. More...
 
const std::string name
 The name of the directory. More...
 
const std::vector< Processprocesses
 
const Type type
 The kind of process this object points to. More...
 
const double xs
 The cross section of this sample. More...
 

Private Member Functions

void fillfiles ()
 Fill the file info for this object. More...
 

Static Private Member Functions

static std::string getname (const std::string &line)
 Helper function to extract directory name from config line. More...
 
static double getxs (const std::string &line)
 Helper function to extract cross section. More...
 

Detailed Description

Holds information for the files to run over as well as relevant processes.

Definition at line 97 of file FileConfig.h.

Constructor & Destructor Documentation

§ DirectoryInfo()

crombie::FileConfig::DirectoryInfo::DirectoryInfo ( const std::string &  line,
const Type  type,
const std::vector< Process > &  processes 
)
inline

Definition at line 100 of file FileConfig.h.

References Debug::Debug().

Member Function Documentation

§ fillfiles()

void crombie::FileConfig::DirectoryInfo::fillfiles ( )
private

Fill the file info for this object.

Definition at line 231 of file FileConfig.h.

References CrombieTools.LoadConfig::cuts, crombie::FileSystem::exists(), sushi::file, crombie_completion::files, and crombie::FileSystem::list().

§ getname()

std::string crombie::FileConfig::DirectoryInfo::getname ( const std::string &  line)
staticprivate

Helper function to extract directory name from config line.

If the config line is actually a file, then it returns the unchanged file name.

Definition at line 224 of file FileConfig.h.

References crombie_completion::dir.

§ getxs()

static double crombie::FileConfig::DirectoryInfo::getxs ( const std::string &  line)
inlinestaticprivate

Helper function to extract cross section.

Definition at line 121 of file FileConfig.h.

Member Data Documentation

§ files

std::vector<FileInfo> crombie::FileConfig::DirectoryInfo::files {}

The file infos.

Definition at line 110 of file FileConfig.h.

§ name

const std::string crombie::FileConfig::DirectoryInfo::name

The name of the directory.

Definition at line 106 of file FileConfig.h.

Referenced by crombie::Plotter::Plot::add(), and crombie::Plotter::SingleFile().

§ processes

const std::vector<Process> crombie::FileConfig::DirectoryInfo::processes

Definition at line 111 of file FileConfig.h.

Referenced by crombie::Plotter::Plot::add().

§ type

const Type crombie::FileConfig::DirectoryInfo::type

The kind of process this object points to.

Definition at line 108 of file FileConfig.h.

Referenced by crombie::Plotter::Plot::add(), and crombie::Plotter::SingleFile().

§ xs

const double crombie::FileConfig::DirectoryInfo::xs

The cross section of this sample.

Definition at line 107 of file FileConfig.h.

Referenced by crombie::Plotter::Plot::add().


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