CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
nanoaod::UniqueString Class Reference

#include <UniqueString.h>

Public Member Functions

bool isProductEqual (const UniqueString &other) const
 
bool operator== (const std::string &other) const
 
bool operator== (const UniqueString &other) const
 
const std::string & str () const
 
 UniqueString ()
 
 UniqueString (const std::string &str)
 

Private Attributes

std::string str_
 

Detailed Description

Definition at line 8 of file UniqueString.h.

Constructor & Destructor Documentation

◆ UniqueString() [1/2]

nanoaod::UniqueString::UniqueString ( )
inline

Definition at line 10 of file UniqueString.h.

10 {}

◆ UniqueString() [2/2]

nanoaod::UniqueString::UniqueString ( const std::string &  str)
inline

Definition at line 11 of file UniqueString.h.

11 : str_(str) {}
const std::string & str() const
Definition: UniqueString.h:12

Member Function Documentation

◆ isProductEqual()

bool nanoaod::UniqueString::isProductEqual ( const UniqueString other) const
inline

Definition at line 15 of file UniqueString.h.

References trackingPlots::other.

15 { return (*this) == other; }

◆ operator==() [1/2]

bool nanoaod::UniqueString::operator== ( const std::string &  other) const
inline

Definition at line 13 of file UniqueString.h.

References trackingPlots::other, and str_.

13 { return str_ == other; }

◆ operator==() [2/2]

bool nanoaod::UniqueString::operator== ( const UniqueString other) const
inline

Definition at line 14 of file UniqueString.h.

References trackingPlots::other, and str_.

14 { return str_ == other.str_; }

◆ str()

const std::string& nanoaod::UniqueString::str ( ) const
inline

Definition at line 12 of file UniqueString.h.

References str_.

Referenced by NanoAODOutputModule::writeRun(), and NanoAODRNTupleOutputModule::writeRun().

12 { return str_; }

Member Data Documentation

◆ str_

std::string nanoaod::UniqueString::str_
private

Definition at line 18 of file UniqueString.h.

Referenced by operator==(), and str().