CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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 
12 namespace edm {
14  public:
16  ProcessConfiguration(std::string const& procName,
17  ReleaseVersion const& relVersion,
18  PassID const& pass);
19 
20  ProcessConfiguration(std::string const& procName,
21  ParameterSetID const& pSetID,
22  ReleaseVersion const& relVersion,
23  PassID const& pass);
24 
25  std::string const& processName() const {return processName_;}
26  ParameterSetID const& parameterSetID() const;
27  bool isParameterSetValid() const {return parameterSetID_.isValid();}
29  PassID const& passID() const {return passID_;}
30  ProcessConfigurationID id() const;
31 
32  void setParameterSetID(ParameterSetID const& pSetID);
33 
34  void reduce();
35 
37 
38  struct Transients {
40  explicit Transients(bool current) : pcid_(), isCurrentProcess_(current) {}
41  void reset() {
42  pcid_.reset();
43  isCurrentProcess_ = false;
44  }
47  };
48 
49  private:
52 
53  std::string processName_;
58  };
59 
60  bool
62 
63  inline
64  bool
66  return a.processName() == b.processName() &&
67  a.parameterSetID() == b.parameterSetID() &&
68  a.releaseVersion() == b.releaseVersion() &&
69  a.passID() == b.passID();
70  }
71 
72  inline
73  bool
75  return !(a == b);
76  }
77 
78  std::ostream&
79  operator<<(std::ostream& os, ProcessConfiguration const& pc);
80 }
81 
82 #endif
bool operator<(DetSet< T > const &x, DetSet< T > const &y)
Definition: DetSet.h:91
ProcessConfigurationID id() const
bool operator!=(debugging_allocator< X > const &, debugging_allocator< Y > const &)
void setParameterSetID(ParameterSetID const &pSetID)
PassID const & passID() const
ProcessConfigurationID & pcid() const
std::string const & processName() const
ParameterSetID const & parameterSetID() const
bool operator==(debugging_allocator< X > const &, debugging_allocator< Y > const &)
ReleaseVersion const & releaseVersion() const
double b
Definition: hdecay.h:120
std::string ReleaseVersion
Definition: ReleaseVersion.h:7
bool isValid() const
Definition: Hash.h:146
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:139
std::string PassID
Definition: PassID.h:8