ATLAS Offline Software
Functions | Variables
FindJets Namespace Reference

Functions

def CreateJets (prefiltSeq, jetR, mods="")
 
def AddJetsFilter (filtSeq, ecmEnergy, jetR, mods="")
 
def JZSlice (x, filtSeq)
 

Variables

 WriteTruthMetaData
 
 AODContainerName
 
dictionary minDict = {0:-1,1:20,2:60,3:160,4:400,5:800,6:1300,7:1800,8:2500,9:3200,10:3900,11:4600,12:5300}
 
dictionary maxDict = {0:20,1:60,2:160,3:400,4:800,5:1300,6:1800,7:2500,8:3200,9:3900,10:4600,11:5300,12:7000}
 

Function Documentation

◆ AddJetsFilter()

def FindJets.AddJetsFilter (   filtSeq,
  ecmEnergy,
  jetR,
  mods = "" 
)

Definition at line 59 of file FindJets.py.

59 def AddJetsFilter(filtSeq,ecmEnergy, jetR, mods=""):
60  include("GeneratorFilters/QCDJetFilter.py")
61 # from QCDJetFilter import AddJetFilter
62  AddJetFilter(filtSeq,ecmEnergy)
63  jetcollname = 'AntiKt{0}Truth{1}Jets'.format(int(jetR*10),mods)
64  filtSeq.QCDTruthJetFilter.TruthJetContainer = jetcollname
65 

◆ CreateJets()

def FindJets.CreateJets (   prefiltSeq,
  jetR,
  mods = "" 
)

Definition at line 18 of file FindJets.py.

18 def CreateJets(prefiltSeq, jetR, mods=""):
19  # for compatibility with the rest of GEN config, we just re-map the
20  # standard def. Best would be to change all clients in GEN to call us passing a full JetDefinition object
21  if jetR < 0.65 :
22  from JetRecConfig.StandardSmallRJets import AntiKt4TruthGEN,AntiKt4TruthGENWZ,AntiKt6TruthGEN,AntiKt6TruthGENWZ
23  jetdef = {
24  (0.4,"") : AntiKt4TruthGEN,
25  (0.4,"WZ") : AntiKt4TruthGENWZ,
26  (0.6,"") : AntiKt6TruthGEN,
27  (0.6,"WZ") : AntiKt6TruthGENWZ,
28  }[ (jetR,mods) ]
29  else :
30  from JetRecConfig.StandardLargeRJets import AntiKt10TruthGEN,AntiKt10TruthGENWZ
31  jetdef = {
32  (1.0,"") : AntiKt10TruthGEN,
33  (1.0,"WZ") : AntiKt10TruthGENWZ,
34  }[ (jetR,mods) ]
35 
36 
37  # run2-config compatibility. (run3 style would use a ComponentAccumulator).
38  from JetRecConfig.JetRecConfig import getJetAlgs, reOrderAlgs
39  # Initialize ConfigFlags for use by CA-based code below
40  from AthenaConfiguration.AllConfigFlags import initConfigFlags
41  from AthenaConfiguration.Enums import BeamType
42  flags = initConfigFlags()
43  flags.Input.isMC = True
44  flags.Beam.Type = BeamType.Collisions
45 
46  from AthenaCommon.Configurable import ConfigurableCABehavior
47  from AthenaConfiguration.ComponentAccumulator import conf2toConfigurable
48 
49  with ConfigurableCABehavior():
50  # Get the algs needed by the JetDefinition and schedule them with runII style
51  algs, jetdef_i = getJetAlgs(flags, jetdef, True)
52  algs, ca = reOrderAlgs( [a for a in algs if a is not None])
53  # ignore dangling CA instance in legacy config
54  ca.wasMerged()
55  for a in algs:
56  prefiltSeq += conf2toConfigurable(a)
57 
58 

◆ JZSlice()

def FindJets.JZSlice (   x,
  filtSeq 
)

Definition at line 66 of file FindJets.py.

66 def JZSlice(x,filtSeq):
67  from AthenaCommon.SystemOfUnits import GeV
68  filtSeq.QCDTruthJetFilter.MinPt = minDict[x]*GeV
69  filtSeq.QCDTruthJetFilter.MaxPt = maxDict[x]*GeV

Variable Documentation

◆ AODContainerName

FindJets.AODContainerName

Definition at line 4 of file FindJets.py.

◆ maxDict

dictionary FindJets.maxDict = {0:20,1:60,2:160,3:400,4:800,5:1300,6:1800,7:2500,8:3200,9:3900,10:4600,11:5300,12:7000}

Definition at line 16 of file FindJets.py.

◆ minDict

dictionary FindJets.minDict = {0:-1,1:20,2:60,3:160,4:400,5:800,6:1300,7:1800,8:2500,9:3200,10:3900,11:4600,12:5300}

Definition at line 15 of file FindJets.py.

◆ WriteTruthMetaData

FindJets.WriteTruthMetaData

Definition at line 3 of file FindJets.py.

SystemOfUnits
vtune_athena.format
format
Definition: vtune_athena.py:14
CaloCellPos2Ntuple.int
int
Definition: CaloCellPos2Ntuple.py:24
python.JetRecConfig.reOrderAlgs
def reOrderAlgs(algs)
Definition: JetRecConfig.py:796
python.ComponentAccumulator.conf2toConfigurable
def conf2toConfigurable(*args, **kwargs)
Definition: ComponentAccumulator.py:1262
python.JetRecConfig.getJetAlgs
def getJetAlgs(flags, jetdef, returnConfiguredDef=False, monTool=None)
Definition: JetRecConfig.py:216
FindJets.JZSlice
def JZSlice(x, filtSeq)
Definition: FindJets.py:66
Configurable
athena/gaudi ----------------------------------------------------------—
python.Include.include
include
Definition: Include.py:318
FindJets.CreateJets
def CreateJets(prefiltSeq, jetR, mods="")
Definition: FindJets.py:18
FindJets.AddJetsFilter
def AddJetsFilter(filtSeq, ecmEnergy, jetR, mods="")
Definition: FindJets.py:59
python.AllConfigFlags.initConfigFlags
def initConfigFlags()
Definition: AllConfigFlags.py:19
QCDJetFilter.AddJetFilter
def AddJetFilter(filtSeq, ecmEnergy)
Default truth jet filter setup The specified truth jet container must exist.
Definition: QCDJetFilter.py:4