CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
EventEntryInfo.h
Go to the documentation of this file.
1 #ifndef DataFormats_Provenance_EventEntryInfo_h
2 #define DataFormats_Provenance_EventEntryInfo_h
3 
4 /*----------------------------------------------------------------------
5 
6 EventEntryInfo: The event dependent portion of the description of a product
7 and how it came into existence, plus the product identifier.
8 
9 ----------------------------------------------------------------------*/
10 #include <iosfwd>
11 #include <vector>
12 
16 
17 /*
18  EventEntryInfo
19 */
20 
21 namespace edm {
22  class EventEntryDescription;
24  public:
27 
28  void write(std::ostream& os) const;
29 
30  BranchID const& branchID() const { return branchID_; }
31  ProductID const& productID() const { return productID_; }
33 
34  private:
38  };
39 
40  inline bool operator<(EventEntryInfo const& a, EventEntryInfo const& b) { return a.branchID() < b.branchID(); }
41 
42  inline std::ostream& operator<<(std::ostream& os, EventEntryInfo const& p) {
43  p.write(os);
44  return os;
45  }
46 
47  // Only the 'salient attributes' are testing in equality comparison.
48  bool operator==(EventEntryInfo const& a, EventEntryInfo const& b);
49  inline bool operator!=(EventEntryInfo const& a, EventEntryInfo const& b) { return !(a == b); }
50  typedef std::vector<EventEntryInfo> EventEntryInfoVector;
51 } // namespace edm
52 #endif
bool operator<(DetSet< T > const &x, DetSet< T > const &y)
Definition: DetSet.h:89
constexpr bool operator==(ELseverityLevel const &e1, ELseverityLevel const &e2) noexcept
ProductID const & productID() const
std::vector< EventEntryInfo > EventEntryInfoVector
EntryDescriptionID const & entryDescriptionID() const
EntryDescriptionID entryDescriptionID_
BranchID const & branchID() const
constexpr bool operator!=(ELseverityLevel const &e1, ELseverityLevel const &e2) noexcept
double b
Definition: hdecay.h:118
void write(std::ostream &os) const
double a
Definition: hdecay.h:119
std::ostream & operator<<(std::ostream &ost, const HLTGlobalStatus &hlt)
Formatted printout of trigger tbale.