|
ATLAS Offline Software
|
Go to the documentation of this file.
16 std::string
join(
const std::vector<std::string> &
parts,
const std::string &piece)
21 auto itr =
parts.begin();
23 for (++itr; itr !=
parts.end(); ++itr)
93 return !(*
this ==
other);
112 m_itr = std::string::const_iterator();
113 m_end = std::string::const_iterator();
140 return m_itr == std::string::const_iterator();
150 if (
match.str(1).empty())
155 if (
match.str(3).empty())
182 if (
pos == std::string::npos)
190 const static std::vector<std::string>
signatures{
191 "e",
"g",
"j",
"mu",
"tau",
"xe",
"xs",
"te",
"ht",
"noalg",
"mb",
192 "l1calocalib",
"lar",
"zdc",
"lumipeb",
"alfacalib",
"calibAFP",
"afp"
const std::vector< std::string > & allSignatures()
A list of all signature names.
xAODType::ObjectType type() const
The type of xAOD IParticle produced by this signature if relevant.
pointer operator->() const
Iterate over the legs of a chain.
std::string find(const std::string &s)
return a remapped string
@ Photon
The object is a photon.
std::string signature
The HLT signature responsible for creating the object.
reference operator*() const
Dereference the iterator.
bool exhausted() const
Whether the iterator is exhausted.
int threshold
The threshold on the object.
std::size_t m_peekMultiplicity
std::string::const_iterator m_itr
LegInfoIterator()=default
Default constructor creates a past-the-end iterator.
std::string::const_iterator m_end
@ Jet
The object is a jet.
bool operator==(const LegInfoIterator &other) const
Check (in)equality against another iterator.
@ Other
An object not falling into any of the other categories.
std::string l1Item() const
Read the L1 item from the chain. Returns the empty string if the L1 item isn't in the chain name.
std::string join(const std::vector< std::string > &v, const char c=',')
std::vector< int > multiplicities(const std::string &chain)
std::string to_string(const DetectorType &type)
@ Muon
The object is a muon.
std::vector< std::string > legParts
All the parts of the leg.
bool operator!=(const LegInfoIterator &other) const
std::vector< std::string > signatures(const std::string &chain)
@ Electron
The object is an electron.
Struct containing information on each leg of a chain.
std::string m_peekSignature
@ CaloCluster
The object is a calorimeter cluster.
const boost::regex re(r_e)
LegInfoIterator & operator++()
pre-increment operator
@ Tau
The object is a tau (jet)
int atoi(std::string_view str)
Helper functions to unpack numbers decoded in string into integers and doubles The strings are requir...
std::string legHeadPattern()
ObjectType
Type of objects that have a representation in the xAOD EDM.
std::string legName() const
The name of the leg.
bool match(std::string s1, std::string s2)
match the individual directories of two strings
std::size_t multiplicity
The multiplicity of the leg (number of objects returned by the leg)