 |
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)
95 return !(*
this ==
other);
114 m_itr = std::string::const_iterator();
115 m_end = std::string::const_iterator();
142 return m_itr == std::string::const_iterator();
152 if (
match.str(1).empty())
157 if (
match.str(3).empty())
185 if (
pos == std::string::npos)
193 const static std::vector<std::string>
signatures{
194 "e",
"g",
"j",
"dispjet",
"mu",
"tau",
"xe",
"xs",
"te",
"ht",
"noalg",
"mb",
"hi",
"eb",
195 "l1calocalib",
"lar",
"zdc",
"lumipeb",
"alfacalib",
"calibAFP",
"afp",
"distrk",
196 "hitdvjet",
"isotrk",
"dedxtrk",
"l1topoPh1debug",
"caloclustermon",
"fslrt",
197 "beamspot",
"cosmic",
"timeburner",
"mistimemonj400",
"larsupercellmon",
"larnoiseburst",
198 "acceptedevts",
"larpsall",
"larpsallem",
"idcalib",
"metcalo",
"mettrk",
205 const static std::vector<std::string> postfixQualifiers{
206 "noL1",
"vtx",
"c",
"C",
"f",
"a"
208 return postfixQualifiers;
213 const static std::set<std::string> singleLegIDs{
214 "noalg",
"acceptedevts"
@ TrackParticle
The object is a charged track particle.
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.
const std::vector< std::string > & allSignaturePostfixQualifiers()
A list of all post-fix qualifiers which may come immediately after the "XSigY" pattern,...
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...
const std::set< std::string > & singleLegIdentifiers()
A set of identifiers which are actually single leg, even if followed by other identifiers.
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)