CMS 3D CMS Logo

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 WrapperBase 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 
41  void setParents(std::vector<BranchID> const& parents) {parents_ = parents;}
42 
43  private:
44 
45  // The Branch IDs of the parents
46  std::vector<BranchID> parents_;
47 
49  };
50 
51  inline
52  std::ostream&
53  operator<<(std::ostream& os, EventEntryDescription const& p) {
54  p.write(os);
55  return os;
56  }
57 
58  // Only the 'salient attributes' are testing in equality comparison.
60  inline bool operator!=(EventEntryDescription const& a, EventEntryDescription const& b) { return !(a==b); }
61 }
62 #endif
std::vector< BranchID > parents_
bool operator!=(debugging_allocator< X > const &, debugging_allocator< Y > const &)
std::vector< BranchID > const & parents() const
void setParents(std::vector< BranchID > const &parents)
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
HLT enums.
double a
Definition: hdecay.h:121
std::ostream & operator<<(std::ostream &ost, const HLTGlobalStatus &hlt)
Formatted printout of trigger tbale.