File indexing completed on 2024-04-06 12:05:01
0001 #ifndef DataFormats_Provenance_History_h
0002 #define DataFormats_Provenance_History_h
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016 #include <vector>
0017 #include "DataFormats/Provenance/interface/EventSelectionID.h"
0018 #include "DataFormats/Provenance/interface/BranchListIndex.h"
0019 #include "DataFormats/Provenance/interface/ProcessHistoryID.h"
0020
0021 namespace edm {
0022 class History {
0023 public:
0024 typedef std::size_t size_type;
0025
0026
0027
0028
0029
0030
0031 size_type size() const;
0032
0033
0034
0035
0036 void addEventSelectionEntry(EventSelectionID const& eventSelection);
0037
0038 void addBranchListIndexEntry(BranchListIndex const& branchListIndex);
0039
0040 EventSelectionID const& getEventSelectionID(size_type i) const;
0041
0042 EventSelectionIDVector const& eventSelectionIDs() const { return eventSelections_; }
0043
0044 EventSelectionIDVector& eventSelectionIDs() { return eventSelections_; }
0045
0046 ProcessHistoryID const& processHistoryID() const { return processHistoryID_; }
0047
0048 void setProcessHistoryID(ProcessHistoryID const& phid) { processHistoryID_ = phid; }
0049
0050 BranchListIndexes const& branchListIndexes() const { return branchListIndexes_; }
0051
0052 BranchListIndexes& branchListIndexes() { return branchListIndexes_; }
0053
0054 private:
0055
0056
0057
0058
0059
0060
0061 EventSelectionIDVector eventSelections_;
0062
0063 BranchListIndexes branchListIndexes_;
0064
0065 ProcessHistoryID processHistoryID_;
0066 };
0067
0068 }
0069
0070 #endif