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

Constructor & Destructor Documentation

◆ __init__()

python.JetAnalysisConfig.FJvtWorkingPointEventEfficiencyConfig.__init__ ( self)

Definition at line 1204 of file JetAnalysisConfig.py.

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

Member Function Documentation

◆ instanceName()

python.JetAnalysisConfig.FJvtWorkingPointEventEfficiencyConfig.instanceName ( self)

Definition at line 1230 of file JetAnalysisConfig.py.

1230 def instanceName (self) :
1231 return self.containerName + '_' + self.selectionName
1232

◆ makeAlgs()

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

Definition at line 1233 of file JetAnalysisConfig.py.

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

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