|
ATLAS Offline Software
|
Go to the documentation of this file.
7 #ifndef PATCORE_ACCEPT_INFO_H
8 #define PATCORE_ACCEPT_INFO_H
32 static const unsigned int NBITS=32;
53 int addCut(
const std::string& cutName,
const std::string& cutDescription )
62 std::pair< std::string, unsigned int > cutPair = std::make_pair( cutDescription,
m_cutMap.size() );
63 m_cutMap.insert( std::make_pair( cutName, cutPair ) );
81 const std::string&
getCutName(
unsigned int cutPosition )
const;
92 inline void setCutDescription(
const std::string& cutName,
const std::string& cutDescription )
99 void setCutDescription(
unsigned int cutPosition,
const std::string& cutDescription );
109 std::map< std::string, std::pair< std::string, unsigned int > >
m_cutMap;
std::string m_name
The name of the class instance.
AcceptInfo(const char *name="AcceptInfo")
Standard constructor.
unsigned int getCutPosition(const std::string &cutName) const
Get the bit position of a cut.
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)
unsigned int getNCuts() const
Get the number of cuts defined.
static const unsigned int NBITS
The number of bits for cuts.
const char * getName() const
Get the name of the class instance.
std::map< std::string, std::pair< std::string, unsigned int > > m_cutMap
The map for mapping cut names to their description and position.
std::bitset< NBITS > m_cutMask
A bitmap that provides a mask that only leaves defined cuts.
const std::string & getCutDescription(const std::string &cutName) const
Get the description of a cut, based on the cut name.
int addCut(const std::string &cutName, const std::string &cutDescription)
Add a cut; returning the cut position.
const std::bitset< NBITS > & getCutMask() const
Get a bitmask for all cuts defined.