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

Public Member Functions

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

Detailed Description

the ConfigBlock for the event Jvt working point efficiency

Definition at line 1062 of file JetAnalysisConfig.py.

Constructor & Destructor Documentation

◆ __init__()

python.JetAnalysisConfig.JvtWorkingPointEventEfficiencyConfig.__init__ ( self)

Definition at line 1065 of file JetAnalysisConfig.py.

1065 def __init__ (self) :
1066 super (JvtWorkingPointEventEfficiencyConfig, self).__init__ ()
1067 self.setBlockName('JvtWorkingPointEventEfficiencyConfig')
1068 self.addDependency('JvtWorkingPointEfficiencyConfig', required=True)
1069 self.addDependency('OverlapRemoval', required=False)
1070 self.addDependency('EventSelection', required=False)
1071 self.addDependency('EventSelectionMerger', required=False)
1072 self.addOption ('containerName', '', type=str,
1073 noneAction='error',
1074 info="the name of the input container.")
1075 self.addOption ('selectionName', '', type=str,
1076 noneAction='error',
1077 info="the name of the jet selection to define (e.g. `tight` or `loose`).")
1078 self.addOption ('jvtWP', '', type=str,
1079 noneAction='error',
1080 info="the NNJvt WP to use. Supported WPs: `FixedEffPt`.")
1081 self.addOption ('useSuffix', True, type=bool,
1082 info="whether the working point name is to be used as suffix ."
1083 "Not to be disabled if multiple working points are scheduled.")
1084 self.addOption ('noEffSF', False, type=bool,
1085 info="disables the calculation of efficiencies and scale factors. "
1086 "Only useful to test a new WP for which scale factors are not available.",
1087 expertMode=True)
1088 self.addOption ('eventSF', True, type=bool,
1089 info="add calculation of event-level efficiency SF.")
1090

Member Function Documentation

◆ instanceName()

python.JetAnalysisConfig.JvtWorkingPointEventEfficiencyConfig.instanceName ( self)

Definition at line 1091 of file JetAnalysisConfig.py.

1091 def instanceName (self) :
1092 return self.containerName + '_' + self.selectionName
1093

◆ makeAlgs()

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

Definition at line 1094 of file JetAnalysisConfig.py.

1094 def makeAlgs (self, config) :
1095
1096 if (not self.noEffSF and self.eventSF and
1097 config.dataType() is not DataType.Data):
1098 suffix = f"_{self.jvtWP}" if self.useSuffix else ""
1099 alg = config.createAlgorithm( 'CP::AsgEventScaleFactorAlg', f'JvtEventScaleFactorAlg_{self.jvtWP}' )
1100 preselection = config.getFullSelection (self.containerName, '')
1101 alg.preselection = preselection + f'&&no_jvt{suffix}' if preselection else f'no_jvt{suffix}'
1102 alg.scaleFactorInputDecoration = f'jvt_effSF{suffix}_%SYS%'
1103 alg.scaleFactorOutputDecoration = f'jvt_effSF{suffix}_%SYS%'
1104 alg.particles = config.readName (self.containerName)
1105
1106 config.addOutputVar('EventInfo', alg.scaleFactorOutputDecoration, f'weight_jvt_effSF{suffix}')
1107
1108

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