CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros 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 and the status.
8 
9 ----------------------------------------------------------------------*/
10 #include <iosfwd>
11 #include <vector>
12 
17 
18 /*
19  EventEntryInfo
20 */
21 
22 namespace edm {
23  class EventEntryDescription;
25  public:
28 
29  void write(std::ostream& os) const;
30 
31  BranchID const& branchID() const {return branchID_;}
32  ProductID const& productID() const {return productID_;}
33  ProductStatus const& productStatus() const {return productStatus_;}
35 
36  private:
37 
42  };
43 
44  inline
45  bool
47  return a.branchID() < b.branchID();
48  }
49 
50  inline
51  std::ostream&
52  operator<<(std::ostream& os, EventEntryInfo const& p) {
53  p.write(os);
54  return os;
55  }
56 
57  // Only the 'salient attributes' are testing in equality comparison.
58  bool operator==(EventEntryInfo const& a, EventEntryInfo const& b);
59  inline bool operator!=(EventEntryInfo const& a, EventEntryInfo const& b) { return !(a==b); }
60  typedef std::vector<EventEntryInfo> EventEntryInfoVector;
61 }
62 #endif
bool operator<(DetSet< T > const &x, DetSet< T > const &y)
Definition: DetSet.h:77
ProductStatus const & productStatus() const
byte_t ProductStatus
Definition: ProductStatus.h:15
ProductID const & productID() const
ProductStatus productStatus_
bool operator!=(debugging_allocator< X > const &, debugging_allocator< Y > const &)
std::vector< EventEntryInfo > EventEntryInfoVector
EntryDescriptionID const & entryDescriptionID() const
bool operator==(debugging_allocator< X > const &, debugging_allocator< Y > const &)
EntryDescriptionID entryDescriptionID_
BranchID const & branchID() const
double b
Definition: hdecay.h:120
void write(std::ostream &os) const
double a
Definition: hdecay.h:121
std::ostream & operator<<(std::ostream &ost, const HLTGlobalStatus &hlt)
Formatted printout of trigger tbale.