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

Constructor & Destructor Documentation

◆ __init__()

python.JetAnalysisConfig.JvtWorkingPointEventEfficiencyConfig.__init__ ( self)

Definition at line 1059 of file JetAnalysisConfig.py.

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

Member Function Documentation

◆ instanceName()

python.JetAnalysisConfig.JvtWorkingPointEventEfficiencyConfig.instanceName ( self)

Definition at line 1085 of file JetAnalysisConfig.py.

1085 def instanceName (self) :
1086 return self.containerName + '_' + self.selectionName
1087

◆ makeAlgs()

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

Definition at line 1088 of file JetAnalysisConfig.py.

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

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