ATLAS Offline Software
Public Member Functions | Public Attributes | List of all members
python.JetAnalysisConfig.RScanJetAnalysisConfig Class Reference
Inheritance diagram for python.JetAnalysisConfig.RScanJetAnalysisConfig:
Collaboration diagram for python.JetAnalysisConfig.RScanJetAnalysisConfig:

Public Member Functions

def __init__ (self, containerName='', jetCollection='', jetInput='', radius=None)
 
def makeAlgs (self, config)
 

Public Attributes

 jetCollection
 

Detailed Description

the ConfigBlock for the r-scan jet sequence

Definition at line 427 of file JetAnalysisConfig.py.

Constructor & Destructor Documentation

◆ __init__()

def python.JetAnalysisConfig.RScanJetAnalysisConfig.__init__ (   self,
  containerName = '',
  jetCollection = '',
  jetInput = '',
  radius = None 
)

Definition at line 430 of file JetAnalysisConfig.py.

430  def __init__ (self, containerName='', jetCollection='', jetInput='', radius=None) :
431  super (RScanJetAnalysisConfig, self).__init__ ()
432  self.addOption ('containerName', containerName, type=str,
433  noneAction='error',
434  info="the name of the output container after calibration.")
435  self.addOption ('jetCollection', jetCollection, type=str,
436  noneAction='error',
437  info="the jet container to run on. It is interpreted to determine "
438  "the correct config blocks to call for small- or large-R jets.")
439  # TODO: add info string
440  self.addOption ('jetInput', jetInput, type=str,
441  noneAction='error',
442  info="")
443  # TODO: add info string
444  self.addOption (radius, radius, type=int,
445  noneAction='error',
446  info="")
447  self.addOption ('recalibratePhyslite', True, type=bool,
448  info="whether to run the CP::JetCalibrationAlg on PHYSLITE "
449  "derivations. The default is True.")
450 
451 

Member Function Documentation

◆ makeAlgs()

def python.JetAnalysisConfig.RScanJetAnalysisConfig.makeAlgs (   self,
  config 
)

Definition at line 452 of file JetAnalysisConfig.py.

452  def makeAlgs (self, config) :
453 
454  log = logging.getLogger('RScanJetAnalysisConfig')
455 
456  jetCollectionName=self.jetCollection
457  if(self.jetCollection=="AnalysisJets") :
458  jetCollectionName="AntiKt4EMPFlowJets"
459  if(self.jetCollection=="AnalysisLargeRJets") :
460  jetCollectionName="AntiKt10LCTopoTrimmedPtFrac5SmallR20Jets"
461 
462  if not config.isPhyslite() or self.recalibratePhyslite:
463  if self.jetInput != "LCTopo":
464  raise ValueError(
465  "Unsupported input type '{0}' for R-scan jets!".format(self.jetInput) )
466  # Prepare the jet calibration algorithm
467  alg = config.createAlgorithm( 'CP::JetCalibrationAlg', 'JetCalibrationAlg'+self.containerName )
468  config.addPrivateTool( 'calibrationTool', 'JetCalibrationTool' )
469  alg.calibrationTool.JetCollection = jetCollectionName[:-4]
470  alg.calibrationTool.ConfigFile = \
471  "JES_MC16Recommendation_Rscan{0}LC_Feb2022_R21.config".format(self.radius)
472  if config.dataType() is DataType.Data:
473  alg.calibrationTool.CalibSequence = "JetArea_Residual_EtaJES_GSC_Insitu"
474  else:
475  alg.calibrationTool.CalibSequence = "JetArea_Residual_EtaJES_GSC_Smear"
476  alg.calibrationTool.IsData = (config.dataType() is DataType.Data)
477  alg.jets = config.readName (self.containerName)
478  # Logging would be good
479  log.warning("Uncertainties for R-Scan jets are not yet released!")
480 
481 

Member Data Documentation

◆ jetCollection

python.JetAnalysisConfig.RScanJetAnalysisConfig.jetCollection

Definition at line 457 of file JetAnalysisConfig.py.


The documentation for this class was generated from the following file:
vtune_athena.format
format
Definition: vtune_athena.py:14
python.processes.powheg.ZZ.ZZ.__init__
def __init__(self, base_directory, **kwargs)
Constructor: all process options are set here.
Definition: ZZ.py:18
if
if(febId1==febId2)
Definition: LArRodBlockPhysicsV0.cxx:567