コード例 #1
0
 def getConfigAccessSvc(self):
     method = MooreExpert().getProp('TCKpersistency').lower()
     TCKData = self.getProp('TCKData')
     if method == 'file':
         from Configurables import ConfigFileAccessSvc
         return ConfigFileAccessSvc(Directory=TCKData + '/config')
     if method == 'sqlite':
         from Configurables import ConfigDBAccessSvc
         return ConfigDBAccessSvc(Connection='sqlite_file:' + TCKData +
                                  '/db/config.db')
     if method == 'tarfile':
         from Configurables import ConfigTarFileAccessSvc
         return ConfigTarFileAccessSvc(File=TCKData + '/config.tar')
     if method == 'zipfile':
         from Configurables import ConfigZipFileAccessSvc
         return ConfigZipFileAccessSvc(File=TCKData + '/config.zip')
     if method == 'cdb':
         from Configurables import ConfigCDBAccessSvc
         return ConfigCDBAccessSvc(File=TCKData + '/config.cdb')
     raise TypeError("invalid TCK persistency '%s'" % method)
コード例 #2
0
                                "CloneDistCut" : [5000, 9e+99 ] }

#
#Raw event juggler to split Other/RawEvent into Velo/RawEvent and Tracker/RawEvent
#
from Configurables import RawEventJuggler
juggler = RawEventJuggler( DataOnDemand=True, Input=0.3, Output=4.1 )

#
#Fix for TrackEff lines
#
from Configurables import DecodeRawEvent
DecodeRawEvent().setProp("OverrideInputs",4.1)

from Configurables import ConfigCDBAccessSvc
ConfigCDBAccessSvc().File = '$STRIPPINGSELECTIONSROOT/tests/data/config.cdb'

# Specify the name of your configuration
my_wg='ALL' #FOR LIAISONS


# NOTE: this will work only if you inserted correctly the 
# default_config dictionary in the code where your LineBuilder 
# is defined.
from StrippingSelections import buildersConf
confs = buildersConf()
from StrippingSelections.Utils import lineBuilder, buildStreams
streams = buildStreams( confs, WGs=my_wg )

leptonicMicroDSTname   = 'Leptonic'
charmMicroDSTname      = 'Charm'
コード例 #3
0
from Configurables import Moore, HltConf
## Configure the tarfile access
from Configurables import ConfigCDBAccessSvc
ConfigCDBAccessSvc().File = 'config.cdb'

Moore().TCKData = '$MOOREROOT/tests/options/TCKData/'
Moore().InitialTCK = '0x50000001'
Moore().UseTCK = True
Moore().CheckOdin = False