HLTGlobalStatus.h
Go to the documentation of this file.
1 #ifndef canvas_Persistency_Common_HLTGlobalStatus_h
2 #define canvas_Persistency_Common_HLTGlobalStatus_h
3 // vim: set sw=2 expandtab :
4 
7 
8 #include <cstddef>
9 #include <ostream>
10 #include <vector>
11 
12 namespace art {
14  public:
16  explicit HLTGlobalStatus(std::size_t n = 0);
21 
22  std::size_t size() const;
23  void reset();
24  bool wasrun() const;
25  bool accept() const;
26  bool error() const;
27 
28  // Path-specific results
29  HLTPathStatus const& at(unsigned const i) const;
30  HLTPathStatus& at(unsigned const i);
31  bool wasrun(unsigned const i) const;
32  bool accept(unsigned const i) const;
33  bool error(unsigned const i) const;
34  hlt::HLTState state(unsigned const i) const;
35  unsigned index(unsigned const i) const;
36  void reset(unsigned const i);
37 
38  private:
39  std::vector<HLTPathStatus> paths_;
40  };
41  std::ostream& operator<<(std::ostream& ost, HLTGlobalStatus const& hlt);
42 } // namespace art
43 
44 #endif /* canvas_Persistency_Common_HLTGlobalStatus_h */
45 
46 // Local Variables:
47 // mode: c++
48 // End:
unsigned index(unsigned const i) const
std::vector< HLTPathStatus > paths_
HLTState
Definition: HLTenums.h:6
std::ostream & operator<<(std::ostream &os, const GroupSelector &gs)
std::void_t< T > n
HLTGlobalStatus & operator=(HLTGlobalStatus const &)
HLTGlobalStatus(std::size_t n=0)
hlt::HLTState state(unsigned const i) const
std::size_t size() const
HLTPathStatus const & at(unsigned const i) const