ATLAS Offline Software
Loading...
Searching...
No Matches
FastJetInterface Namespace Reference

Collection of types for the internal dictionary. More...

Typedefs

typedef std::map< std::string, fastjet::JetAlgorithm > algomap_t
 Mapping keyword on fastjet jet algorithm tag.
typedef std::map< std::string, fastjet::Strategy > strategymap_t
 Mapping keyword on fastjet clustering strategy tag.
typedef std::map< std::string, fastjet::RecombinationScheme > schememap_t
 Mapping keyword on fastjet recombination scheme tag.
typedef std::map< std::string, fastjet::SISConePlugin::SplitMergeScale > splitMergeScaleMap_t
 Mapping keyword on fastjet SIS Cone split merge scale tag.
typedef std::map< std::string, fastjet::AreaType > areamap_t
 Mapping keyword on fastjet area type tag.
typedef fastjet::PseudoJet fjet_t
 fastjet data model for jet
typedef std::vector< fjet_tfjetlist_t
 Container for fastjet jets.

Functions

template<class D, class M>
static bool chkConfig (const std::string &key, D &tag, const M &map)
 General configuration check.
template<class D, class M>
const std::string & cfgName (D tag, const M &map, const std::string &invalidKey)
 General configuration keyword finder.

Detailed Description

Collection of types for the internal dictionary.

Typedef Documentation

◆ algomap_t

typedef std::map<std::string,fastjet::JetAlgorithm> FastJetInterface::algomap_t

Mapping keyword on fastjet jet algorithm tag.

Definition at line 36 of file FastJetInterfaceTool.h.

◆ areamap_t

typedef std::map<std::string,fastjet::AreaType> FastJetInterface::areamap_t

Mapping keyword on fastjet area type tag.

Definition at line 48 of file FastJetInterfaceTool.h.

◆ fjet_t

typedef fastjet::PseudoJet FastJetInterface::fjet_t

fastjet data model for jet

Definition at line 51 of file FastJetInterfaceTool.h.

◆ fjetlist_t

typedef std::vector<fjet_t> FastJetInterface::fjetlist_t

Container for fastjet jets.

Definition at line 53 of file FastJetInterfaceTool.h.

◆ schememap_t

typedef std::map<std::string,fastjet::RecombinationScheme> FastJetInterface::schememap_t

Mapping keyword on fastjet recombination scheme tag.

Definition at line 40 of file FastJetInterfaceTool.h.

◆ splitMergeScaleMap_t

typedef std::map<std::string,fastjet::SISConePlugin::SplitMergeScale> FastJetInterface::splitMergeScaleMap_t

Mapping keyword on fastjet SIS Cone split merge scale tag.

Definition at line 43 of file FastJetInterfaceTool.h.

◆ strategymap_t

typedef std::map<std::string,fastjet::Strategy> FastJetInterface::strategymap_t

Mapping keyword on fastjet clustering strategy tag.

Definition at line 38 of file FastJetInterfaceTool.h.

Function Documentation

◆ cfgName()

template<class D, class M>
const std::string & FastJetInterface::cfgName ( D tag,
const M & map,
const std::string & invalidKey )

General configuration keyword finder.

Generalized linear search for keyword associated with given fastjet tag.

Returns
Reference to non-modifiable keyword if fastjet tag is known, else reference to non-modifiable invalid keyword indicator.
Parameters
[in]tagfastjet tag to be checked
[in]mapdictionary mapping keyword to fastjet tag

Definition at line 92 of file FastJetInterfaceTool.h.

93 {
94 typename M::const_iterator fMap(map.begin());
95 typename M::const_iterator lMap(map.end());
96 while ( fMap != lMap && (*fMap).second != tag ) { ++fMap; }
97 return fMap != lMap ? (*fMap).first : invalidKey;
98 }
STL class.

◆ chkConfig()

template<class D, class M>
bool FastJetInterface::chkConfig ( const std::string & key,
D & tag,
const M & map )
static

General configuration check.

Retrieves fastjet tag for given key.

Returns
true if tag for given key is available, else false
Parameters
[in]keyreference to non-modifiable key
[out]tagreference to modifiable tag data; will be set if key is found, else unchanged
[in]mapdictionary relating key to tag

Definition at line 72 of file FastJetInterfaceTool.h.

73 {
74 // std::cout << "Looking for key <" << key << "> in " << map.size() << " entries." << std::endl;
75 typename M::const_iterator fMap(map.find(key));
76 if ( fMap != map.end() ) { tag = (*fMap).second; return true; }
77 else { return false; }
78 }