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

Public Member Functions

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

Public Attributes

 containerName

Detailed Description

the ConfigBlock for the Jvt working point selection

Definition at line 664 of file JetAnalysisConfig.py.

Constructor & Destructor Documentation

◆ __init__()

python.JetAnalysisConfig.JvtWorkingPointSelectionConfig.__init__ ( self)

Definition at line 667 of file JetAnalysisConfig.py.

667 def __init__ (self) :
668 super (JvtWorkingPointSelectionConfig, self).__init__ ()
669 self.setBlockName('JvtWorkingPointSelectionConfig')
670 self.addOption ('containerName', '', type=str,
671 noneAction='error',
672 info="the name of the input container.")
673 self.addOption ('selectionName', '', type=str,
674 noneAction='error',
675 info="the name of the jet selection to define (e.g. `tight` or `loose`).")
676 self.addOption ('jvtWP', '', type=str,
677 noneAction='error',
678 info="the NNJvt WP to use. Supported WPs: `FixedEffPt`.")
679

Member Function Documentation

◆ instanceName()

python.JetAnalysisConfig.JvtWorkingPointSelectionConfig.instanceName ( self)

Definition at line 680 of file JetAnalysisConfig.py.

680 def instanceName (self) :
681 return self.containerName + '_' + self.selectionName
682

◆ makeAlgs()

python.JetAnalysisConfig.JvtWorkingPointSelectionConfig.makeAlgs ( self,
config )

Definition at line 683 of file JetAnalysisConfig.py.

683 def makeAlgs (self, config) :
684
685 decorationName = f"jvt_selection_{self.jvtWP},as_char"
686 selectionName = self.selectionName
687
688 alg = config.createAlgorithm('CP::AsgSelectionAlg', f'JvtSelectionAlg_{self.jvtWP}')
689 config.addPrivateTool('selectionTool', 'CP::NNJvtSelectionTool')
690 alg.selectionTool.JetContainer = config.readName(self.containerName)
691 alg.selectionTool.JvtMomentName = "NNJvt"
692 alg.selectionTool.WorkingPoint = self.jvtWP
693 alg.selectionTool.MaxPtForJvt = 60*GeV
694 alg.selectionDecoration = decorationName
695 alg.particles = config.readName(self.containerName)
696
697 config.addSelection (self.containerName, selectionName, decorationName, preselection=False)
698
699

Member Data Documentation

◆ containerName

python.JetAnalysisConfig.JvtWorkingPointSelectionConfig.containerName

Definition at line 697 of file JetAnalysisConfig.py.


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