def __apply_configuration__(self): #GaudiKernel.ProcessJobOptions.PrintOff() from GaudiKernel.Configurable import ConfigurableGeneric as RFileCnv RFileCnv('RFileCnv').GlobalCompression = "LZMA:6" ############## Set other properties ########### self._safeSet( LHCbApp(), ['EvtMax','SkipEvents','Simulation', 'DataType' , 'CondDBtag','DDDBtag'] ) ApplicationMgr().AppName="Tesla, utilising DaVinci" # if self.getProp('Mode') is "Online": self.setProp('WriteFSR',True) self._configureForOnline() else: DecodeRawEvent().DataOnDemand=True RecombineRawEvent() if self.getProp('Simulation')==True: self._unpackMC() # self._configureOutput() # from Configurables import EventSelector EventSelector().PrintFreq = 1000 # Add monitors if they are there if len(self.getProp('Monitors'))>0: self._configureHistos() if self.getProp('KillInputTurbo'): enk = EventNodeKiller('KillTurbo') enk.Nodes = [ "Turbo" ] ApplicationMgr().TopAlg.insert( 0, enk.getFullName() ) ApplicationMgr().TopAlg+=[self.teslaSeq]
def execute(): RecombineRawEvent() DecodeRawEvent().DataOnDemand = True from Configurables import ConfigTarFileAccessSvc ConfigTarFileAccessSvc().File = "config.tar" #Tesla().OutputLevel = DEBUG Tesla().TriggerLine = "Hlt2DiMuonJPsi" Tesla().ReportVersion = 2 #Tesla().EvtMax = -1 #from GaudiConf.IOHelper import IOHelper #ioh = IOHelper() #ioh.setupServices() #ioh.inputFiles(["EarlyEvents-Extended-L0-Turbo.xdst"]) Tesla().outputFile = "EarlyEvents-Extended-L0-Turbo.xdst"
from Configurables import Tesla from Gaudi.Configuration import * from Configurables import RecombineRawEvent, DecodeRawEvent RecombineRawEvent() DecodeRawEvent().DataOnDemand = True from Configurables import ConfigTarFileAccessSvc ConfigTarFileAccessSvc( ).File = '/afs/cern.ch/work/s/sbenson/public/forTeslaExtendedReps/config.tar' Tesla().TriggerLine = "Hlt2DiMuonJPsi" Tesla().ReportVersion = 2 Tesla().EvtMax = -1 from GaudiConf.IOHelper import IOHelper ioh = IOHelper() ioh.setupServices() ioh.inputFiles(["/tmp/ikomarov/With_new_HLT.dst"]) Tesla().outputFile = "/tmp/ikomarov/Turbo.dst"
"Bank_C": "FooBar", #killed before and after "Bank_D": "Foo/#BAR#", #killed as an extra node "Bank_F": "Foo/#BAR#", "Bank_G": "/SpamAndEggs", #killed as an extra bank "Bank_H": "/SpamAndEggs" } } test_versions = {"Spam": 0.0, "Eggs": 99.0} RawEventFormatConf().Locations = test_locations RawEventFormatConf().RecoDict = test_versions #test RecombineRawEvent with all options RecombineRawEvent().Version = "Eggs" RecombineRawEvent().Method = "Map" RecombineRawEvent().Regex = ".*(_A|_B)" RecombineRawEvent().__apply_configuration__() expected_combiner = RawEventMapCombiner("resurectRawEventMap") if "DAQ/RawEvent" not in dods( ).AlgMap or dods().AlgMap["DAQ/RawEvent"] != expected_combiner: raise ValueError("Failed to add to DOD") if expected_combiner.RawBanksToCopy != { 'Bank_A': 'FooBar', 'Bank_B': "FooBar" }: print expected_combiner.RawBanksToCopy