1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
#ifndef PhysicsTools_NanoAOD_UniqueString_h
#define PhysicsTools_NanoAOD_UniqueString_h
#include <string>
namespace nanoaod {
class UniqueString {
public:
UniqueString() {}
UniqueString(const std::string& str) : str_(str) {}
const std::string& str() const { return str_; }
bool operator==(const std::string& other) const { return str_ == other; }
bool operator==(const UniqueString& other) const { return str_ == other.str_; }
bool isProductEqual(const UniqueString& other) const { return (*this) == other; }
private:
std::string str_;
};
} // namespace nanoaod
#endif
|