ATLAS Offline Software
Loading...
Searching...
No Matches
TrigCompositeUtils/TrigCompositeUtils/HLTIdentifier.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2025 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 <vector>
10#include <set>
11
14
18namespace HLT {
20public:
21
22 static HLT::Identifier fromToolName( const std::string& tname );
26 explicit Identifier( const std::string& stringID );
27
32
36 std::string name() const;
37
41 inline TrigCompositeUtils::DecisionID numeric() const { return m_id; }
42 inline operator TrigCompositeUtils::DecisionID () const { return numeric(); }
43
47 bool operator == ( const Identifier& rhs ) const { return numeric() == rhs.numeric(); }
48 bool operator == ( TrigCompositeUtils::DecisionID id ) const { return numeric() == id; }
49 bool operator < ( const Identifier& rhs ) const { return numeric() < rhs.numeric(); }
50 bool operator < ( TrigCompositeUtils::DecisionID id ) const { return numeric() < id; }
51private:
53
54};
55 typedef std::vector<HLT::Identifier> IDVec;
56 typedef std::set<HLT::Identifier> IDSet;
57}
58
59MsgStream& operator<< ( MsgStream& m, const HLT::Identifier& id );
60
61
62
63#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