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

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

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

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

736 jetInput, largeRMass = None):
737 """Add algorithms for the R=1.0 jets.
738
739 Keyword arguments
740 seq -- The sequence to add the algorithms to
741 jetCollection -- The jet container to run on.
742 jetInput -- The type of input used, read from the collection name.
743 largeRMass -- Which large-R mass definition to use. Ignored if not running on large-R jets ("Comb", "Calo", "TA")
744 """
745 config = LargeRJetAnalysisConfig()
746 config.setOptionValue ('containerName', containerName)
747 config.setOptionValue ('jetCollection', jetCollection)
748 config.setOptionValue ('jetInput', jetInput)
749 config.setOptionValue ('largeRMass', largeRMass)
750 seq.append (config)
751

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

715 jetInput, radius ):
716 """Add algorithms for the R-scan jets.
717
718 Keyword arguments
719 seq -- The sequence to add the algorithms to
720 jetCollection -- The jet container to run on.
721 jetInput -- The type of input used, read from the collection name.
722 radius -- The radius of the r-scan jets.
723 """
724
725 config = RScanJetAnalysisConfig()
726 config.setOptionValue ('containerName', containerName)
727 config.setOptionValue ('jetCollection', jetCollection)
728 config.setOptionValue ('jetInput', jetInput)
729 config.setOptionValue ('radius', radius)
730 seq.append (config)
731
732
733
734

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

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

Variable Documentation

◆ largeRMass

str python.JetAnalysisConfig.largeRMass = "Comb":

Definition at line 383 of file JetAnalysisConfig.py.