CMS 3D CMS Logo

UniqueString.h
Go to the documentation of this file.
1 #ifndef PhysicsTools_NanoAOD_UniqueString_h
2 #define PhysicsTools_NanoAOD_UniqueString_h
3 
4 #include <string>
5 
6 namespace nanoaod {
7 
8  class UniqueString {
9  public:
12  const std::string& str() const { return str_; }
13  bool operator==(const std::string& other) const { return str_ == other; }
14  bool operator==(const UniqueString& other) const { return str_ == other.str_; }
15  bool isProductEqual(const UniqueString& other) const { return (*this) == other; }
16 
17  private:
19  };
20 
21 } // namespace nanoaod
22 
23 #endif
nanoaod::UniqueString::operator==
bool operator==(const std::string &other) const
Definition: UniqueString.h:13
nanoaod
Definition: FlatTable.h:13
nanoaod::UniqueString::operator==
bool operator==(const UniqueString &other) const
Definition: UniqueString.h:14
nanoaod::UniqueString::UniqueString
UniqueString()
Definition: UniqueString.h:10
nanoaod::UniqueString::str_
std::string str_
Definition: UniqueString.h:18
trackingPlots.other
other
Definition: trackingPlots.py:1464
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
nanoaod::UniqueString::UniqueString
UniqueString(const std::string &str)
Definition: UniqueString.h:11
nanoaod::UniqueString::isProductEqual
bool isProductEqual(const UniqueString &other) const
Definition: UniqueString.h:15
nanoaod::UniqueString
Definition: UniqueString.h:8
nanoaod::UniqueString::str
const std::string & str() const
Definition: UniqueString.h:12