Пример #1
0
    def addRegionSelectionSvc(self):
        from MuonCalibStandAloneBase.MuonCalibStandAloneBaseConf import RegionSelectionSvc
        RegionSelectionSvc = RegionSelectionSvc(PrintList=True)
        RegionSelectionSvc.Region = mualign.moduleSelectionString()

        from AthenaCommon.AppMgr import ServiceMgr as svcMgr
        svcMgr += RegionSelectionSvc
        print RegionSelectionSvc
    MuonCalibDefaultCalibrationSource.RtRegions += [""]
    MuonCalibDefaultCalibrationSource.RtFiles += ["Rt_BML_2_2.dat"]
    print MuonCalibDefaultCalibrationSource

################################################################################
#parameters for cool database
################################################################################

CoolInserter.CoolConnectionString = "sqlite://;schema=test.db;dbname=COMP200"
#online folders

CoolInserter.T0Folder += ["/MDT/T0"]
CoolInserter.T0Tag += ["MDTT0_RPCwBeam-02"]
CoolInserter.T0FolderCompress += [True]
CoolInserter.RtFolder += ["/MDT/RT"]
CoolInserter.RtTag += ["MDTRT_RPCwBeam-02"]
CoolInserter.RtFolderCompress += [True]

#if set to -1 the IOV from the header is used - IOV is inclusive
CoolInserter.IOVStart = -1
CoolInserter.IOVEnd = -1

################################################################################
#replication options
################################################################################

#select region to replicate
RegionSelectionSvc.Region = ""

print CoolInserter
Пример #3
0
### Setup Athena common flags
include("AthenaCommon/AthenaCommonFlags.py")
include.block("AthenaCommon/AthenaCommonFlags.py")

include("IOVDbSvc/IOVRecExCommon.py")

doMuonCalibAtlas = True

from AthenaCommon.AppMgr import ServiceMgr
from MuonCalibStandAloneBase.MuonCalibStandAloneBaseConf import RegionSelectionSvc
RegionSelectionSvc = RegionSelectionSvc()
#RegionSelectionSvc.Region = "[B??,5] & !([BEE])"
#RegionSelectionSvc.Region = "[BML,4,1]"
RegionSelectionSvc.Region = "[B??]"
# RegionSelectionSvc.Region = "[BIR,6,1]"
RegionSelectionSvc.PrintList = True
ServiceMgr += RegionSelectionSvc
print RegionSelectionSvc
##################################USER SETTINGS#################################

#select calibration algoritm
#	scan run for chambers			RunScan
#	t0-Fitters: 				ClassicT0, MTT0
#	create rt by integration 		Integration
#	autocalibration 			ClassicAutocal, AnalyticAutocal
#	resolution				SimpleResolution, Chi2Resolution
#	efficiency				Efficiency
#       MDT DQA                                 MdtDqa
#	event display				Display
#	rpc timing				RpcTiming
#       control histograms              	ControlHistograms
Пример #4
0
	

for source_config in MuonCalib__gCalibrationSourceConfigs:
	MuonCalibDbCalibrationSource = source_config.GenCalibrationSource(readerPassword)
	ToolSvc += MuonCalibDbCalibrationSource
	CoolInserter.CalibrationSources.append(MuonCalibDbCalibrationSource)
	printfunc (MuonCalibDbCalibrationSource)

MuonCalib_gCalibrationDefaultSourceConfig.ConfigureTool(ToolSvc, CoolInserter)

dbname="CONDBR2"
if "isMC" in dir():
	if isMC:
		dbname="OFLP200"

CoolInserter.CoolConnectionString = "sqlite://;schema=" + coolFileName + ";dbname="+dbname

for target_config in MuonCalib__gCalibrationTargetConfigs:
	if globalConditionsTag:
		target_config.ResolveGlobalTag(globalConditionsTag)
	target_config.AddToCoolInserter(CoolInserter)
if not regionToInsert:
	regionToInsert=""

RegionSelectionSvc.Region = regionToInsert

CoolInserter.IOVStart=targetIov[0]
CoolInserter.IOVEnd=targetIov[1]

printfunc (CoolInserter)
Пример #5
0
from MdtCalibValidation.MdtCalibValidationConf import MuonCalib__MdtValidationAlg
MdtValidationAlg = MuonCalib__MdtValidationAlg()

from AthenaCommon.AlgSequence import AlgSequence
topSequence = AlgSequence()
topSequence += MdtValidationAlg

theApp.EvtMax = 1

from MuonCalibStandAloneBase.MuonCalibStandAloneBaseConf import RegionSelectionSvc
RegionSelectionSvc = RegionSelectionSvc()
RegionSelectionSvc.PrintList = True
ServiceMgr += RegionSelectionSvc
#RegionSelectionSvc.Region = "[BIL,4,6]"
RegionSelectionSvc.Region = runArgs.selectChamber

MdtValidationAlg.SiteName = CalibSite
if (CalibSite == "MP"):
    # MPI
    MdtValidationAlg.ConnectionString = "oracle://oracle01.mppmu.mpg.de/ATLMPI.mppmu.mpg.de/atlas_muoncalib_mpi"
    MdtValidationAlg.WorkingSchema = "atlas_muoncalib_mpi"
elif (CalibSite == "MP_NEW"):
    # MPI
    MdtValidationAlg.ConnectionString = "oracle://oracle01.mppmu.mpg.de/ATLMPI.mppmu.mpg.de/ATLAS_MUONCALIB_READER"
    MdtValidationAlg.WorkingSchema = "ATLAS_MUONCALIB_MPI_META"
    MdtValidationAlg.WriterConnectionString = "oracle://oracle01.mppmu.mpg.de/ATLMPI.mppmu.mpg.de/ATLAS_MUONCALIB_WRITER"
elif (CalibSite == "MI"):
    # Michigan
    VlidationAlgalidationAlg.ConnectionString = "oracle://umors.grid.umich.edu/muoncal.grid.umich.edu/atlas_muoncalib_mich"
    MdtValidationAlg.WorkingSchema = "atlas_muoncalib_mich"