CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
EventEntryDescription.h
Go to the documentation of this file.
1 #ifndef DataFormats_Provenance_EventEntryDescription_h
2 #define DataFormats_Provenance_EventEntryDescription_h
3 
4 /*----------------------------------------------------------------------
5 
6 EventEntryDescription: The event dependent portion of the description of a product
7 and how it came into existence.
8 
9 ----------------------------------------------------------------------*/
10 #include <iosfwd>
11 #include <vector>
12 
15 
16 /*
17  EventEntryDescription
18 
19  definitions:
20  Product: The EDProduct to which a provenance object is associated
21 
22  Creator: The EDProducer that made the product.
23 
24  Parents: The EDProducts used as input by the creator.
25 */
26 
27 namespace edm {
29  public:
31 
33 
34  // Only the 'salient attributes' are encoded into the ID.
35  EntryDescriptionID id() const;
36 
37  void write(std::ostream& os) const;
38 
39  std::vector<BranchID> const& parents() const {return parents_;}
40  std::vector<BranchID> & parents() {return parents_;}
41 
42  private:
43 
44  // The Branch IDs of the parents
45  std::vector<BranchID> parents_;
46 
48  };
49 
50  inline
51  std::ostream&
52  operator<<(std::ostream& os, EventEntryDescription const& p) {
53  p.write(os);
54  return os;
55  }
56 
57  // Only the 'salient attributes' are testing in equality comparison.
58  bool operator==(EventEntryDescription const& a, EventEntryDescription const& b);
59  inline bool operator!=(EventEntryDescription const& a, EventEntryDescription const& b) { return !(a==b); }
60 }
61 #endif
std::vector< BranchID > parents_
bool operator!=(debugging_allocator< X > const &, debugging_allocator< Y > const &)
std::vector< BranchID > const & parents() const
Hash< ModuleDescriptionType > moduleDescriptionID_
bool operator==(debugging_allocator< X > const &, debugging_allocator< Y > const &)
EntryDescriptionID id() const
void write(std::ostream &os) const
double b
Definition: hdecay.h:120
std::vector< BranchID > & parents()
double a
Definition: hdecay.h:121
std::ostream & operator<<(std::ostream &ost, const HLTGlobalStatus &hlt)
Formatted printout of trigger tbale.