ATLAS Offline Software
Loading...
Searching...
No Matches
xAOD::JetAlgorithmType Namespace Reference

Enumerations

enum  ID {
  kt_algorithm = 0 , cambridge_algorithm = 1 , antikt_algorithm = 2 , genkt_algorithm = 3 ,
  cambridge_for_passive_algorithm = 11 , genkt_for_passive_algorithm = 13 , ee_kt_algorithm = 50 , ee_genkt_algorithm = 53 ,
  plugin_algorithm = 99 , undefined_jet_algorithm = 999
}
 //////////////////////////////////////// JetAlgorithmType::ID defines most common physics jet finding algorithms used in Atlas. More...

Functions

const std::string & algName (ID id)
 Converts a JetAlgorithmType::ID into a string.
ID algId (const std::string &n)
 Converts a string into a JetAlgorithmType::ID.
const std::string & algName (fastjet::JetAlgorithm a)
ID algId (fastjet::JetAlgorithm a)
fastjet::JetAlgorithm fastJetDef (ID id)
fastjet::JetAlgorithm fastJetDef (const std::string &name)

Enumeration Type Documentation

◆ ID

//////////////////////////////////////// JetAlgorithmType::ID defines most common physics jet finding algorithms used in Atlas.

It follows fastjet's enum.

Enumerator
kt_algorithm 
cambridge_algorithm 
antikt_algorithm 
genkt_algorithm 
cambridge_for_passive_algorithm 
genkt_for_passive_algorithm 
ee_kt_algorithm 
ee_genkt_algorithm 
plugin_algorithm 
undefined_jet_algorithm 

Definition at line 29 of file JetContainerInfo.h.

Function Documentation

◆ algId() [1/2]

ID xAOD::JetAlgorithmType::algId ( const std::string & n)

Converts a string into a JetAlgorithmType::ID.

Definition at line 76 of file JetContainerInfo.cxx.

76 {
77
78 auto itr = nameToIDmap.find( n );
79 if( itr != nameToIDmap.end() ) {
80 return itr->second;
81 }
83 }

◆ algId() [2/2]

ID xAOD::JetAlgorithmType::algId ( fastjet::JetAlgorithm a)

Definition at line 15 of file FastJetUtils.cxx.

15 {
16 // for now there is a 1-to-1 relation
17 return (ID) a ;
18 }
TList * a
ID
//////////////////////////////////////// JetAlgorithmType::ID defines most common physics jet finding...

◆ algName() [1/2]

const std::string & xAOD::JetAlgorithmType::algName ( fastjet::JetAlgorithm a)

Definition at line 11 of file FastJetUtils.cxx.

11 {
12 return algName( algId(a) );
13 }
ID algId(const std::string &n)
Converts a string into a JetAlgorithmType::ID.
const std::string & algName(ID id)
Converts a JetAlgorithmType::ID into a string.

◆ algName() [2/2]

const std::string & xAOD::JetAlgorithmType::algName ( ID id)

Converts a JetAlgorithmType::ID into a string.

Definition at line 67 of file JetContainerInfo.cxx.

67 {
68
69 auto itr = idToNamemap.find( id );
70 if( itr != idToNamemap.end() ) {
71 return itr->second;
72 }
73 return c_unknownAlg;
74 }

◆ fastJetDef() [1/2]

fastjet::JetAlgorithm xAOD::JetAlgorithmType::fastJetDef ( const std::string & name)

Definition at line 24 of file FastJetUtils.cxx.

24 {
25 return fastJetDef( algId( name) );
26 }
fastjet::JetAlgorithm fastJetDef(ID id)

◆ fastJetDef() [2/2]

fastjet::JetAlgorithm xAOD::JetAlgorithmType::fastJetDef ( ID id)

Definition at line 20 of file FastJetUtils.cxx.

20 {
21 // for now there is a 1-to-1 relation
22 return (fastjet::JetAlgorithm) id;
23 }