Esempio n. 1
0
    def configureReco(self):
        from AthenaCommon.DetFlags import DetFlags
        DetFlags.Muon_setOn()
        DetFlags.Calo_setOff()

        recAlgsFlags.doMuonIDStandAlone = False
        recAlgsFlags.doMuonIDCombined = False

        # add some more flags available for standalone running
        import MuonRecExample.MuonRecStandaloneFlags

        # configure flags so that only Muon Standalone reco is run
        import MuonRecExample.MuonRecStandaloneOnlySetup

        muonRecFlags.useAlignmentCorrections = mualign.useOpticalAlignment()

        # cosmics setup
        #if align.dataType()=='cosmic' or align.dataType()=='simCosmic':

        ##### no more flags after this line #####
        print "align.dataType()=", align.dataType()
        if align.dataType() == 'data' or align.dataType() == 'cosmic':
            muonRecTopOptions = "MuonAlignGenTools/MuonDataRec_myTopOptions.py"
        else:
            muonRecTopOptions = "MuonRecExample/MuonRec_topOptions.py"
        try:
            include(muonRecTopOptions)

        ###### put any user finetuning before this line #####
        except:
            # always write config so far for debugging
            from AthenaCommon.ConfigurationShelve import saveToAscii
            saveToAscii("config.txt")
            # but still exit with error
            raise
Esempio n. 2
0
 def level1AsciiFile(self):
     if not MuonAlignmentIOFiles._level1AsciiFile:
         if align.iteration()>0 or \
                 align.dataType()=='MC' or align.dataType()=='simCosmic' :
             MuonAlignmentIOFiles._level1AsciiFile = MuonAlignmentIOFiles._IOFiles.level1AsciiFile(
                 align.fileRootName(), align.iteration(), align.jobIndex())
         else:
             MuonAlignmentIOFiles._level1AsciiFile = ""
         print "level1AsciiFile: ", MuonAlignmentIOFiles._level1AsciiFile
     return MuonAlignmentIOFiles._level1AsciiFile
Esempio n. 3
0
 def asztInputFile(self):
     if not MuonAlignmentIOFiles._asztInputFile:
         if align.iteration()>0 or \
                 align.dataType()=='MC' or align.dataType()=='simCosmic' :
             MuonAlignmentIOFiles._asztInputFile = MuonAlignmentIOFiles._IOFiles.asztInputFile(
                 align.fileRootName(), align.iteration(), align.jobIndex())
         else:
             print "setting asztInputFile to ''"
             MuonAlignmentIOFiles._asztInputFile = ""
         print "asztInputFile: ", MuonAlignmentIOFiles._asztInputFile
     return MuonAlignmentIOFiles._asztInputFile
Esempio n. 4
0
 def setFileRootName(self):
     fileroot = str(align.alignmentLevel()) + "_" + align.dataType()
     if mualign.jobType() != "":
         fileroot = fileroot + "_" + mualign.jobType()
     align.fileRootName = fileroot
     print "in ConfigMuonAlignment, fileroot=", fileroot