ATLAS Offline Software
Functions | Variables
TCCAccumulator Namespace Reference

Functions

def MyAlgConfigNeutral (inputFlags, **kwargs)
 
def MyAlgConfigCharged (inputFlags, **kwargs)
 
def LinkerAlgConfig (inputFlags, **kwargs)
 
def TauLinkerConfig (inputFlags, **kwargs)
 

Variables

 cfgFlags = initConfigFlags()
 
 isMC
 
 Format
 
 Files
 
 AODFileName
 
 MaxEvents
 
 doWriteAOD
 
 ProductionStep
 
 cfg = MainServicesCfg(cfgFlags)
 
list inputList = ["xAOD::TrackParticleContainer#InDetTrackParticles", "xAOD::TrackParticleAuxContainer#InDetTrackParticlesAux."]
 

Function Documentation

◆ LinkerAlgConfig()

def TCCAccumulator.LinkerAlgConfig (   inputFlags,
**  kwargs 
)

Definition at line 55 of file TCCAccumulator.py.

55 def LinkerAlgConfig(inputFlags,**kwargs):
57  StoreGateSvc=CompFactory.StoreGateSvc
58  CA.addService(StoreGateSvc("DetectorStore"))
59 
60  from eflowRec.PFCfg import getEGamFlowElementAssocAlgorithm
61  from eflowRec.PFCfg import getMuonFlowElementAssocAlgorithm
62 
63  CA.addEventAlgo(getEGamFlowElementAssocAlgorithm(inputFlags,AODTest=False,doTCC=True))
64  CA.addEventAlgo(getMuonFlowElementAssocAlgorithm(inputFlags,LinkNeutralFEClusters=False,useMuonTopoClusters=False,AODTest=False,doTCC=True))
65  CA.printConfig()
66  #print("IO")
67  # iolist=result.getIO()
68  # for param in iolist:
69  # key=param["key"]
70  # prop=param["prop"]
71  # print(key,prop)
72 
73  return CA
74 
75 

◆ MyAlgConfigCharged()

def TCCAccumulator.MyAlgConfigCharged (   inputFlags,
**  kwargs 
)

Definition at line 33 of file TCCAccumulator.py.

33 def MyAlgConfigCharged(inputFlags,**kwargs,):
34  # this is based on the PFRun3Config, so parts of it are gonna be used as is
35  result=ComponentAccumulator()
36 
37  StoreGateSvc=CompFactory.StoreGateSvc
38 
39  result.addService(StoreGateSvc("DetectorStore"))
40 
41  #need to setup the track to vertex association tool (TTVA).
42  # seems you can do this from the AOD
43  # from TrackVertexAssociationTool.TTVAToolConfig import usedInFitDecoratorCfg
44  # result.addEventAlgo(usedInFitDecoratorCfg(cfgFlags, "TTVA"))
45 
46 
47  from TrackCaloClusterRecTools.TrackCaloClusterConfig import runTCCReconstruction
48  TCCReco=runTCCReconstruction(inputFlags, outputTCCName="TrackCaloClusters",doNeutral=False,doCharged=True,doCombined=False)
49  result.merge(TCCReco)
50 
51  StoreGateSvc.Dump = True
52  return result
53 
54 

◆ MyAlgConfigNeutral()

def TCCAccumulator.MyAlgConfigNeutral (   inputFlags,
**  kwargs 
)

Definition at line 9 of file TCCAccumulator.py.

9 def MyAlgConfigNeutral(inputFlags,**kwargs,):
10  # this is based on the PFRun3Config, so parts of it are gonna be used as is
11  result=ComponentAccumulator()
12 
13  StoreGateSvc=CompFactory.StoreGateSvc
14 
15  result.addService(StoreGateSvc("DetectorStore"))
16 
17  #need to setup the track to vertex association tool (TTVA).
18  # seems you can do this from the AOD
19  # from TrackVertexAssociationTool.TTVAToolConfig import usedInFitDecoratorCfg
20  # result.addEventAlgo(usedInFitDecoratorCfg(cfgFlags, "TTVA"))
21 
22 
23  from TrackCaloClusterRecTools.TrackCaloClusterConfig import runTCCReconstruction
24  TCCReco=runTCCReconstruction(inputFlags, outputTCCName="TrackCaloClusters",doNeutral=True,doCharged=False,doCombined=False)
25  result.merge(TCCReco)
26 
27  StoreGateSvc.Dump = True
28  return result
29 
30 
31 
32 

◆ TauLinkerConfig()

def TCCAccumulator.TauLinkerConfig (   inputFlags,
**  kwargs 
)

Definition at line 76 of file TCCAccumulator.py.

76 def TauLinkerConfig(inputFlags, **kwargs):
77  #separate linker, can merge to main one for no loss of generality
78  TauLinkerCA=ComponentAccumulator()
79  # add Storegate
80  StoreGateSvc=CompFactory.StoreGateSvc
81  TauLinkerCA.addService(StoreGateSvc("DetectorStore"))
82 
83  from eflowRec.PFCfg import getTauFlowElementAssocAlgorithm
84  TauLinkerCA.addEventAlgo(getTauFlowElementAssocAlgorithm(inputFlags,doTCC=True))
85  return TauLinkerCA
86 
87 
88 

Variable Documentation

◆ AODFileName

TCCAccumulator.AODFileName

Definition at line 97 of file TCCAccumulator.py.

◆ cfg

TCCAccumulator.cfg = MainServicesCfg(cfgFlags)

Definition at line 106 of file TCCAccumulator.py.

◆ cfgFlags

TCCAccumulator.cfgFlags = initConfigFlags()

Definition at line 91 of file TCCAccumulator.py.

◆ doWriteAOD

TCCAccumulator.doWriteAOD

Definition at line 99 of file TCCAccumulator.py.

◆ Files

TCCAccumulator.Files

Definition at line 96 of file TCCAccumulator.py.

◆ Format

TCCAccumulator.Format

Definition at line 93 of file TCCAccumulator.py.

◆ inputList

list TCCAccumulator.inputList = ["xAOD::TrackParticleContainer#InDetTrackParticles", "xAOD::TrackParticleAuxContainer#InDetTrackParticlesAux."]

Definition at line 109 of file TCCAccumulator.py.

◆ isMC

TCCAccumulator.isMC

Definition at line 92 of file TCCAccumulator.py.

◆ MaxEvents

TCCAccumulator.MaxEvents

Definition at line 98 of file TCCAccumulator.py.

◆ ProductionStep

TCCAccumulator.ProductionStep

Definition at line 100 of file TCCAccumulator.py.

python.JetAnalysisCommon.ComponentAccumulator
ComponentAccumulator
Definition: JetAnalysisCommon.py:302
TCCAccumulator.MyAlgConfigNeutral
def MyAlgConfigNeutral(inputFlags, **kwargs)
Definition: TCCAccumulator.py:9
TCCAccumulator.MyAlgConfigCharged
def MyAlgConfigCharged(inputFlags, **kwargs)
Definition: TCCAccumulator.py:33
TCCAccumulator.LinkerAlgConfig
def LinkerAlgConfig(inputFlags, **kwargs)
Definition: TCCAccumulator.py:55
StoreGateSvc
The Athena Transient Store API.
Definition: StoreGateSvc.h:128
PFCfg.getEGamFlowElementAssocAlgorithm
def getEGamFlowElementAssocAlgorithm(inputFlags, algName="", **kwargs)
Definition: PFCfg.py:218
PFCfg.getMuonFlowElementAssocAlgorithm
def getMuonFlowElementAssocAlgorithm(inputFlags, algName="", **kwargs)
Definition: PFCfg.py:299
PFCfg.getTauFlowElementAssocAlgorithm
def getTauFlowElementAssocAlgorithm(inputFlags, algName="", **kwargs)
Definition: PFCfg.py:397
TCCAccumulator.TauLinkerConfig
def TauLinkerConfig(inputFlags, **kwargs)
Definition: TCCAccumulator.py:76
TrackCaloClusterConfig.runTCCReconstruction
def runTCCReconstruction(flags, caloClusterName="CaloCalTopoClusters", detectorEtaName="default", trackParticleName="InDetTrackParticles", assocPostfix="TCC", doCombined=False, doCharged=False, doNeutral=True, outputTCCName="TrackCaloClusters")
Definition: TrackCaloClusterConfig.py:80