-
Notifications
You must be signed in to change notification settings - Fork 50
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
de62e50
commit d0dce88
Showing
10 changed files
with
330 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
/** TRACCC library, part of the ACTS project (R&D line) | ||
* | ||
* (c) 2023 CERN for the benefit of the ACTS project | ||
* | ||
* Mozilla Public License Version 2.0 | ||
*/ | ||
|
||
#pragma once | ||
|
||
// Local include(s). | ||
#include "traccc/utils/helpers.hpp" | ||
|
||
// Project include(s). | ||
#include "traccc/edm/track_state.hpp" | ||
#include "traccc/io/event_map2.hpp" | ||
|
||
namespace traccc { | ||
namespace details { | ||
|
||
/// Data members that should not pollute the API of | ||
/// @c traccc::event_tree_writer | ||
struct event_tree_writer_data; | ||
|
||
} // namespace details | ||
|
||
class event_tree_writer { | ||
|
||
public: | ||
/// Configuration for the tool | ||
struct config { | ||
|
||
/// Output filename. | ||
std::string file_path = "event_tree.root"; | ||
/// Output file mode | ||
std::string file_mode = "RECREATE"; | ||
}; | ||
|
||
/// Construct from configuration and log level. | ||
/// @param cfg The configuration | ||
/// | ||
event_tree_writer(const config& cfg); | ||
|
||
/// Destructor | ||
~event_tree_writer(); | ||
|
||
void write(const track_state_container_types::const_view& track_states_view, | ||
const event_map2& evt_map); | ||
|
||
void finalize(); | ||
|
||
private: | ||
/// Configuration for the tool | ||
config m_cfg; | ||
|
||
/// Opaque data members for the class | ||
std::unique_ptr<details::event_tree_writer_data> m_data; | ||
|
||
}; // class event_tree_writer | ||
|
||
} // namespace traccc |
Oops, something went wrong.