ant
A2 ant: class-based analysis framework
ant::calibration::DataBase::OnDiskLayout Struct Reference

#include <DataBase.h>

+ Collaboration diagram for ant::calibration::DataBase::OnDiskLayout:

Classes

struct  Range_t
 

Public Types

enum  Type_t { Type_t::DataDefault, Type_t::DataRanges, Type_t::MC }
 
using DataRanges_t = std::list< Range_t >
 

Public Member Functions

 OnDiskLayout (const std::string &calibrationDataFolder)
 
std::string GetFolder (const std::string &calibrationID, Type_t type) const
 
std::string GetCurrentFile (const std::string &calibrationID, Type_t type) const
 
std::string GetRangeFolder (const std::string &calibrationID, const interval< TID > &range) const
 
std::string RemoveCalibrationDataFolder (const std::string &path) const
 
std::string GetCurrentFile (const Range_t &range) const
 
DataRanges_t GetDataRanges (const std::string &calibrationID) const
 

Public Attributes

const std::string CalibrationDataFolder
 

Static Public Attributes

static bool EnableCaching = false
 EnableCaching if true, the OnDiskLayout does not scan the folder structure every time GetDataRanges is called. Note that this should only be enabled globally if only read accesses are executed. The cache prevents changes to be seen made by new items! More...
 

Protected Member Functions

std::string makeTIDString (const TID &tid) const
 
interval< TIDparseTIDRange (const std::string &tidRangeStr) const
 

Protected Attributes

std::map< std::string, DataRanges_tcached_ranges
 

Member Typedef Documentation

◆ DataRanges_t

Member Enumeration Documentation

◆ Type_t

Enumerator
DataDefault 
DataRanges 
MC 

Constructor & Destructor Documentation

◆ OnDiskLayout()

DataBase::OnDiskLayout::OnDiskLayout ( const std::string &  calibrationDataFolder)

Member Function Documentation

◆ GetCurrentFile() [1/2]

string DataBase::OnDiskLayout::GetCurrentFile ( const std::string &  calibrationID,
Type_t  type 
) const

◆ GetCurrentFile() [2/2]

string DataBase::OnDiskLayout::GetCurrentFile ( const Range_t range) const

◆ GetDataRanges()

std::list< DataBase::OnDiskLayout::Range_t > DataBase::OnDiskLayout::GetDataRanges ( const std::string &  calibrationID) const

◆ GetFolder()

string DataBase::OnDiskLayout::GetFolder ( const std::string &  calibrationID,
Type_t  type 
) const

◆ GetRangeFolder()

string DataBase::OnDiskLayout::GetRangeFolder ( const std::string &  calibrationID,
const interval< TID > &  range 
) const

◆ makeTIDString()

string DataBase::OnDiskLayout::makeTIDString ( const TID tid) const
protected

◆ parseTIDRange()

interval< TID > DataBase::OnDiskLayout::parseTIDRange ( const std::string &  tidRangeStr) const
protected

◆ RemoveCalibrationDataFolder()

string DataBase::OnDiskLayout::RemoveCalibrationDataFolder ( const std::string &  path) const

Member Data Documentation

◆ cached_ranges

std::map<std::string, DataRanges_t> ant::calibration::DataBase::OnDiskLayout::cached_ranges
mutableprotected

◆ CalibrationDataFolder

const std::string ant::calibration::DataBase::OnDiskLayout::CalibrationDataFolder

◆ EnableCaching

bool DataBase::OnDiskLayout::EnableCaching = false
static

EnableCaching if true, the OnDiskLayout does not scan the folder structure every time GetDataRanges is called. Note that this should only be enabled globally if only read accesses are executed. The cache prevents changes to be seen made by new items!


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