PathsInfo.h
Go to the documentation of this file.
1 #ifndef art_Framework_Core_PathsInfo_h
2 #define art_Framework_Core_PathsInfo_h
3 // vim: set sw=2 expandtab :
4 
7 
8 #include <atomic>
9 #include <cstddef>
10 #include <map>
11 #include <string>
12 
13 namespace art {
14  class PathsInfo {
15  public:
16  ~PathsInfo() noexcept;
17  PathsInfo();
18 
19  public:
20  std::map<std::string, Worker*>& workers();
21  std::map<std::string, Worker*> const& workers() const;
22  std::vector<Path*>& paths();
23  std::vector<Path*> const& paths() const;
27  std::size_t passedEvents() const;
28  std::size_t failedEvents() const;
29  std::size_t totalEvents() const;
30 
31  private:
32  // Maps module_label to Worker.
33  std::map<std::string, Worker*> workers_{};
34  std::vector<Path*> paths_{};
36  std::atomic<std::size_t> totalEvents_;
37  std::atomic<std::size_t> passedEvents_;
38  };
39 } // namespace art
40 
41 #endif /* art_Framework_Core_PathsInfo_h */
42 
43 // Local Variables:
44 // mode: c++
45 // End:
std::size_t totalEvents() const
std::map< std::string, Worker * > & workers()
std::vector< Path * > & paths()
std::atomic< std::size_t > totalEvents_
Definition: PathsInfo.h:36
std::map< std::string, Worker * > workers_
Definition: PathsInfo.h:33
HLTGlobalStatus & pathResults()
std::size_t failedEvents() const
~PathsInfo() noexcept
std::atomic< std::size_t > passedEvents_
Definition: PathsInfo.h:37
void incrementPassedEventCount()
Service to store calibration data products (CDP) in the SQLite3 metadatabase of a file...
Definition: FillParentInfo.h:8
HLTGlobalStatus pathResults_
Definition: PathsInfo.h:35
std::vector< Path * > paths_
Definition: PathsInfo.h:34
std::size_t passedEvents() const
void incrementTotalEventCount()