Пример #1
0
    def __init__(self, options):
        """\
Specifies further trees to be added to oaAnalysisModuleTChains.
        """
        # Call __init__ in base class
        userAnalysisBase.__init__(self, options)
        # Make TChains of the oaAnalysis trees to be read, and append to i
        # oaAnalysisModuleTChains
        self.TrackerECal = ROOT.TChain("ReconDir/TrackerECal") 
        self.oaAnalysisModuleTChains.append(self.TrackerECal)
Пример #2
0
    def __init__(self, options):
        """\
Specifies further trees to be added to oaAnalysisModuleTChains, which is
set up in the base class userAnalysisBase.__init__
Needs to be passed the command line options from optionParser.
        """
        ### Call __init__ in base class
        userAnalysisBase.__init__(self, options)
        ###############################################################
        ### Specify additional oaAnalysis modules to read, and append to oaAnalysisModuleTChains
        self.ReconECal = ROOT.TChain("ReconDir/TrackerECal")
        self.oaAnalysisModuleTChains.append(self.ReconECal)
        self.Basic = ROOT.TChain("HeaderDir/BasicHeader")
        self.oaAnalysisModuleTChains.append(self.Basic)
Пример #3
0
    def __init__(self, options):
        """\
Specifies further trees to be added to oaAnalysisModuleTChains, which is
set up in the base class userAnalysisBase.__init__
Needs to be passed the command line options from optionParser.
        """
        ### Call __init__ in base class
        userAnalysisBase.__init__(self, options)
        ###############################################################
        ### Specify additional oaAnalysis modules to read, and append to oaAnalysisModuleTChains
        # Truth information about all the vertices
        # self.truthVertices = ROOT.TChain("TruthDir/Vertices"); self.oaAnalysisModuleTChains.append(self.truthVertices)
        # Truth information about the trajectories
        # self.truthTrajectories = ROOT.TChain("TruthDir/Trajectories"); self.oaAnalysisModuleTChains.append(self.truthTrajectories)
        # TrackerECal Reconstruction
        self.reconTrackerECal = ROOT.TChain("ReconDir/TrackerECal"); self.oaAnalysisModuleTChains.append(self.reconTrackerECal)
Пример #4
0
 def __init__(self, options):
     """\
     Specifies further trees to be added to oaAnalysisModuleTChains, which is
     set up in the base class userAnalysisBase.__init__
     Needs to be passed the command line options from optionParser.
     """
     ### Call __init__ in base class
     userAnalysisBase.__init__(self, options)
     # Truth information about all the vertices
     self.truthVertices = ROOT.TChain("TruthDir/Vertices")
     self.oaAnalysisModuleTChains.append(self.truthVertices)
     # Tracker Reconstruction
     self.reconTracker = ROOT.TChain("ReconDir/Tracker")
     self.oaAnalysisModuleTChains.append(self.reconTracker)
     # Event information
     self.eventHeader = ROOT.TChain("HeaderDir/BasicHeader")
     self.oaAnalysisModuleTChains.append(self.eventHeader)
Пример #5
0
    def __init__(self, options):
        """
        Adds trees to oaAnalysisModuleTChains, and handles useroption.

        Keyword arguments:
        options -- this is passed in automatically by runAnalyses.py. 

        Recognised useroption values:
        None
        """

        # Call __init__ in base class
        userAnalysisBase.__init__(self, options)
        # Make TChains of the oaAnalysis trees to be read, and append to i
        # oaAnalysisModuleTChains
        self.ReconPerfEval = ROOT.TChain("ReconDir/ReconPerfEval")
        self.oaAnalysisModuleTChains.append(self.ReconPerfEval)
        self.DAQ = ROOT.TChain("HeaderDir/BasicDataQuality")
        self.oaAnalysisModuleTChains.append(self.DAQ)
Пример #6
0
    def __init__(self, options):
        """
        Adds trees to oaAnalysisModuleTChains, and handles useroption.

        Keyword arguments:
        options -- this is passed in automatically by runAnalyses.py. 

        Recognised useroption values:
        cuttype=<val> -- which fiducial volume cut to apply. Allowed options are
                         P0D, FGD1, FGD2. Defaults to no FV cut.
        """

        # Call __init__ in base class
        userAnalysisBase.__init__(self, options)
        # Make TChains of the oaAnalysis trees to be read, and append to i
        # oaAnalysisModuleTChains
        self.ReconPerfEval = ROOT.TChain("ReconDir/ReconPerfEval")
        self.oaAnalysisModuleTChains.append(self.ReconPerfEval)
        self.GeometrySummary = ROOT.TChain("HeaderDir/GeometrySummary")
        self.oaAnalysisModuleTChains.append(self.GeometrySummary)
        self.DAQ = ROOT.TChain("HeaderDir/BasicDataQuality")
        self.oaAnalysisModuleTChains.append(self.DAQ)
        self.BasicHeader = ROOT.TChain("HeaderDir/BasicHeader")
        self.oaAnalysisModuleTChains.append(self.BasicHeader)

        self.particles = ["All", "Electron", "Muon", "Proton", "Pion"]

        self.cuttype = False
        self.trigger = False
        if options.useroption:
            for opt in options.useroption:
                [key, val] = opt.split("=", 1)
                if key == "cuttype":
                    self.cuttype = val
                if key == "trigger":
                    self.trigger = val

            if self.cuttype and self.cuttype != "P0D" and self.cuttype != "FGD1" and self.cuttype != "FGD2":
                raise ValueError(
                    "If '--useroption  cuttype=<option>' is specified, option must be either P0D, FGD1 or FGD2"
                )