Loading [MathJax]/extensions/tex2jax.js
ATLAS Offline Software
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
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, runFJvtUpdate=None, runJvtSelection=None, runFJvtSelection=None, jvtWP=None, fJvtWP=None, runJvtEfficiency=None, runFJvtEfficiency=None, systematicsModelJES=None, systematicsModelJER=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 520 of file JetAnalysisConfig.py.

520 def _largeLCTopoConfigFile(config, self):
521  is_sim = config.dataType() in {DataType.FullSim}
522  if self.largeRMass == "Comb":
523  if config.dataType() is DataType.Data:
524  return "JES_MC16recommendation_FatJet_Trimmed_JMS_comb_March2021.config"
525  if is_sim:
526  return "JES_MC16recommendation_FatJet_Trimmed_JMS_comb_17Oct2018.config"
527  elif self.largeRMass == "Calo":
528  if config.dataType() is DataType.Data:
529  return "JES_MC16recommendation_FatJet_Trimmed_JMS_comb_March2021.config"
530  if is_sim:
531  return "JES_MC16recommendation_FatJet_Trimmed_JMS_calo_12Oct2018.config "
532  elif self.largeRMass == "TA":
533  if config.dataType() is DataType.Data:
534  return "JES_MC16recommendation_FatJet_Trimmed_JMS_comb_March2021.config"
535  if is_sim:
536  return "JES_MC16recommendation_FatJet_Trimmed_JMS_TA_12Oct2018.config"
537  return None
538 
539 

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

880 def makeJetAnalysisConfig( seq, containerName, jetCollection,
881  runGhostMuonAssociation = None):
882  """Create a jet analysis algorithm sequence
883  The jet collection is interpreted and selects the correct function to call,
884  makeSmallRJetAnalysisConfig, makeRScanJetAnalysisConfig or
885  makeLargeRJetAnalysisConfig
886 
887  Keyword arguments
888  jetCollection -- The jet container to run on.
889  """
890 
891  # Remove b-tagging calibration from the container name
892  btIndex = jetCollection.find('_BTagging')
893  if btIndex != -1:
894  jetCollection = jetCollection[:btIndex]
895 
896  jetCollectionName=jetCollection
897  # needed for PHYSLITE
898  if(jetCollection=="AnalysisJets") :
899  jetCollectionName="AntiKt4EMPFlowJets"
900  if(jetCollection=="AnalysisLargeRJets") :
901  jetCollectionName="AntiKt10UFOCSSKSoftDropBeta100Zcut10Jets"
902 
903  # interpret the jet collection
904  collection_pattern = re.compile(
905  r"AntiKt(\d+)(EMTopo|EMPFlow|LCTopo|TrackCaloCluster|UFO|Track|HI)(TrimmedPtFrac5SmallR20|CSSKSoftDropBeta100Zcut10)?Jets")
906  match = collection_pattern.match(jetCollectionName)
907  if not match:
908  raise ValueError(
909  "Jet collection {0} does not match expected pattern!".format(jetCollectionName) )
910  radius = int(match.group(1) )
911  if radius not in [2, 4, 6, 10]:
912  raise ValueError("Jet collection has an unsupported radius '{0}'!".format(radius) )
913  jetInput = match.group(2)
914 
915  if jetCollectionName == 'AntiKtVR30Rmax4Rmin02PV0TrackJets' :
916  # don't to anything on track jets
917  config = PreJetAnalysisConfig (containerName, jetCollection)
918  config.setOptionValue ('runOriginalObjectLink', False)
919  config.setOptionValue ('runGhostMuonAssociation', False)
920  seq.append (config)
921  return
922 
923  config = PreJetAnalysisConfig (containerName, jetCollection)
924  config.runOriginalObjectLink = (btIndex != -1)
925  config.setOptionValue ('runGhostMuonAssociation', runGhostMuonAssociation)
926  seq.append (config)
927 
928  if radius == 4:
929  makeSmallRJetAnalysisConfig(seq, containerName,
930  jetCollection, jetInput=jetInput)
931  elif radius in [2, 6]:
932  makeRScanJetAnalysisConfig(seq, containerName,
933  jetCollection, jetInput=jetInput, radius=radius)
934  else:
935  trim = match.group(3)
936  if trim == "":
937  raise ValueError("Untrimmed large-R jets are not supported!")
938  makeLargeRJetAnalysisConfig(seq, containerName,
939  jetCollection, jetInput=jetInput)
940 
941 
942 

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

1004 def makeLargeRJetAnalysisConfig( seq, containerName, jetCollection,
1005  jetInput, largeRMass = None):
1006  """Add algorithms for the R=1.0 jets.
1007 
1008  Keyword arguments
1009  seq -- The sequence to add the algorithms to
1010  jetCollection -- The jet container to run on.
1011  jetInput -- The type of input used, read from the collection name.
1012  largeRMass -- Which large-R mass definition to use. Ignored if not running on large-R jets ("Comb", "Calo", "TA")
1013  """
1014  config = LargeRJetAnalysisConfig (containerName, jetCollection, jetInput)
1015  config.setOptionValue ('largeRMass', largeRMass)
1016  seq.append (config)
1017 

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

987 def makeRScanJetAnalysisConfig( seq, containerName, jetCollection,
988  jetInput, radius ):
989  """Add algorithms for the R-scan jets.
990 
991  Keyword arguments
992  seq -- The sequence to add the algorithms to
993  jetCollection -- The jet container to run on.
994  jetInput -- The type of input used, read from the collection name.
995  radius -- The radius of the r-scan jets.
996  """
997 
998  config = SmallRJetAnalysisConfig (containerName, jetCollection, jetInput, radius)
999  seq.append (config)
1000 
1001 
1002 
1003 

◆ makeSmallRJetAnalysisConfig()

def python.JetAnalysisConfig.makeSmallRJetAnalysisConfig (   seq,
  containerName,
  jetCollection,
  jetInput,
  runJvtUpdate = None,
  runNNJvtUpdate = None,
  runFJvtUpdate = None,
  runJvtSelection = None,
  runFJvtSelection = None,
  jvtWP = None,
  fJvtWP = None,
  runJvtEfficiency = None,
  runFJvtEfficiency = None,
  systematicsModelJES = None,
  systematicsModelJER = 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
    runFJvtUpdate -- Determines whether or not to update forward 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
    systematicsModelJES -- Which NP systematicsModelJES scheme should be used (All, Global, Category, Scenario)
    systematicsModelJER -- Which variant of the systematicsModelJES should be used (All, Full, Simple). Note that not all combinations of systematicsModelJES and systematicsModelJER are valid!

Definition at line 943 of file JetAnalysisConfig.py.

943 def makeSmallRJetAnalysisConfig( seq, containerName, jetCollection, jetInput,
944  runJvtUpdate = None, runNNJvtUpdate = None, runFJvtUpdate = None,
945  runJvtSelection = None, runFJvtSelection = None,
946  jvtWP = None, fJvtWP = None,
947  runJvtEfficiency = None, runFJvtEfficiency = None,
948  systematicsModelJES = None, systematicsModelJER = None):
949  """Add algorithms for the R=0.4 jets.
950 
951  Keyword arguments
952  seq -- The sequence to add the algorithms to
953  jetCollection -- The jet container to run on.
954  jetInput -- The type of input used, read from the collection name.
955  runJvtUpdate -- Determines whether or not to update JVT on the jets
956  runNNJvtUpdate -- Determines whether or not to update NN JVT on the jets
957  runFJvtUpdate -- Determines whether or not to update forward JVT on the jets
958  runJvtSelection -- Determines whether or not to run JVT selection on the jets
959  runFJvtSelection -- Determines whether or not to run forward JVT selection on the jets
960  jvtWP -- Defines the NNJvt WP to apply on the jets
961  fJvtWP -- Defines the fJvt WP to apply on the jets
962  runJvtEfficiency -- Determines whether or not to calculate the JVT efficiency
963  runFJvtEfficiency -- Determines whether or not to calculate the forward JVT efficiency
964  systematicsModelJES -- Which NP systematicsModelJES scheme should be used (All, Global, Category, Scenario)
965  systematicsModelJER -- Which variant of the systematicsModelJES should be used (All, Full, Simple). Note that not all combinations of systematicsModelJES and systematicsModelJER are valid!
966  """
967 
968  if jetInput not in ["EMTopo", "EMPFlow", "HI"]:
969  raise ValueError(
970  "Unsupported input type '{0}' for R=0.4 jets!".format(jetInput) )
971 
972  config = SmallRJetAnalysisConfig (containerName, jetCollection, jetInput)
973  config.setOptionValue ('runJvtUpdate', runJvtUpdate)
974  config.setOptionValue ('runNNJvtUpdate', runNNJvtUpdate)
975  config.setOptionValue ('runFJvtUpdate', runFJvtUpdate)
976  config.setOptionValue ('runJvtSelection', runJvtSelection)
977  config.setOptionValue ('runFJvtSelection', runFJvtSelection)
978  config.setOptionValue ('jvtWP', jvtWP)
979  config.setOptionValue ('fJvtWP', fJvtWP)
980  config.setOptionValue ('runJvtEfficiency', runJvtEfficiency)
981  config.setOptionValue ('runFJvtEfficiency', runFJvtEfficiency)
982  config.setOptionValue ('systematicsModelJES', systematicsModelJES)
983  config.setOptionValue ('systematicsModelJER', systematicsModelJER)
984  seq.append (config)
985 
986 

Variable Documentation

◆ largeRMass

python.JetAnalysisConfig.largeRMass

Definition at line 522 of file JetAnalysisConfig.py.

python.JetAnalysisConfig._largeLCTopoConfigFile
def _largeLCTopoConfigFile(config, self)
Definition: JetAnalysisConfig.py:520
vtune_athena.format
format
Definition: vtune_athena.py:14
python.JetAnalysisConfig.makeLargeRJetAnalysisConfig
def makeLargeRJetAnalysisConfig(seq, containerName, jetCollection, jetInput, largeRMass=None)
Definition: JetAnalysisConfig.py:1004
python.JetAnalysisConfig.makeSmallRJetAnalysisConfig
def makeSmallRJetAnalysisConfig(seq, containerName, jetCollection, jetInput, runJvtUpdate=None, runNNJvtUpdate=None, runFJvtUpdate=None, runJvtSelection=None, runFJvtSelection=None, jvtWP=None, fJvtWP=None, runJvtEfficiency=None, runFJvtEfficiency=None, systematicsModelJES=None, systematicsModelJER=None)
Definition: JetAnalysisConfig.py:943
python.CaloAddPedShiftConfig.int
int
Definition: CaloAddPedShiftConfig.py:45
python.JetAnalysisConfig.makeRScanJetAnalysisConfig
def makeRScanJetAnalysisConfig(seq, containerName, jetCollection, jetInput, radius)
Definition: JetAnalysisConfig.py:987
python.JetAnalysisConfig.makeJetAnalysisConfig
def makeJetAnalysisConfig(seq, containerName, jetCollection, runGhostMuonAssociation=None)
Definition: JetAnalysisConfig.py:880
if
if(febId1==febId2)
Definition: LArRodBlockPhysicsV0.cxx:567