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

Constructor & Destructor Documentation

◆ __init__()

python.JetAnalysisConfig.FJvtWorkingPointEventEfficiencyConfig.__init__ ( self)

Definition at line 1191 of file JetAnalysisConfig.py.

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

Member Function Documentation

◆ instanceName()

python.JetAnalysisConfig.FJvtWorkingPointEventEfficiencyConfig.instanceName ( self)

Definition at line 1217 of file JetAnalysisConfig.py.

1217 def instanceName (self) :
1218 return self.containerName + '_' + self.selectionName
1219

◆ makeAlgs()

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

Definition at line 1220 of file JetAnalysisConfig.py.

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

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