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

Constructor & Destructor Documentation

◆ __init__()

python.JetAnalysisConfig.JvtWorkingPointSelectionConfig.__init__ ( self)

Definition at line 965 of file JetAnalysisConfig.py.

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

Member Function Documentation

◆ instanceName()

python.JetAnalysisConfig.JvtWorkingPointSelectionConfig.instanceName ( self)

Definition at line 981 of file JetAnalysisConfig.py.

981 def instanceName (self) :
982 return self.containerName + '_' + self.selectionName
983

◆ makeAlgs()

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

Definition at line 984 of file JetAnalysisConfig.py.

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

Member Data Documentation

◆ containerName

python.JetAnalysisConfig.JvtWorkingPointSelectionConfig.containerName

Definition at line 999 of file JetAnalysisConfig.py.


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