Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
DataFormats
Provenance
interface
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
13
#include "
DataFormats/Provenance/interface/BranchID.h
"
14
#include "
DataFormats/Provenance/interface/EntryDescriptionID.h
"
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 {
28
class
EventEntryDescription
{
29
public
:
30
EventEntryDescription
();
31
32
~EventEntryDescription
() {}
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
47
Hash<ModuleDescriptionType>
moduleDescriptionID_
;
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
edm::EventEntryDescription::parents_
std::vector< BranchID > parents_
Definition:
EventEntryDescription.h:45
edm::Hash< EntryDescriptionType >
edm::EventEntryDescription::EventEntryDescription
EventEntryDescription()
Definition:
EventEntryDescription.cc:11
edm::operator!=
bool operator!=(debugging_allocator< X > const &, debugging_allocator< Y > const &)
Definition:
debugging_allocator.h:76
edm::EventEntryDescription::parents
std::vector< BranchID > const & parents() const
Definition:
EventEntryDescription.h:39
BranchID.h
edm::EventEntryDescription::moduleDescriptionID_
Hash< ModuleDescriptionType > moduleDescriptionID_
Definition:
EventEntryDescription.h:47
edm::EventEntryDescription
Definition:
EventEntryDescription.h:28
edm::operator==
bool operator==(debugging_allocator< X > const &, debugging_allocator< Y > const &)
Definition:
debugging_allocator.h:73
edm::EventEntryDescription::id
EntryDescriptionID id() const
Definition:
EventEntryDescription.cc:16
edm::EventEntryDescription::write
void write(std::ostream &os) const
Definition:
EventEntryDescription.cc:37
b
double b
Definition:
hdecay.h:120
EntryDescriptionID.h
AlCaHLTBitMon_ParallelJobs.p
tuple p
Definition:
AlCaHLTBitMon_ParallelJobs.py:152
edm::EventEntryDescription::parents
std::vector< BranchID > & parents()
Definition:
EventEntryDescription.h:40
a
double a
Definition:
hdecay.h:121
edm::EventEntryDescription::~EventEntryDescription
~EventEntryDescription()
Definition:
EventEntryDescription.h:32
edm::operator<<
std::ostream & operator<<(std::ostream &ost, const HLTGlobalStatus &hlt)
Formatted printout of trigger tbale.
Definition:
HLTGlobalStatus.h:117
Generated for CMSSW Reference Manual by
1.8.5