LDMX Software
Callback.h
1#ifndef FRAMEWORK_PERFORMANCE_CALLBACK
2#define FRAMEWORK_PERFORMANCE_CALLBACK
3
4#include <string>
5
6namespace framework::performance {
7
15enum class Callback {
16 onProcessStart = 0,
17 onProcessEnd = 1,
18 onFileOpen = 2,
19 onFileClose = 3,
20 beforeNewRun = 4,
21 onNewRun = 5,
22 process = 6
23};
24
28constexpr std::size_t to_index(Callback c) {
29 return static_cast<std::size_t>(c);
30}
31
35std::string to_name(Callback c);
36
37} // namespace framework::performance
38
39#endif