LArSoft  v06_85_00
Liquid Argon Software toolkit - http://larsoft.org/
TriggerResults.h
Go to the documentation of this file.
1 #ifndef canvas_Persistency_Common_TriggerResults_h
2 #define canvas_Persistency_Common_TriggerResults_h
3 
4 // ======================================================================
5 //
6 // TriggerResults
7 //
8 // The trigger path results are maintained here as a sequence of entries,
9 // one per trigger path. They are assigned in the order they appeared in
10 // the process-level pset. (They are actually stored in the base class
11 // HLTGlobalStatus)
12 //
13 // The ParameterSetID can be used to get a ParameterSet from the registry
14 // of parameter sets. This ParameterSet contains a vector<string> named
15 // "trigger_paths" that contains the trigger path names in the same order
16 // as the trigger path results stored here.
17 //
18 // ======================================================================
19 
22 
23 // ----------------------------------------------------------------------
24 
25 namespace art {
26 
28  private:
29  // Parameter set id
31 
32  public:
33  TriggerResults() = default;
34 
35  // Standard contructor
37  fhicl::ParameterSetID const& psetid)
38  : HLTGlobalStatus{hlt}, psetid_{psetid}
39  {}
40 
41  // Get stored parameter set id
44  {
45  return psetid_;
46  }
47 
48  // swap function
49  void
51  {
52  this->HLTGlobalStatus::swap(other);
53  psetid_.swap(other.psetid_);
54  }
55 
56  // Copy assignment using swap.
57  // We can't ref-qualify assignment because of GCC_XML.
60  {
61  TriggerResults temp{rhs};
62  this->swap(temp);
63  return *this;
64  }
65 
66  }; // TriggerResults
67 
68  // Free swap function
69  inline void
71  {
72  lhs.swap(rhs);
73  }
74 
75 } // art
76 
77  // ======================================================================
78 
79 #endif /* canvas_Persistency_Common_TriggerResults_h */
80 
81 // Local Variables:
82 // mode: c++
83 // End:
void swap(ParameterSetID &)
fhicl::ParameterSetID psetid_
TriggerResults(HLTGlobalStatus const &hlt, fhicl::ParameterSetID const &psetid)
void swap(TriggerResults &other)
TriggerResults()=default
fhicl::ParameterSetID const & parameterSetID() const
void swap(HLTGlobalStatus &other)
HLT enums.
TriggerResults & operator=(TriggerResults const &rhs)