Public Member Functions | Private Attributes | List of all members
PlotKey Class Reference

Public Member Functions

 PlotKey ()=default
 
 PlotKey (const std::string &wgtnm, const std::string &intnm)
 
 PlotKey (const PlotKey &other)=default
 
bool operator< (const PlotKey &other) const
 
std::string mecWgt () const
 
std::string interactionType () const
 
const std::stringcombination () const
 

Private Attributes

std::string _mecWgt
 
std::string _interactionType
 
std::string _combination
 

Detailed Description

Definition at line 92 of file KinematicsPlots.C.

Constructor & Destructor Documentation

PlotKey::PlotKey ( )
default
PlotKey::PlotKey ( const std::string wgtnm,
const std::string intnm 
)
inline

Definition at line 96 of file KinematicsPlots.C.

References fhicl::other, and PlotKey().

97  : _mecWgt(wgtnm), _interactionType(intnm),
98  _combination(Form("{%s}{%s}", wgtnm.c_str(), intnm.c_str()))
99  {};
std::string _combination
std::string _mecWgt
std::string _interactionType
PlotKey::PlotKey ( const PlotKey other)
default

Member Function Documentation

const std::string& PlotKey::combination ( ) const
inline

Definition at line 113 of file KinematicsPlots.C.

References _combination, _mecWgt, and string.

Referenced by Plotter::DataMCComparison(), operator<<(), Plotter::TruthPlots(), and Plotter::WeightPlots().

113 { return this->_combination; };
std::string _combination
std::string PlotKey::interactionType ( ) const
inline

Definition at line 111 of file KinematicsPlots.C.

References _interactionType.

Referenced by operator<(), Plotter::TruthPlots(), and Plotter::WeightPlots().

111 { return this->_interactionType; };
std::string _interactionType
std::string PlotKey::mecWgt ( ) const
inline

Definition at line 110 of file KinematicsPlots.C.

References _mecWgt.

Referenced by Plotter::DataMCComparison(), Plotter::DataMCComparisons(), operator<(), Plotter::TruthPlots(), and Plotter::WeightPlots().

110 { return this->_mecWgt; };
std::string _mecWgt
bool PlotKey::operator< ( const PlotKey other) const
inline

Definition at line 103 of file KinematicsPlots.C.

References _interactionType, _mecWgt, interactionType(), and mecWgt().

103  {
104  if (this->_mecWgt == other.mecWgt())
105  return this->_interactionType < other.interactionType();
106  else
107  return this->_mecWgt < other.mecWgt();
108  };
std::string mecWgt() const
std::string interactionType() const
std::string _mecWgt
std::string _interactionType

Member Data Documentation

std::string PlotKey::_combination
private

Definition at line 119 of file KinematicsPlots.C.

Referenced by combination().

std::string PlotKey::_interactionType
private

Definition at line 116 of file KinematicsPlots.C.

Referenced by interactionType(), and operator<().

std::string PlotKey::_mecWgt
private

Definition at line 113 of file KinematicsPlots.C.

Referenced by combination(), mecWgt(), and operator<().


The documentation for this class was generated from the following file: