ATLAS Offline Software
Loading...
Searching...
No Matches
python.JetReclusteringConfig.JetReclusteringBlock Class Reference
Inheritance diagram for python.JetReclusteringConfig.JetReclusteringBlock:
Collaboration diagram for python.JetReclusteringConfig.JetReclusteringBlock:

Public Member Functions

 __init__ (self)
 instanceName (self)
 makeAlgs (self, config)

Public Attributes

 containerName

Detailed Description

ConfigBlock for the jet reclustering algorithm:
run FastJet with small-R jets as input. The output
is a new container containing the reclustered jets.
The default output variables are the RC jet kinematics
as well as a vector of indices pointing to the
small-R jets that formed the RC jets.
---- to be updated with substructure variables!

Definition at line 6 of file JetReclusteringConfig.py.

Constructor & Destructor Documentation

◆ __init__()

python.JetReclusteringConfig.JetReclusteringBlock.__init__ ( self)

Definition at line 15 of file JetReclusteringConfig.py.

15 def __init__(self):
16 super().__init__()
17 self.addOption ('containerName', None, type=str,
18 noneAction='error',
19 info='name of the output reclustered jets container.',
20 meta={'role':'container'})
21 self.addOption ('jets', None, type=str,
22 noneAction='error',
23 info='the input jet collection to recluster, with a possible selection, in the format `container` or `container.selection`.',
24 meta={'role':'containerRef'})
25 self.addOption ('clusteringAlgorithm', 'AntiKt', type=str,
26 info='algorithm to use to recluster the jets: `AntiKt`, `Kt`, `CamKt`.',
27 meta={'choices':(['AntiKt','Kt','CamKt'],1)})
28 self.addOption ('reclusteredJetsRadius', 1.0, type=float,
29 info='radius parameter of the reclustering algorithm.')
30 self.addOption ('minPt', 200*GeV, type=float,
31 info=r'minimum $p_\mathrm{T}$ requirement (in MeV) on the reclustered jets, creating the selection `passed_sel`.')
32 self.addOption ('maxEta', 0., type=float,
33 info=r'maximum $\vert\eta\vert$ requirement on the reclustered jets, creating the selection `passed_sel`.')
34 self.addOption ('maxRapidity', 2.5, type=float,
35 info='maximum rapidity requirement on the reclustered jets, creating the selection `passed_sel`.')

Member Function Documentation

◆ instanceName()

python.JetReclusteringConfig.JetReclusteringBlock.instanceName ( self)
Return the instance name for this block

Definition at line 36 of file JetReclusteringConfig.py.

36 def instanceName (self) :
37 """Return the instance name for this block"""
38 return self.containerName
39

◆ makeAlgs()

python.JetReclusteringConfig.JetReclusteringBlock.makeAlgs ( self,
config )

Definition at line 40 of file JetReclusteringConfig.py.

40 def makeAlgs(self, config):
41
42 alg = config.createAlgorithm('CP::JetReclusteringAlg', 'JetReclusteringAlg')
43
44 alg.jets, alg.jetSelection = config.readNameAndSelection(self.jets)
45 alg.reclusteredJets = config.writeName(self.containerName)
46 alg.smallRjetIndices = 'smallRjetIndices_%SYS%'
47 alg.rcJetEnergy = 'e_%SYS%'
48 alg.clusteringAlgorithm = self.clusteringAlgorithm
49 alg.reclusteredJetsRadius = self.reclusteredJetsRadius
50
51 # prepare selection algorithm
52 if self.minPt > 0 or self.maxEta > 0 or self.maxRapidity > 0 :
53 selAlg = config.createAlgorithm('CP::AsgSelectionAlg', 'RCJetsMinPtAlg')
54 selAlg.selectionDecoration = 'passed_sel,as_bits'
55 config.addPrivateTool('selectionTool', 'CP::AsgPtEtaSelectionTool')
56 selAlg.selectionTool.minPt = self.minPt
57 selAlg.selectionTool.maxEta = self.maxEta
58 selAlg.selectionTool.maxRapidity = self.maxRapidity
59 selAlg.particles = config.readName(self.containerName)
60 selAlg.preselection = config.getPreselection(self.containerName, '')
61 config.addSelection(self.containerName, 'passed_sel', selAlg.selectionDecoration)
62
63 config.addOutputVar(self.containerName, 'pt', 'pt', auxType="float")
64 config.addOutputVar(self.containerName, 'eta', 'eta', auxType="float")
65 config.addOutputVar(self.containerName, 'phi', 'phi', auxType="float")
66 config.addOutputVar(self.containerName, 'm', 'm', auxType="float")
67 config.addOutputVar(self.containerName, alg.rcJetEnergy, 'e', auxType="float")
68 config.addOutputVar(self.containerName, alg.smallRjetIndices, 'small_r_jet_indices', auxType="vector_int")

Member Data Documentation

◆ containerName

python.JetReclusteringConfig.JetReclusteringBlock.containerName

Definition at line 61 of file JetReclusteringConfig.py.


The documentation for this class was generated from the following file: