Class RMGAnalysisReader::Access

Nested Relationships

This class is a nested type of Class RMGAnalysisReader.

Class Documentation

class Access

thread-safe access handle to the underlying reader. This handle can be used to set-up ntuple reading (in setup mode) or to read rows from the ntuple.

Public Functions

inline ~Access()
Access(Access const&) = delete
Access &operator=(Access&) = delete
Access &operator=(Access const&) = delete
Access &operator=(Access&&) = delete
inline void unlock()

unlock this access handle before it exits the scope.

inline auto GetNtupleRow()

wraps GetNtupleRow() of G4VAnalysisReader.

inline auto SetNtupleDColumn(const std::string &name, G4double &value, const std::vector<std::string> &allowed_units = {})

wraps SetNtupleDColumn() of G4VAnalysisReader.

inline auto SetNtupleFColumn(const std::string &name, G4float &value, const std::vector<std::string> &allowed_units = {})

wraps SetNtupleFColumn() of G4VAnalysisReader.

inline auto SetNtupleIColumn(const std::string &name, G4int &value, const std::vector<std::string> &allowed_units = {})

wraps SetNtupleIColumn() of G4VAnalysisReader.

std::string GetUnit(const std::string &name) const

get unit information for the column. an empty string means either no unit attached or no support by the file format.

inline operator bool() const

check whether this access handle is still valid.