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

Constructor & Destructor Documentation

◆ __init__()

python.JetAnalysisConfig.JvtWorkingPointEventEfficiencyConfig.__init__ ( self)

Definition at line 1052 of file JetAnalysisConfig.py.

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

Member Function Documentation

◆ instanceName()

python.JetAnalysisConfig.JvtWorkingPointEventEfficiencyConfig.instanceName ( self)

Definition at line 1078 of file JetAnalysisConfig.py.

1078 def instanceName (self) :
1079 return self.containerName + '_' + self.selectionName
1080

◆ makeAlgs()

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

Definition at line 1081 of file JetAnalysisConfig.py.

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

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