Commit 25d4a095 authored by Simon Spannagel's avatar Simon Spannagel
Browse files

Clipboard: make listCollection and getAll more coherent

parent 23cf41a4
......@@ -66,7 +66,7 @@ void Clipboard::clear() {
m_event.reset();
}
std::vector<std::string> Clipboard::list_collections() const {
std::vector<std::string> Clipboard::listCollections() const {
std::vector<std::string> collections;
for(const auto& block : m_data) {
......@@ -82,6 +82,6 @@ std::vector<std::string> Clipboard::list_collections() const {
return collections;
}
const ClipboardData& Clipboard::get_all() const {
const ClipboardData& Clipboard::getAll() const {
return m_data;
}
......@@ -105,13 +105,13 @@ namespace corryvreckan {
* @brief Get a list of currently held collections on the clipboard event storage
* @return Vector of collections names currently stored on the clipboard
*/
std::vector<std::string> list_collections() const;
std::vector<std::string> listCollections() const;
/**
* @brief Retrieve all currently stored clipboard data
* @return All clipboard data
*/
const ClipboardData& get_all() const;
const ClipboardData& getAll() const;
private:
/**
......
......@@ -71,7 +71,7 @@ StatusCode FileWriter::run(std::shared_ptr<Clipboard> clipboard) {
event_tree_->Fill();
write_cnt_++;
auto data = clipboard->get_all();
auto data = clipboard->getAll();
LOG(DEBUG) << "Clipboard has " << data.size() << " different object types.";
for(auto& block : data) {
......
......@@ -53,7 +53,7 @@ StatusCode TextWriter::run(std::shared_ptr<Clipboard> clipboard) {
*output_file_ << "=== " << m_eventNumber << " ===" << std::endl;
*output_file_ << *clipboard->getEvent() << std::endl;
auto data = clipboard->get_all();
auto data = clipboard->getAll();
LOG(DEBUG) << "Clipboard has " << data.size() << " different object types.";
for(auto& block : data) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment