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

Public Member Functions

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

Detailed Description

the ConfigBlock for the event fJvt working point efficiency

Definition at line 1195 of file JetAnalysisConfig.py.

Constructor & Destructor Documentation

◆ __init__()

python.JetAnalysisConfig.FJvtWorkingPointEventEfficiencyConfig.__init__ ( self)

Definition at line 1198 of file JetAnalysisConfig.py.

1198 def __init__ (self) :
1199 super (FJvtWorkingPointEventEfficiencyConfig, self).__init__ ()
1200 self.setBlockName('FJvtWorkingPointEventEfficiencyConfig')
1201 self.addDependency('FJvtWorkingPointEfficiencyConfig', required=True)
1202 self.addDependency('OverlapRemoval', required=False)
1203 self.addDependency('EventSelection', required=False)
1204 self.addDependency('EventSelectionMerger', required=False)
1205 self.addOption ('containerName', '', type=str,
1206 noneAction='error',
1207 info="the name of the input container.")
1208 self.addOption ('selectionName', '', type=str,
1209 noneAction='error',
1210 info="the name of the jet selection to define (e.g. `tight` or `loose`).")
1211 self.addOption ('fjvtWP', '', type=str,
1212 noneAction='error',
1213 info="the fJvt WP to use. Supported WPs: `Loose`, `Tight`, `Tighter`.")
1214 self.addOption ('useSuffix', True, type=bool,
1215 info="whether the working point name is to be used as suffix ."
1216 "Not to be disabled if multiple working points are scheduled.")
1217 self.addOption ('noEffSF', False, type=bool,
1218 info="disables the calculation of efficiencies and scale factors. "
1219 "Only useful to test a new WP for which scale factors are not available.",
1220 expertMode=True)
1221 self.addOption ('eventSF', True, type=bool,
1222 info="add calculation of event-level efficiency SF.")
1223

Member Function Documentation

◆ instanceName()

python.JetAnalysisConfig.FJvtWorkingPointEventEfficiencyConfig.instanceName ( self)

Definition at line 1224 of file JetAnalysisConfig.py.

1224 def instanceName (self) :
1225 return self.containerName + '_' + self.selectionName
1226

◆ makeAlgs()

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

Definition at line 1227 of file JetAnalysisConfig.py.

1227 def makeAlgs (self, config) :
1228
1229 if (not self.noEffSF and self.eventSF and
1230 config.dataType() is not DataType.Data):
1231 suffix = f"_{self.fjvtWP}" if self.useSuffix else ""
1232 alg = config.createAlgorithm( 'CP::AsgEventScaleFactorAlg', f'ForwardJvtEventScaleFactorAlg_{self.fjvtWP}' )
1233 preselection = config.getFullSelection (self.containerName, '')
1234 alg.preselection = preselection + f'&&no_fjvt{suffix}' if preselection else f'no_fjvt{suffix}'
1235 alg.scaleFactorInputDecoration = f'fjvt_effSF{suffix}_%SYS%'
1236 alg.scaleFactorOutputDecoration = f'fjvt_effSF{suffix}_%SYS%'
1237 alg.particles = config.readName (self.containerName)
1238
1239 config.addOutputVar('EventInfo', alg.scaleFactorOutputDecoration, f'weight_fjvt_effSF{suffix}')
1240
1241
1242@groupBlocks

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