|
ATLAS Offline Software
|
Go to the documentation of this file.
7 #ifndef JETREC_FASTJETINTERFACETOOL_H
8 #define JETREC_FASTJETINTERFACETOOL_H
14 #include "fastjet/ClusterSequence.hh"
15 #include "fastjet/JetDefinition.hh"
16 #include "fastjet/AreaDefinition.hh"
25 #ifndef XAOD_STANDALONE
27 #include "fastjet/SISConePlugin.hh"
28 #include "fastjet/CMSIterativeConePlugin.hh"
36 typedef std::map<std::string,fastjet::JetAlgorithm>
algomap_t;
40 typedef std::map<std::string,fastjet::RecombinationScheme>
schememap_t;
42 #ifndef XAOD_STANDALONE
48 typedef std::map<std::string,fastjet::AreaType>
areamap_t;
71 template<
class D,
class M>
72 static bool chkConfig(
const std::string&
key,D&
tag,
const M& map)
75 typename M::const_iterator fMap(map.find(
key));
76 if ( fMap != map.end() ) {
tag = (*fMap).second;
return true; }
77 else {
return false; }
91 template<
class D,
class M>
92 const std::string&
cfgName(D
tag,
const M& map,
const std::string& invalidKey)
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;
287 bool checkConfig(
const std::string&
key,fastjet::JetAlgorithm& fjalg);
305 bool checkConfig(
const std::string&
key,fastjet::RecombinationScheme& fjrs);
314 #ifndef XAOD_STANDALONE
315 bool checkConfig(
const std::string&
key,fastjet::SISConePlugin::SplitMergeScale& fjsms);
324 bool checkConfig(
const std::string&
tag,fastjet::AreaType& fjart);
332 const std::string&
configName(fastjet::JetAlgorithm fjalg);
348 const std::string&
configName(fastjet::RecombinationScheme fjrs);
356 #ifndef XAOD_STANDALONE
357 const std::string&
configName(fastjet::SISConePlugin::SplitMergeScale fjsms);
366 const std::string&
configName(fastjet::AreaType fjart);
393 #ifndef XAOD_STANDALONE
std::vector< fjet_t > fjetlist_t
Container for fastjet jets.
std::map< std::string, fastjet::AreaType > areamap_t
Mapping keyword on fastjet area type tag.
const std::string & cfgName(D tag, const M &map, const std::string &invalidKey)
General configuration keyword finder.
std::map< std::string, fastjet::SISConePlugin::SplitMergeScale > splitMergeScaleMap_t
Mapping keyword on fastjet SIS Cone split merge scale tag.
fastjet::ClusterSequence ClusterSequence
::StatusCode StatusCode
StatusCode definition for legacy code.
std::map< std::string, fastjet::Strategy > strategymap_t
Mapping keyword on fastjet clustering strategy tag.
Collection of types for the internal dictionary.
fastjet::PseudoJet fjet_t
fastjet data model for jet
std::map< std::string, fastjet::RecombinationScheme > schememap_t
Mapping keyword on fastjet recombination scheme tag.
std::map< std::string, fastjet::JetAlgorithm > algomap_t
Mapping keyword on fastjet jet algorithm tag.