Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 13:27:47

0001 
0002 // The only purpose of this is to make it easier to use
0003 // forward declarations when passing around ParameterSetID's.
0004 // ParameterSetID itself is a typedef and hard to forward
0005 // declare.
0006 
0007 #include "DataFormats/Provenance/interface/ParameterSetID.h"
0008 
0009 namespace edm {
0010   namespace eventsetup {
0011 
0012     class ParameterSetIDHolder {
0013     public:
0014       ParameterSetIDHolder(ParameterSetID const& psetID) : psetID_(psetID) {}
0015       ParameterSetID const& psetID() const { return psetID_; }
0016       bool operator<(ParameterSetIDHolder const& other) const { return psetID() < other.psetID(); }
0017       bool operator==(ParameterSetIDHolder const& other) const { return psetID() == other.psetID(); }
0018 
0019     private:
0020       ParameterSetID psetID_;
0021     };
0022   }  // namespace eventsetup
0023 }  // namespace edm