|
ATLAS Offline Software
|
|
def | RenameInputContainerCfg (suffix) |
|
def | RenameHLTaggerCfg (JetCollection, Tagger, suffix) |
|
def | BTagHLTaggersCfg (inputFlags, JetCollection=[]) |
|
def | RunHighLevelTaggersCfg (inputFlags, jet, tracks, Associator, taggers) |
|
def | str2bool (v) |
|
def | PrepareStandAloneBTagCfg (inputFlags) |
|
def | BTagRedoESDCfg (flags, jet, extraContainers=[]) |
|
def | registerJetCollectionEL (flags, JetCollection) |
|
def | registerOutputBTaggingContainers (flags, JetCollection, suffix='') |
|
◆ BTagHLTaggersCfg()
def python.BTagESD.BTagHLTaggersCfg |
( |
|
inputFlags, |
|
|
|
JetCollection = [] |
|
) |
| |
Definition at line 44 of file BTagESD.py.
48 from OutputStreamAthenaPool.OutputStreamConfig
import OutputStreamCfg
51 DeprecatedHLTaggers = [
'rnnip',
'DL1']
52 postTagDL2JetToTrainingMap={
55 'BTagging/201903/rnnip/antikt4empflow/network.json',
56 'BTagging/201903/dl1r/antikt4empflow/network.json',
57 'BTagging/201903/dl1/antikt4empflow/network.json',
61 for jet
in JetCollection:
62 if jet
in postTagDL2JetToTrainingMap:
63 for tagger
in DeprecatedHLTaggers:
69 acc.merge(
RunHighLevelTaggersCfg(cfgFlags, jet,
'BTagTrackToJetAssociator', postTagDL2JetToTrainingMap[jet],
""))
◆ BTagRedoESDCfg()
def python.BTagESD.BTagRedoESDCfg |
( |
|
flags, |
|
|
|
jet, |
|
|
|
extraContainers = [] |
|
) |
| |
Definition at line 110 of file BTagESD.py.
119 from OutputStreamAthenaPool.OutputStreamConfig
import OutputStreamCfg
120 acc.merge(
OutputStreamCfg(flags,
"ESD", ItemList=ESDItemList+extraContainers))
◆ PrepareStandAloneBTagCfg()
def python.BTagESD.PrepareStandAloneBTagCfg |
( |
|
inputFlags | ) |
|
Definition at line 94 of file BTagESD.py.
97 from AthenaPoolCnvSvc.PoolReadConfig
import PoolReadCfg
101 from MagFieldServices.MagFieldServicesConfig
import AtlasFieldCacheCondAlgCfg
105 from IOVDbSvc.IOVDbSvcConfig
import addFolders
106 result.merge(
addFolders(inputFlags,[
'/TRT/Align'],
'TRT_OFL'))
◆ registerJetCollectionEL()
def python.BTagESD.registerJetCollectionEL |
( |
|
flags, |
|
|
|
JetCollection |
|
) |
| |
Definition at line 124 of file BTagESD.py.
127 ItemList.append(
'xAOD::JetContainer#'+JetCollection+
'Jets')
128 ItemList.append(
'xAOD::JetAuxContainer#'+JetCollection+
'JetsAux.btaggingLink')
◆ registerOutputBTaggingContainers()
def python.BTagESD.registerOutputBTaggingContainers |
( |
|
flags, |
|
|
|
JetCollection, |
|
|
|
suffix = '' |
|
) |
| |
Registers the jet collection to various containers in BTaggingFlags which govern which
containers will be parsed to the output xAOD and ESD files. This used to happen in
./share/BTagging_jobOptions.py.
input: JetCollection: The name of the jet collection.
Definition at line 131 of file BTagESD.py.
132 """Registers the jet collection to various containers in BTaggingFlags which govern which
133 containers will be parsed to the output xAOD and ESD files. This used to happen in
134 ./share/BTagging_jobOptions.py.
136 input: JetCollection: The name of the jet collection."""
139 OutputFilesSVname =
"SecVtx"
140 OutputFilesJFVxname =
"JFVtx"
141 OutputFilesBaseName =
"xAOD::BTaggingContainer#"
142 OutputFilesBaseAuxName =
"xAOD::BTaggingAuxContainer#"
143 OutputFilesBaseNameSecVtx =
"xAOD::VertexContainer#"
144 OutputFilesBaseAuxNameSecVtx =
"xAOD::VertexAuxContainer#"
145 OutputFilesBaseNameJFSecVtx =
"xAOD::BTagVertexContainer#"
146 OutputFilesBaseAuxNameJFSecVtx=
"xAOD::BTagVertexAuxContainer#"
148 author = flags.BTagging.OutputFiles.Prefix + JetCollection
150 ItemList.append(OutputFilesBaseNameSecVtx + author + OutputFilesSVname)
151 ItemList.append(OutputFilesBaseAuxNameSecVtx + author + OutputFilesSVname +
'Aux.-vxTrackAtVertex')
153 ItemList.append(OutputFilesBaseNameJFSecVtx + author + OutputFilesJFVxname)
154 ItemList.append(OutputFilesBaseAuxNameJFSecVtx + author + OutputFilesJFVxname +
'Aux.')
157 author +=
'_' + suffix
159 ItemList.append(OutputFilesBaseName + author)
160 ItemList.append(OutputFilesBaseAuxName + author +
'Aux.*')
◆ RenameHLTaggerCfg()
def python.BTagESD.RenameHLTaggerCfg |
( |
|
JetCollection, |
|
|
|
Tagger, |
|
|
|
suffix |
|
) |
| |
Definition at line 30 of file BTagESD.py.
32 AddressRemappingSvc, ProxyProviderSvc=CompFactory.getComps(
"AddressRemappingSvc",
"ProxyProviderSvc",)
34 AddressRemappingSvc.TypeKeyRenameMaps += [
'xAOD::BTaggingAuxContainer#BTagging_' + JetCollection +
'.' + Tagger +
'_pu->BTagging_' + JetCollection +
'.'+ Tagger +
'_pu' + suffix]
35 AddressRemappingSvc.TypeKeyRenameMaps += [
'xAOD::BTaggingAuxContainer#BTagging_' + JetCollection +
'.' + Tagger +
'_pc->BTagging_' + JetCollection +
'.'+ Tagger +
'_pc' + suffix]
36 AddressRemappingSvc.TypeKeyRenameMaps += [
'xAOD::BTaggingAuxContainer#BTagging_' + JetCollection +
'.' + Tagger +
'_pb->BTagging_' + JetCollection +
'.'+ Tagger +
'_pb' + suffix]
37 AddressRemappingSvc.TypeKeyRenameMaps += [
'xAOD::BTaggingAuxContainer#BTagging_' + JetCollection +
'.' + Tagger +
'_ptau->BTagging_' + JetCollection +
'.'+ Tagger +
'_ptau' + suffix]
38 acc.addService(AddressRemappingSvc)
◆ RenameInputContainerCfg()
def python.BTagESD.RenameInputContainerCfg |
( |
|
suffix | ) |
|
Definition at line 12 of file BTagESD.py.
16 AddressRemappingSvc, ProxyProviderSvc=CompFactory.getComps(
"AddressRemappingSvc",
"ProxyProviderSvc",)
18 AddressRemappingSvc.TypeKeyRenameMaps += [
'xAOD::JetAuxContainer#AntiKt4EMTopoJets.btaggingLink->AntiKt4EMTopoJets.btaggingLink_' + suffix]
19 AddressRemappingSvc.TypeKeyRenameMaps += [
'xAOD::BTaggingContainer#BTagging_AntiKt4EMTopo->BTagging_AntiKt4EMTopo_' + suffix]
20 AddressRemappingSvc.TypeKeyRenameMaps += [
'xAOD::BTaggingAuxContainer#BTagging_AntiKt4EMTopoAux.->BTagging_AntiKt4EMTopo_' + suffix+
"Aux."]
21 AddressRemappingSvc.TypeKeyRenameMaps += [
'xAOD::VertexContainer#BTagging_AntiKt4EMTopoSecVtx->BTagging_AntiKt4EMTopoSecVtx_' + suffix]
22 AddressRemappingSvc.TypeKeyRenameMaps += [
'xAOD::VertexAuxContainer#BTagging_AntiKt4EMTopoSecVtxAux.->BTagging_AntiKt4EMTopoSecVtx_' + suffix+
"Aux."]
23 AddressRemappingSvc.TypeKeyRenameMaps += [
'xAOD::BTagVertexContainer#BTagging_AntiKt4EMTopoJFVtx->BTagging_AntiKt4EMTopoJFVtx_' + suffix]
24 AddressRemappingSvc.TypeKeyRenameMaps += [
'xAOD::BTagVertexAuxContainer#BTagging_AntiKt4EMTopoJFVtxAux.->BTagging_AntiKt4EMTopoJFVtx_' + suffix+
"Aux."]
25 acc.addService(AddressRemappingSvc)
◆ RunHighLevelTaggersCfg()
def python.BTagESD.RunHighLevelTaggersCfg |
( |
|
inputFlags, |
|
|
|
jet, |
|
|
|
tracks, |
|
|
|
Associator, |
|
|
|
taggers |
|
) |
| |
Definition at line 74 of file BTagESD.py.
77 BTagCollection = inputFlags.BTagging.OutputFiles.Prefix+JetCollection
78 result.merge(
BTagJetAugmenterAlgCfg(inputFlags, JetCollection=jet, BTagCollection=BTagCollection, Associator=Associator, TrackCollection=tracks) )
80 result.merge(
FlavorTagNNCfg(inputFlags, BTagCollection, TrackCollection=tracks, NNFile=dl2) )
◆ str2bool()
def python.BTagESD.str2bool |
( |
|
v | ) |
|
Definition at line 85 of file BTagESD.py.
86 if v.lower()
in (
'yes',
'true',
't',
'y',
'1'):
88 elif v.lower()
in (
'no',
'false',
'f',
'n',
'0'):
91 raise argparse.ArgumentTypeError(
'Boolean value expected.')
◆ acc
python.BTagESD.acc = MainServicesCfg(cfgFlags) |
◆ args
python.BTagESD.args = parser.parse_args() |
◆ cfgFlags
python.BTagESD.cfgFlags = initConfigFlags() |
◆ default
◆ ESDFileName
python.BTagESD.ESDFileName |
python.BTagESD.f = open("BTag.pkl","wb") |
◆ False
◆ Files
◆ Format
◆ help
◆ inputESD
python.BTagESD.inputESD = "/cvmfs/atlas-nightlies.cern.ch/repo/data/data-art/RecExRecoTest/mc21_13p6TeV/ESDFiles/mc21_13p6TeV.421450.PhPy8EG_A14_ttbar_hdamp258p75_SingleLep_fct.recon.ESD.e8445_e8447_s3822_r13565/ESD.28877240._000046.pool.root.1" |
◆ int
◆ JetCollection
list python.BTagESD.JetCollection = ['AntiKt4EMTopo', 'AntiKt4EMPFlow'] |
◆ NumConcurrentEvents
python.BTagESD.NumConcurrentEvents |
◆ NumThreads
python.BTagESD.NumThreads |
◆ parser
Initial value: 1 = argparse.ArgumentParser(prog=
"BTagConfig: An example configuration module for btagging reconstruction reading an ESD",
2 usage=
"Call with an input file, pass -n=0 to skip execution, -t 0 for serial or 1 for threaded execution.")
Definition at line 169 of file BTagESD.py.
◆ ShowControlFlow
python.BTagESD.ShowControlFlow |
◆ ShowDataDeps
python.BTagESD.ShowDataDeps |
◆ ShowDataFlow
python.BTagESD.ShowDataFlow |
◆ str
◆ str2bool
◆ type
This class provides the interface to the LCG POOL persistency software.
def BTagRedoESDCfg(flags, jet, extraContainers=[])
def OutputStreamCfg(flags, streamName, ItemList=[], MetadataItemList=[], disableEventTag=False, trigNavThinningSvc=None, takeItemsFromInput=False, extendProvenanceRecord=True, AcceptAlgs=[], HelperTools=[])
def BTagHLTaggersCfg(inputFlags, JetCollection=[])
def RunHighLevelTaggersCfg(inputFlags, jet, tracks, Associator, taggers)
def registerJetCollectionEL(flags, JetCollection)
def BTagTrackAugmenterAlgCfg(flags, TrackCollection='InDetTrackParticles', PrimaryVertexCollectionName='PrimaryVertices', prefix=None)
manages the address providers and add proxies on demand to the store
def PrepareStandAloneBTagCfg(inputFlags)
def addFolders(flags, folderStrings, detDb=None, className=None, extensible=False, tag=None, db=None, modifiers='')
def BTagJetAugmenterAlgCfg(ConfigFlags, BTagCollection, Associator, TrackCollection, doFlipTagger=False)
def registerOutputBTaggingContainers(flags, JetCollection, suffix='')
std::string print(const MuPatSegment &)
def AtlasFieldCacheCondAlgCfg(flags, **kwargs)
def FlavorTagNNCfg(flags, BTaggingCollection, TrackCollection, NNFile, FlipConfig="STANDARD", variableRemapping={})
def RenameInputContainerCfg(suffix)
def RenameHLTaggerCfg(JetCollection, Tagger, suffix)