|
ATLAS Offline Software
|
Go to the documentation of this file.
38 static const std::string emptyString;
41 if ( cutPosition >=
m_cutMap.size() )
49 for ( ;
it != itEnd; ++
it )
51 if ( (
it->second).second == cutPosition )
68 static const std::string emptyString;
71 if ( cutPosition >= m_cutMap.size() )
77 auto it = m_cutMap.begin();
78 auto itEnd = m_cutMap.end();
79 for ( ;
it != itEnd; ++
it )
81 if ( (
it->second).second == cutPosition )
83 return (
it->second).first;
100 auto it = m_cutMap.begin();
101 auto itEnd = m_cutMap.end();
102 for ( ;
it != itEnd; ++
it )
104 if ( (
it->second).second == cutPosition )
106 ((
it->second).
first) = cutDescription;
121 static const std::string emptyString;
122 auto it = m_cutMap.find(cutName);
123 return (
it != m_cutMap.end()) ? (
it->second).
first : emptyString;
const std::string & getCutName(unsigned int cutPosition) const
Get the name of a cut, based on the cut position (slow, avoid usage)
void setCutDescription(const std::string &cutName, const std::string &cutDescription)
Set the result of a cut, based on the cut name (safer)
std::map< std::string, std::pair< std::string, unsigned int > > m_cutMap
The map for mapping cut names to their description and position.
const std::string & getCutDescription(const std::string &cutName) const
Get the description of a cut, based on the cut name.