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 955 of file JetAnalysisConfig.py.

Constructor & Destructor Documentation

◆ __init__()

python.JetAnalysisConfig.JvtWorkingPointSelectionConfig.__init__ ( self)

Definition at line 958 of file JetAnalysisConfig.py.

958 def __init__ (self) :
959 super (JvtWorkingPointSelectionConfig, self).__init__ ()
960 self.setBlockName('JvtWorkingPointSelectionConfig')
961 self.addOption ('containerName', '', type=str,
962 noneAction='error',
963 info="the name of the input container.")
964 self.addOption ('selectionName', '', type=str,
965 noneAction='error',
966 info="the name of the jet selection to define (e.g. `tight` or `loose`).")
967 self.addOption ('jvtWP', '', type=str,
968 noneAction='error',
969 info="the NNJvt WP to use. Supported WPs: `FixedEffPt`.")
970 self.addOption ('useSuffix', True, type=bool,
971 info="whether the working point name is to be used as suffix ."
972 "Not to be disabled if multiple working points are scheduled.")
973

Member Function Documentation

◆ instanceName()

python.JetAnalysisConfig.JvtWorkingPointSelectionConfig.instanceName ( self)

Definition at line 974 of file JetAnalysisConfig.py.

974 def instanceName (self) :
975 return self.containerName + '_' + self.selectionName
976

◆ makeAlgs()

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

Definition at line 977 of file JetAnalysisConfig.py.

977 def makeAlgs (self, config) :
978
979 suffix = f"_{self.jvtWP}" if self.useSuffix else ""
980 decorationName = f"jvt_selection{suffix},as_char"
981 selectionName = self.selectionName
982
983 alg = config.createAlgorithm('CP::AsgSelectionAlg', f'JvtSelectionAlg_{self.jvtWP}')
984 config.addPrivateTool('selectionTool', 'CP::NNJvtSelectionTool')
985 alg.selectionTool.JetContainer = config.readName(self.containerName)
986 alg.selectionTool.JvtMomentName = "NNJvt"
987 alg.selectionTool.WorkingPoint = self.jvtWP
988 alg.selectionTool.MaxPtForJvt = 60*GeV
989 alg.selectionDecoration = decorationName
990 alg.particles = config.readName(self.containerName)
991
992 config.addSelection (self.containerName, selectionName, decorationName, preselection=False)
993
994

Member Data Documentation

◆ containerName

python.JetAnalysisConfig.JvtWorkingPointSelectionConfig.containerName

Definition at line 992 of file JetAnalysisConfig.py.


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