CMS 3D CMS Logo

ProcessConfiguration.h
Go to the documentation of this file.
1 #ifndef DataFormats_Provenance_ProcessConfiguration_h
2 #define DataFormats_Provenance_ProcessConfiguration_h
3 
8 
9 #include <iosfwd>
10 #include <string>
11 #include <vector>
12 
13 namespace edm {
15  public:
17  ProcessConfiguration(std::string const& procName,
18  ReleaseVersion const& relVersion,
19  PassID const& pass);
20 
21  ProcessConfiguration(std::string const& procName,
22  ParameterSetID const& pSetID,
23  ReleaseVersion const& relVersion,
24  PassID const& pass);
25 
26  std::string const& processName() const {return processName_;}
27  ParameterSetID const& parameterSetID() const;
28  bool isParameterSetValid() const {return parameterSetID_.isValid();}
30  PassID const& passID() const {return passID_;}
31  ProcessConfigurationID id() const;
32 
33  void setParameterSetID(ParameterSetID const& pSetID);
34 
36 
37  void reduce();
38 
40 
41  struct Transients {
43  explicit Transients(bool current) : pcid_(), isCurrentProcess_(current) {}
44  void reset() {
45  pcid_.reset();
46  isCurrentProcess_ = false;
47  }
50  };
51 
52  private:
53  void setPCID(ProcessConfigurationID const& pcid) {transient_.pcid_ = pcid;}
56 
62  };
63 
64  typedef std::vector<ProcessConfiguration> ProcessConfigurationVector;
65 
66  bool
68 
69  inline
70  bool
72  return a.processName() == b.processName() &&
73  a.parameterSetID() == b.parameterSetID() &&
74  a.releaseVersion() == b.releaseVersion() &&
75  a.passID() == b.passID();
76  }
77 
78  inline
79  bool
81  return !(a == b);
82  }
83 
84  std::ostream&
85  operator<<(std::ostream& os, ProcessConfiguration const& pc);
86 }
87 
88 #endif
bool operator<(DetSet< T > const &x, DetSet< T > const &y)
Definition: DetSet.h:92
std::vector< ProcessConfiguration > ProcessConfigurationVector
ProcessConfigurationID setProcessConfigurationID()
ProcessConfigurationID id() const
void setPCID(ProcessConfigurationID const &pcid)
void setParameterSetID(ParameterSetID const &pSetID)
PassID const & passID() const
std::string const & processName() const
ParameterSetID const & parameterSetID() const
bool operator==(debugging_allocator< X > const &, debugging_allocator< Y > const &) noexcept
bool operator!=(debugging_allocator< X > const &, debugging_allocator< Y > const &) noexcept
ReleaseVersion const & releaseVersion() const
double b
Definition: hdecay.h:120
std::string ReleaseVersion
Definition: ReleaseVersion.h:7
HLT enums.
bool isValid() const
Definition: Hash.h:154
double a
Definition: hdecay.h:121
std::ostream & operator<<(std::ostream &ost, const HLTGlobalStatus &hlt)
Formatted printout of trigger tbale.
void reset()
Definition: Hash.h:147
std::string PassID
Definition: PassID.h:8