Example #1
0
ReadLCOutOfCluster = CaloReadLCOutOfClusterFile("ReadLCOutOfCluster")

ReadLCOutOfCluster.LCOutOfClusterFileName = inFileName
ReadLCOutOfCluster.CorrectionKey="OOCCorrection"
topSequence += ReadLCOutOfCluster
# Number of events to be processed (default is 10)
theApp.EvtMax = 1


AthenaPoolCnvSvc = Service( "AthenaPoolCnvSvc" )

from RegistrationServices.OutputConditionsAlg import OutputConditionsAlg
myOCA=OutputConditionsAlg("myOCA",outFileName)
# List of objects container type#key#foldername
myOCA.ObjectList = ["CaloLocalHadCoeff#OOCCorrection#/CALO/HadCalibration/CaloOutOfCluster"]
myOCA.WriteIOV   = True
myOCA.IOVTagList = ["CaloHadOOCCorr2-CSC05-BERT" ] 
myOCA.OutputLevel= Lvl.DEBUG

# Set output level threshold (2=DEBUG, 3=INFO, 4=WARNING, 5=ERROR, 6=FATAL )
MessageSvc = Service( "MessageSvc" )
MessageSvc.OutputLevel = Lvl.INFO

DetectorStore = svcMgr.DetectorStore
DetectorStore.Dump = TRUE
DetectorStore.OutputLevel = Lvl.INFO

IOVDbSvc = Service( "IOVDbSvc" )
IOVDbSvc.OutputLevel = Lvl.INFO
svcMgr.IOVDbSvc.dbConnection = "sqlite://X;schema=myOOC05BERT200.db;dbname=OFLP200"
RpcReadWriteCoolStr.FileName = "testVincenzo55.txt"

# data is written to conditions database using OutputConditionsAlg

if (RpcReadWriteCoolStr.Write or RpcReadWriteCoolStr.WriteToOnlineDb):

    from RegistrationServices.OutputConditionsAlg import OutputConditionsAlg
    OutCondAlg = OutputConditionsAlg("OutCondAlg", "dummy.root")

    prefix = "CondAttrListCollection#"
    OutCondAlg.ObjectList = [prefix + folder]
    OutCondAlg.IOVTagList = [folder + " <tag>HEAD</tag>"]
    OutCondAlg.WriteIOV = True
    OutCondAlg.Run1 = 100
    #OutputConditionsAlg.Event1=0
    OutCondAlg.Run2 = 1000
    #OutputConditionsAlg.Event2=9999
    OutCondAlg.OutputLevel = DEBUG
else:
    ServiceMgr.IOVDbSvc.Folders += [
        folder + " <tag>HEAD</tag> <dbConnection>" + dbConn + "</dbConnection>"
    ]

job += RpcReadWriteCoolStr

print ServiceMgr

theApp.EvtMax = 1

#theApp.initialize()
Example #3
0
from RegistrationServices.OutputConditionsAlg import OutputConditionsAlg
#myOCA=OutputConditionsAlg("myOCA","CaloLocalHadCoeff.dmcorr."+mysfx+".pool.root")
myOCA=OutputConditionsAlg("myOCA",mysfx+".pool.root")
# List of objects container type#key#foldername
myOCA.ObjectList = ["CaloLocalHadCoeff#HadDMCoeff2#/CALO/HadCalibration2/CaloDMCorr2"]
myOCA.WriteIOV   = True
#myOCA.IOVTagList = ["CaloHadDMCorr2-CSC05-BERT" ]
#myOCA.IOVTagList = ["CaloHadDMCorr2-MC09V-BERT" ]

#myOCA.IOVTagList = ["CaloHadDMCorr2-GEO08-QGSP-BERT" ]
#myOCA.IOVTagList = ["CaloHadDMCorr2-GEO08-FTFP-BERT" ]
#myOCA.IOVTagList = ["CaloHadDMCorr2-GEO16-QGSP-BERT" ]
#myOCA.IOVTagList = ["CaloHadDMCorr2-GEO16-QGSP-BERT-Side" ]
myOCA.IOVTagList = ["CaloHadDMCorr2-GEO180100-QGSP-BERT" ]
myOCA.OutputLevel= DEBUG

AthenaPoolCnvSvc.PoolAttributes += [ "STREAM_MEMBER_WISE = '0'" ]

# Set output level threshold (2=DEBUG, 3=INFO, 4=WARNING, 5=ERROR, 6=FATAL )
MessageSvc = Service( "MessageSvc" )
MessageSvc.OutputLevel = Lvl.INFO

DetectorStore = svcMgr.DetectorStore
DetectorStore.Dump = TRUE
DetectorStore.OutputLevel = Lvl.INFO

IOVDbSvc = Service( "IOVDbSvc" )
IOVDbSvc.OutputLevel = Lvl.INFO
svcMgr.IOVDbSvc.dbConnection = "sqlite://X;schema=myGeo18DmQGSPBERT200.db;dbname=OFLP200"
#svcMgr.IOVDbSvc.dbConnection = "sqlite://X;schema=myGeo08DmFTFPBERT200.db;dbname=OFLP200"
Example #4
0
# data is written to conditions database using OutputConditionsAlg

if(TriggerCool.WritePhi or TriggerCool.Read ):
    
    from RegistrationServices.OutputConditionsAlg import OutputConditionsAlg
    OutCondAlg = OutputConditionsAlg("OutCondAlg","dummy.root")
    prefix = "CondAttrListCollection#"
    OutCondAlg.ObjectList=[prefix+phifolder]

    OutCondAlg.IOVTagList = ["TestPhi"]
    OutCondAlg.WriteIOV=True
    OutCondAlg.Run1=1000
    #OutputConditionsAlg.Event1=0
    OutCondAlg.Run2=3000
    #OutputConditionsAlg.Event2=9999
    OutCondAlg.OutputLevel=VERBOSE
else:
    ServiceMgr.IOVDbSvc.Folders+=[phifolder+" <tag>TestPhi</tag> <dbConnection>"+dbConn+"</dbConnection>"] 
if(TriggerCool.WriteEta ):
    
    from RegistrationServices.OutputConditionsAlg import OutputConditionsAlg
    OutCondAlg = OutputConditionsAlg("OutCondAlg","dummy.root")
    prefix = "CondAttrListCollection#"
    OutCondAlg.ObjectList=[prefix+etafolder]

    OutCondAlg.IOVTagList = ["TestEta"]
    OutCondAlg.WriteIOV=True
    OutCondAlg.Run1=1
    #OutputConditionsAlg.Event1=0
    OutCondAlg.Run2=30000000
    #OutputConditionsAlg.Event2=9999