50 template<
typename HistT>
52 const std::filesystem::path &path,
53 const std::string_view &
name,
54 const std::string_view &title,
76 const char*
what() const noexcept
override {
return m_msg.c_str(); }
90 const std::filesystem::path &path,
91 const std::string_view &name)
const ;
static constexpr std::size_t Dimension
Dimension of the histogram.
BookStoreManager & operator=(const BookStoreManager &)=delete
Data selection to identify and manage an Entry.
StringParameter _defaultMemLayout
Output file name to store objects.
const std::string & name() const
Get the component name.
Managed Access and creation of Objects.
BookStoreManager()
Constructor.
book::Handle< book::Entry< HistT > > bookHist(const std::filesystem::path &path, const std::string_view &name, const std::string_view &title, const std::array< const AxisConfig< typename HistT::Precision_t > *, HistT::Dimension > &axesconfig, const BookFlag_t &flags)
Book a histogram 1D, float type.
const char * what() const noexcept override
Flag type for flags in marlinmt::book.
std::set< book::EntryKey > _entriesToWrite
List of entry keys for Entries which should be stored at end of lifetime.
void initialize() override
Initialize the book store manager.
void writeToDisk() const
reads output File from global StoreOutputFile.
book::Handle< book::Entry< T > > getObject(const book::EntryKey &key) const
access object managed by this store.
void removeFromWrite(const book::EntryKey &key)
remove entry key from write list.
collection for Axis Description
thrown when try to access not existing object.
static std::string to_string(const T &value)
const book::EntryKey & getKey(const std::filesystem::path &path, const std::string_view &name) const
receive key from Entry with given path and name.
void addToWrite(const book::EntryKey &key)
add entry key to write list.
ObjectNotFound(const std::string_view &msg)
BookFlag_t _defaultFlag
default flag, used if flag == BookFlags::Default.
book::BookStore _bookStore
The book store.
StringParameter _outputFile
Output file name to store objects.