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

Classes

class  LargeRJetAnalysisConfig
class  PreJetAnalysisConfig
class  RScanJetAnalysisConfig
class  SmallRJetAnalysisConfig

Functions

 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)

Function Documentation

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

601 runGhostMuonAssociation = None):
602 """Create a jet analysis algorithm sequence
603 The jet collection is interpreted and selects the correct function to call,
604 makeSmallRJetAnalysisConfig, makeRScanJetAnalysisConfig or
605 makeLargeRJetAnalysisConfig
606
607 Keyword arguments
608 jetCollection -- The jet container to run on.
609 """
610
611 # Remove b-tagging calibration from the container name
612 btIndex = jetCollection.find('_BTagging')
613 if btIndex != -1:
614 jetCollection = jetCollection[:btIndex]
615
616 jetCollectionName=jetCollection
617 # needed for PHYSLITE
618 if(jetCollection=="AnalysisJets") :
619 jetCollectionName="AntiKt4EMPFlowJets"
620 if(jetCollection=="AnalysisLargeRJets") :
621 jetCollectionName="AntiKt10UFOCSSKSoftDropBeta100Zcut10Jets"
622
623 # interpret the jet collection
624 collection_pattern = re.compile(
625 r"AntiKt(\d+)(EMTopo|EMPFlow|LCTopo|TrackCaloCluster|UFO|Track|HI)(TrimmedPtFrac5SmallR20|CSSKSoftDropBeta100Zcut10)?Jets")
626 match = collection_pattern.match(jetCollectionName)
627 if not match:
628 raise ValueError(
629 "Jet collection {0} does not match expected pattern!".format(jetCollectionName) )
630 radius = int(match.group(1) )
631 if radius not in [2, 4, 6, 10]:
632 raise ValueError("Jet collection has an unsupported radius '{0}'!".format(radius) )
633 jetInput = match.group(2)
634
635 config = PreJetAnalysisConfig()
636 config.setOptionValue ('containerName', containerName)
637 config.setOptionValue ('jetCollection', jetCollection)
638 config.runOriginalObjectLink = (btIndex != -1)
639 config.setOptionValue ('runGhostMuonAssociation', runGhostMuonAssociation)
640 seq.append (config)
641
642 if radius == 4:
643 makeSmallRJetAnalysisConfig(seq, containerName,
644 jetCollection, jetInput=jetInput)
645 elif radius in [2, 6]:
646 makeRScanJetAnalysisConfig(seq, containerName,
647 jetCollection, jetInput=jetInput, radius=radius)
648 else:
649 trim = match.group(3)
650 if trim == "":
651 raise ValueError("Untrimmed large-R jets are not supported!")
652 makeLargeRJetAnalysisConfig(seq, containerName,
653 jetCollection, jetInput=jetInput)
654
655
656

◆ makeLargeRJetAnalysisConfig()

python.JetAnalysisConfig.makeLargeRJetAnalysisConfig ( seq,
containerName,
jetCollection,
jetInput )
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.

Definition at line 718 of file JetAnalysisConfig.py.

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

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

698 jetInput, radius ):
699 """Add algorithms for the R-scan jets.
700
701 Keyword arguments
702 seq -- The sequence to add the algorithms to
703 jetCollection -- The jet container to run on.
704 jetInput -- The type of input used, read from the collection name.
705 radius -- The radius of the r-scan jets.
706 """
707
708 config = RScanJetAnalysisConfig()
709 config.setOptionValue ('containerName', containerName)
710 config.setOptionValue ('jetCollection', jetCollection)
711 config.setOptionValue ('jetInput', jetInput)
712 config.setOptionValue ('radius', radius)
713 seq.append (config)
714
715
716
717

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

661 runJvtEfficiency = None, runFJvtEfficiency = None):
662 """Add algorithms for the R=0.4 jets.
663
664 Keyword arguments
665 seq -- The sequence to add the algorithms to
666 jetCollection -- The jet container to run on.
667 jetInput -- The type of input used, read from the collection name.
668 runJvtUpdate -- Determines whether or not to update JVT on the jets
669 runNNJvtUpdate -- Determines whether or not to update NN JVT on the jets
670 runJvtSelection -- Determines whether or not to run JVT selection on the jets
671 runFJvtSelection -- Determines whether or not to run forward JVT selection on the jets
672 jvtWP -- Defines the NNJvt WP to apply on the jets
673 fJvtWP -- Defines the fJvt WP to apply on the jets
674 runJvtEfficiency -- Determines whether or not to calculate the JVT efficiency
675 runFJvtEfficiency -- Determines whether or not to calculate the forward JVT efficiency
676 """
677
678 if jetInput not in ["EMTopo", "EMPFlow", "HI"]:
679 raise ValueError(
680 "Unsupported input type '{0}' for R=0.4 jets!".format(jetInput) )
681
682 config = SmallRJetAnalysisConfig()
683 config.setOptionValue ('containerName', containerName)
684 config.setOptionValue ('jetCollection', jetCollection)
685 config.setOptionValue ('jetInput', jetInput)
686 config.setOptionValue ('runJvtUpdate', runJvtUpdate)
687 config.setOptionValue ('runNNJvtUpdate', runNNJvtUpdate)
688 config.setOptionValue ('runJvtSelection', runJvtSelection)
689 config.setOptionValue ('runFJvtSelection', runFJvtSelection)
690 config.setOptionValue ('jvtWP', jvtWP)
691 config.setOptionValue ('fJvtWP', fJvtWP)
692 config.setOptionValue ('runJvtEfficiency', runJvtEfficiency)
693 config.setOptionValue ('runFJvtEfficiency', runFJvtEfficiency)
694 seq.append (config)
695
696