ATLAS Offline Software
Loading...
Searching...
No Matches
TrigCompositeUtils/TrigCompositeUtils/HLTIdentifier.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2026 CERN for the benefit of the ATLAS collaboration
3*/
4
5#ifndef TrigCompositeUtils_HLTIdentifier_h
6#define TrigCompositeUtils_HLTIdentifier_h
7
8#include <string>
9#include <string_view>
10#include <vector>
11#include <set>
12
15
19namespace HLT {
21public:
22
23 static HLT::Identifier fromToolName( const std::string& tname );
27 explicit Identifier( std::string_view stringID );
28
33
37 std::string name() const;
38
42 inline TrigCompositeUtils::DecisionID numeric() const { return m_id; }
43 inline operator TrigCompositeUtils::DecisionID () const { return numeric(); }
44
48 bool operator == ( const Identifier& rhs ) const { return numeric() == rhs.numeric(); }
49 bool operator == ( TrigCompositeUtils::DecisionID id ) const { return numeric() == id; }
50 bool operator < ( const Identifier& rhs ) const { return numeric() < rhs.numeric(); }
51 bool operator < ( TrigCompositeUtils::DecisionID id ) const { return numeric() < id; }
52private:
54
55};
56 typedef std::vector<HLT::Identifier> IDVec;
57 typedef std::set<HLT::Identifier> IDSet;
58}
59
60MsgStream& operator<< ( MsgStream& m, const HLT::Identifier& id );
61
62
63
64#endif // HLTIdentifier
MsgStream & operator<<(MsgStream &m, const HLT::Identifier &id)
bool operator==(const Identifier &rhs) const
comparisons, for containers of identifiers
TrigCompositeUtils::DecisionID numeric() const
numeric ID
std::string name() const
reports human redable name
static HLT::Identifier fromToolName(const std::string &tname)
Identifier(TrigCompositeUtils::DecisionID id)
Construct wiht numeric ID.
It used to be useful piece of code for replacing actual SG with other store of similar functionality ...
std::vector< HLT::Identifier > IDVec
std::set< HLT::Identifier > IDSet
unsigned int DecisionID