ATLAS Offline Software
Classes | Functions | Variables
python.JetAnalysisConfig Namespace Reference

Classes

class  LargeRJetAnalysisConfig
 
class  PreJetAnalysisConfig
 
class  RScanJetAnalysisConfig
 
class  SmallRJetAnalysisConfig
 

Functions

def _largeLCTopoConfigFile (config, self)
 
def makeJetAnalysisConfig (seq, containerName, jetCollection, runGhostMuonAssociation=None)
 
def makeSmallRJetAnalysisConfig (seq, containerName, jetCollection, jetInput, runJvtUpdate=None, runNNJvtUpdate=None, runJvtSelection=None, runFJvtSelection=None, jvtWP=None, fJvtWP=None, runJvtEfficiency=None, runFJvtEfficiency=None)
 
def makeRScanJetAnalysisConfig (seq, containerName, jetCollection, jetInput, radius)
 
def makeLargeRJetAnalysisConfig (seq, containerName, jetCollection, jetInput, largeRMass=None)
 

Variables

 largeRMass
 

Function Documentation

◆ _largeLCTopoConfigFile()

def python.JetAnalysisConfig._largeLCTopoConfigFile (   config,
  self 
)
private

Definition at line 379 of file JetAnalysisConfig.py.

379 def _largeLCTopoConfigFile(config, self):
380  is_sim = config.dataType() in {DataType.FullSim}
381  if self.largeRMass == "Comb":
382  if config.dataType() is DataType.Data:
383  return "JES_MC16recommendation_FatJet_Trimmed_JMS_comb_March2021.config"
384  if is_sim:
385  return "JES_MC16recommendation_FatJet_Trimmed_JMS_comb_17Oct2018.config"
386  elif self.largeRMass == "Calo":
387  if config.dataType() is DataType.Data:
388  return "JES_MC16recommendation_FatJet_Trimmed_JMS_comb_March2021.config"
389  if is_sim:
390  return "JES_MC16recommendation_FatJet_Trimmed_JMS_calo_12Oct2018.config "
391  elif self.largeRMass == "TA":
392  if config.dataType() is DataType.Data:
393  return "JES_MC16recommendation_FatJet_Trimmed_JMS_comb_March2021.config"
394  if is_sim:
395  return "JES_MC16recommendation_FatJet_Trimmed_JMS_TA_12Oct2018.config"
396  return None
397 
398 

◆ makeJetAnalysisConfig()

def python.JetAnalysisConfig.makeJetAnalysisConfig (   seq,
  containerName,
  jetCollection,
  runGhostMuonAssociation = None 
)
Create a jet analysis algorithm sequence
  The jet collection is interpreted and selects the correct function to call,
  makeSmallRJetAnalysisConfig, makeRScanJetAnalysisConfig or
  makeLargeRJetAnalysisConfig

  Keyword arguments
    jetCollection -- The jet container to run on.

Definition at line 627 of file JetAnalysisConfig.py.

627 def makeJetAnalysisConfig( seq, containerName, jetCollection,
628  runGhostMuonAssociation = None):
629  """Create a jet analysis algorithm sequence
630  The jet collection is interpreted and selects the correct function to call,
631  makeSmallRJetAnalysisConfig, makeRScanJetAnalysisConfig or
632  makeLargeRJetAnalysisConfig
633 
634  Keyword arguments
635  jetCollection -- The jet container to run on.
636  """
637 
638  # Remove b-tagging calibration from the container name
639  btIndex = jetCollection.find('_BTagging')
640  if btIndex != -1:
641  jetCollection = jetCollection[:btIndex]
642 
643  jetCollectionName=jetCollection
644  # needed for PHYSLITE
645  if(jetCollection=="AnalysisJets") :
646  jetCollectionName="AntiKt4EMPFlowJets"
647  if(jetCollection=="AnalysisLargeRJets") :
648  jetCollectionName="AntiKt10UFOCSSKSoftDropBeta100Zcut10Jets"
649 
650  # interpret the jet collection
651  collection_pattern = re.compile(
652  r"AntiKt(\d+)(EMTopo|EMPFlow|LCTopo|TrackCaloCluster|UFO|Track|HI)(TrimmedPtFrac5SmallR20|CSSKSoftDropBeta100Zcut10)?Jets")
653  match = collection_pattern.match(jetCollectionName)
654  if not match:
655  raise ValueError(
656  "Jet collection {0} does not match expected pattern!".format(jetCollectionName) )
657  radius = int(match.group(1) )
658  if radius not in [2, 4, 6, 10]:
659  raise ValueError("Jet collection has an unsupported radius '{0}'!".format(radius) )
660  jetInput = match.group(2)
661 
662  config = PreJetAnalysisConfig()
663  config.setOptionValue ('containerName', containerName)
664  config.setOptionValue ('jetCollection', jetCollection)
665  config.runOriginalObjectLink = (btIndex != -1)
666  config.setOptionValue ('runGhostMuonAssociation', runGhostMuonAssociation)
667  seq.append (config)
668 
669  if radius == 4:
670  makeSmallRJetAnalysisConfig(seq, containerName,
671  jetCollection, jetInput=jetInput)
672  elif radius in [2, 6]:
673  makeRScanJetAnalysisConfig(seq, containerName,
674  jetCollection, jetInput=jetInput, radius=radius)
675  else:
676  trim = match.group(3)
677  if trim == "":
678  raise ValueError("Untrimmed large-R jets are not supported!")
679  makeLargeRJetAnalysisConfig(seq, containerName,
680  jetCollection, jetInput=jetInput)
681 
682 
683 

◆ makeLargeRJetAnalysisConfig()

def python.JetAnalysisConfig.makeLargeRJetAnalysisConfig (   seq,
  containerName,
  jetCollection,
  jetInput,
  largeRMass = None 
)
Add algorithms for the R=1.0 jets.

  Keyword arguments
    seq -- The sequence to add the algorithms to
    jetCollection -- The jet container to run on.
    jetInput -- The type of input used, read from the collection name.
    largeRMass -- Which large-R mass definition to use. Ignored if not running on large-R jets ("Comb", "Calo", "TA")

Definition at line 745 of file JetAnalysisConfig.py.

745 def makeLargeRJetAnalysisConfig( seq, containerName, jetCollection,
746  jetInput, largeRMass = None):
747  """Add algorithms for the R=1.0 jets.
748 
749  Keyword arguments
750  seq -- The sequence to add the algorithms to
751  jetCollection -- The jet container to run on.
752  jetInput -- The type of input used, read from the collection name.
753  largeRMass -- Which large-R mass definition to use. Ignored if not running on large-R jets ("Comb", "Calo", "TA")
754  """
755  config = LargeRJetAnalysisConfig()
756  config.setOptionValue ('containerName', containerName)
757  config.setOptionValue ('jetCollection', jetCollection)
758  config.setOptionValue ('jetInput', jetInput)
759  config.setOptionValue ('largeRMass', largeRMass)
760  seq.append (config)
761 

◆ makeRScanJetAnalysisConfig()

def python.JetAnalysisConfig.makeRScanJetAnalysisConfig (   seq,
  containerName,
  jetCollection,
  jetInput,
  radius 
)
Add algorithms for the R-scan jets.

  Keyword arguments
    seq -- The sequence to add the algorithms to
    jetCollection -- The jet container to run on.
    jetInput -- The type of input used, read from the collection name.
    radius -- The radius of the r-scan jets.

Definition at line 724 of file JetAnalysisConfig.py.

724 def makeRScanJetAnalysisConfig( seq, containerName, jetCollection,
725  jetInput, radius ):
726  """Add algorithms for the R-scan jets.
727 
728  Keyword arguments
729  seq -- The sequence to add the algorithms to
730  jetCollection -- The jet container to run on.
731  jetInput -- The type of input used, read from the collection name.
732  radius -- The radius of the r-scan jets.
733  """
734 
735  config = RScanJetAnalysisConfig()
736  config.setOptionValue ('containerName', containerName)
737  config.setOptionValue ('jetCollection', jetCollection)
738  config.setOptionValue ('jetInput', jetInput)
739  config.setOptionValue ('radius', radius)
740  seq.append (config)
741 
742 
743 
744 

◆ makeSmallRJetAnalysisConfig()

def python.JetAnalysisConfig.makeSmallRJetAnalysisConfig (   seq,
  containerName,
  jetCollection,
  jetInput,
  runJvtUpdate = None,
  runNNJvtUpdate = None,
  runJvtSelection = None,
  runFJvtSelection = None,
  jvtWP = None,
  fJvtWP = None,
  runJvtEfficiency = None,
  runFJvtEfficiency = None 
)
Add algorithms for the R=0.4 jets.

  Keyword arguments
    seq -- The sequence to add the algorithms to
    jetCollection -- The jet container to run on.
    jetInput -- The type of input used, read from the collection name.
    runJvtUpdate -- Determines whether or not to update JVT on the jets
    runNNJvtUpdate -- Determines whether or not to update NN JVT on the jets
    runJvtSelection -- Determines whether or not to run JVT selection on the jets
    runFJvtSelection -- Determines whether or not to run forward JVT selection on the jets
    jvtWP -- Defines the NNJvt WP to apply on the jets
    fJvtWP -- Defines the fJvt WP to apply on the jets
    runJvtEfficiency -- Determines whether or not to calculate the JVT efficiency
    runFJvtEfficiency -- Determines whether or not to calculate the forward JVT efficiency

Definition at line 684 of file JetAnalysisConfig.py.

684 def makeSmallRJetAnalysisConfig( seq, containerName, jetCollection, jetInput,
685  runJvtUpdate = None, runNNJvtUpdate = None,
686  runJvtSelection = None, runFJvtSelection = None,
687  jvtWP = None, fJvtWP = None,
688  runJvtEfficiency = None, runFJvtEfficiency = None):
689  """Add algorithms for the R=0.4 jets.
690 
691  Keyword arguments
692  seq -- The sequence to add the algorithms to
693  jetCollection -- The jet container to run on.
694  jetInput -- The type of input used, read from the collection name.
695  runJvtUpdate -- Determines whether or not to update JVT on the jets
696  runNNJvtUpdate -- Determines whether or not to update NN JVT on the jets
697  runJvtSelection -- Determines whether or not to run JVT selection on the jets
698  runFJvtSelection -- Determines whether or not to run forward JVT selection on the jets
699  jvtWP -- Defines the NNJvt WP to apply on the jets
700  fJvtWP -- Defines the fJvt WP to apply on the jets
701  runJvtEfficiency -- Determines whether or not to calculate the JVT efficiency
702  runFJvtEfficiency -- Determines whether or not to calculate the forward JVT efficiency
703  """
704 
705  if jetInput not in ["EMTopo", "EMPFlow", "HI"]:
706  raise ValueError(
707  "Unsupported input type '{0}' for R=0.4 jets!".format(jetInput) )
708 
709  config = SmallRJetAnalysisConfig()
710  config.setOptionValue ('containerName', containerName)
711  config.setOptionValue ('jetCollection', jetCollection)
712  config.setOptionValue ('jetInput', jetInput)
713  config.setOptionValue ('runJvtUpdate', runJvtUpdate)
714  config.setOptionValue ('runNNJvtUpdate', runNNJvtUpdate)
715  config.setOptionValue ('runJvtSelection', runJvtSelection)
716  config.setOptionValue ('runFJvtSelection', runFJvtSelection)
717  config.setOptionValue ('jvtWP', jvtWP)
718  config.setOptionValue ('fJvtWP', fJvtWP)
719  config.setOptionValue ('runJvtEfficiency', runJvtEfficiency)
720  config.setOptionValue ('runFJvtEfficiency', runFJvtEfficiency)
721  seq.append (config)
722 
723 

Variable Documentation

◆ largeRMass

python.JetAnalysisConfig.largeRMass

Definition at line 381 of file JetAnalysisConfig.py.

python.JetAnalysisConfig._largeLCTopoConfigFile
def _largeLCTopoConfigFile(config, self)
Definition: JetAnalysisConfig.py:379
vtune_athena.format
format
Definition: vtune_athena.py:14
python.JetAnalysisConfig.makeSmallRJetAnalysisConfig
def makeSmallRJetAnalysisConfig(seq, containerName, jetCollection, jetInput, runJvtUpdate=None, runNNJvtUpdate=None, runJvtSelection=None, runFJvtSelection=None, jvtWP=None, fJvtWP=None, runJvtEfficiency=None, runFJvtEfficiency=None)
Definition: JetAnalysisConfig.py:684
python.JetAnalysisConfig.makeLargeRJetAnalysisConfig
def makeLargeRJetAnalysisConfig(seq, containerName, jetCollection, jetInput, largeRMass=None)
Definition: JetAnalysisConfig.py:745
python.CaloAddPedShiftConfig.int
int
Definition: CaloAddPedShiftConfig.py:45
python.JetAnalysisConfig.makeRScanJetAnalysisConfig
def makeRScanJetAnalysisConfig(seq, containerName, jetCollection, jetInput, radius)
Definition: JetAnalysisConfig.py:724
python.JetAnalysisConfig.makeJetAnalysisConfig
def makeJetAnalysisConfig(seq, containerName, jetCollection, runGhostMuonAssociation=None)
Definition: JetAnalysisConfig.py:627
if
if(febId1==febId2)
Definition: LArRodBlockPhysicsV0.cxx:567