ATLAS Offline Software
Loading...
Searching...
No Matches
python.JetAnalysisConfig Namespace Reference

Classes

class  LargeRJetAnalysisConfig
class  PreJetAnalysisConfig
class  RScanJetAnalysisConfig
class  SmallRJetAnalysisConfig

Functions

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

Variables

str largeRMass = "Comb":

Function Documentation

◆ _largeLCTopoConfigFile()

python.JetAnalysisConfig._largeLCTopoConfigFile ( config,
self )
protected

Definition at line 379 of file JetAnalysisConfig.py.

379def _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()

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

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

◆ makeLargeRJetAnalysisConfig()

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

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

◆ makeRScanJetAnalysisConfig()

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

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

◆ makeSmallRJetAnalysisConfig()

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

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

Variable Documentation

◆ largeRMass

str python.JetAnalysisConfig.largeRMass = "Comb":

Definition at line 381 of file JetAnalysisConfig.py.