ATLAS Offline Software
Functions | Variables
python.TruthMuonD3PDObject Namespace Reference

Functions

def _truthMuonAlgHook (c, flags, acc, *args, TruthContainer='TruthParticles', sgkey=None, prefix=None, **kw)
 
def _truthClassifierHook (c, flags, acc, *args, **kw)
 

Variables

 D3PD = CompFactory.D3PD
 
 TruthMuonD3PDObject
 
 truthMuon = \
 

Function Documentation

◆ _truthClassifierHook()

def python.TruthMuonD3PDObject._truthClassifierHook (   c,
  flags,
  acc,
args,
**  kw 
)
private

Definition at line 55 of file TruthMuonD3PDObject.py.

55 def _truthClassifierHook (c, flags, acc, *args, **kw):
56  from TruthD3PDMaker.MCTruthClassifierConfig \
57  import D3PDMCTruthClassifierCfg
58  acc.merge (D3PDMCTruthClassifierCfg (flags))
59  c.Classifier = acc.getPublicTool ('D3PDMCTruthClassifier')
60  return
61 truthMuon.defineHook (_truthClassifierHook)
62 
63 TruthMuonD3PDObject.defineBlock(99, "TruthHits",
65 

◆ _truthMuonAlgHook()

def python.TruthMuonD3PDObject._truthMuonAlgHook (   c,
  flags,
  acc,
args,
  TruthContainer = 'TruthParticles',
  sgkey = None,
  prefix = None,
**  kw 
)
private

Definition at line 19 of file TruthMuonD3PDObject.py.

19 def _truthMuonAlgHook (c, flags, acc, *args,
20  TruthContainer = 'TruthParticles',
21  sgkey = None,
22  prefix = None,
23  **kw):
24  algname = prefix + 'TruthMuonsToSG'
25 
26  from TruthD3PDMaker.MCTruthClassifierConfig \
27  import D3PDMCTruthClassifierCfg
28  acc.merge (D3PDMCTruthClassifierCfg (flags))
29 
30  acc.addEventAlgo (D3PD.TruthMuonsToSG \
31  (algname,
32  TruthMuonContainer = sgkey,
33  TruthContainer = TruthContainer,
34  Classifier = acc.getPublicTool ('D3PDMCTruthClassifier')))
35  return
36 TruthMuonD3PDObject.defineHook (_truthMuonAlgHook)
37 
38 
39 #-----------------------------------------------------------------------------
40 # Blocks
41 #-----------------------------------------------------------------------------
42 TruthMuonD3PDObject.defineBlock (0, 'Kinematics',
44  WriteEt = False,
45  WritePt = True,
46  WriteEtaPhi = True )
47 TruthMuonD3PDObject.defineBlock (0, 'Info',
48  # TruthD3PDMaker
50  PDGIDVariable = 'PDGID')

Variable Documentation

◆ D3PD

python.TruthMuonD3PDObject.D3PD = CompFactory.D3PD

Definition at line 12 of file TruthMuonD3PDObject.py.

◆ truthMuon

python.TruthMuonD3PDObject.truthMuon = \

Definition at line 51 of file TruthMuonD3PDObject.py.

◆ TruthMuonD3PDObject

python.TruthMuonD3PDObject.TruthMuonD3PDObject
Initial value:
1 = make_SGDataVector_D3PDObject ('DataVector<xAOD::TruthParticle_v1>',
2  'D3PDTruthMuons',
3  'muonTruth_',
4  'TruthMuonD3PDObject')

Definition at line 15 of file TruthMuonD3PDObject.py.

D3PD::TruthParticleFillerTool
Definition: TruthParticleFillerTool.h:27
python.TruthMuonD3PDObject._truthClassifierHook
def _truthClassifierHook(c, flags, acc, *args, **kw)
Definition: TruthMuonD3PDObject.py:55
D3PD::MuonTruthHitsFillerTool
Fill truth hit information for muons.
Definition: MuonTruthHitsFillerTool.h:32
D3PD::TruthMuonsToSG
Definition: TruthMuonsToSG.h:25
D3PD::FourMomFillerTool
Block filler tool for a four-momentum.
Definition: FourMomFillerTool.h:56
python.TruthMuonD3PDObject._truthMuonAlgHook
def _truthMuonAlgHook(c, flags, acc, *args, TruthContainer='TruthParticles', sgkey=None, prefix=None, **kw)
Definition: TruthMuonD3PDObject.py:19