conddb.addFolderWithTag("INDET_OFL","/Indet/Align","InDetAlign-BLK-UPD4-09",force=True,forceData=True)
else:
    print "EOJT_alignMC found in globals(), so aligning ID to MC conditions"
    conddb.blockFolder("/TRT/Align")
    conddb.addFolderWithTag("TRT_OFL","/TRT/Align","TRTAlign_Nominal2",force=True,forceMC=True)
    conddb.blockFolder("/LAR/Align")
    conddb.addFolderWithTag("LAR_OFL","/LAR/Align","LARAlign-IOVDEP-00",force=True,forceMC=True)
    conddb.blockFolder("/Indet/Align")
    conddb.addFolderWithTag("INDET_OFL","/Indet/Align","InDetAlign_IOVDEP-03",force=True,forceMC=True) 

#to set beam spot from MC
#conddb.blockFolder("/Indet/Beampos")
#conddb.addFolderWithTag("INDET_OFL","/Indet/Beampos","IndetBeampos-RunDep-MC15-BestKnowledge-002",force=True,forceMC=True)

#to run overlay chain with trigger                                                            
if (hasattr(runArgs, "triggerConfig") and runArgs.triggerConfig!="NONE") or (hasattr(recAlgs,'doTrigger') and recAlgs.doTrigger() and DetFlags.LVL1_on()):
    print "running with trigger" 
    conddb.blockFolder("/PIXEL/HLT/DCS/HV")
    conddb.addFolderWithTag("PIXEL_ONL","/PIXEL/HLT/DCS/HV","PixDCSHV-RUN2-UPD1-00",force=True,forceData=True)
    conddb.blockFolder("/PIXEL/HLT/DCS/TEMPERATURE")
    conddb.addFolderWithTag("PIXEL_ONL","/PIXEL/HLT/DCS/TEMPERATURE","PixDCSTemp-RUN2-UPD1-00",force=True,forceData=True)
    conddb.addOverride("/GLOBAL/Onl/TrigBTagCalib/RUN12","TrigBTagCalibRUN12Onl-08-10")
    conddb.addOverride("/GLOBAL/Onl/BTagCalib/RUN12","BTagCalibRUN12Onl-08-15")
else:
    print "running wint no trig  "
    conddb.blockFolder("/PIXEL/DCS/HV")
    conddb.addFolderWithTag("DCS_OFL","/PIXEL/DCS/HV","PixDCSHV-SIM-RUN1-000-00",force=True,forceMC=True)
    conddb.blockFolder("/PIXEL/PixReco")                                                                         
    conddb.addFolderWithTag("PIXEL_OFL","/PIXEL/PixReco","PixReco-SIM-RUN12-000-01",force=True,forceMC=True)

Пример #2
0
    conddb.blockFolder("/Indet/Align")
    conddb.addFolderWithTag("INDET_OFL",
                            "/Indet/Align",
                            "InDetAlign-RUN2-BLK-UPD4-16",
                            force=True,
                            forceMC=True)  #InDetAlign_IOVDEP-03

#to set beam spot from MC
#conddb.blockFolder("/Indet/Beampos")
#conddb.addFolderWithTag("INDET_OFL","/Indet/Beampos","IndetBeampos-RunDep-MC15-BestKnowledge-002",force=True,forceMC=True)

#to run overlay chain with trigger
if (hasattr(runArgs, "triggerConfig")
        and runArgs.triggerConfig != "NONE") or (hasattr(recAlgs, 'doTrigger')
                                                 and recAlgs.doTrigger()
                                                 and DetFlags.LVL1_on()):
    printfunc("running with trigger  ")
    conddb.addOverride("/GLOBAL/Onl/BTagCalib/RUN12",
                       "BTagCalibRUN12Onl-08-40")
else:
    printfunc("running with no trigger  ")

if DetFlags.writeRDOPool.pixel_on():
    conddb.addFolder("PIXEL_OFL", "/PIXEL/PixReco")

conddb.blockFolder("/PIXEL/PixdEdx")
conddb.addFolderWithTag("PIXEL_OFL",
                        "/PIXEL/PixdEdx",
                        "PixdEdx-SIM-RUN124-000-00",
                        force=True,
                        forceMC=True)
    0.310, 0.203, 0.347, 0.269, 0.241, 0.234, 0.234, 0.277, 0.297, 0.225,
    0.297, 0.238, 0.000, 1, 1, 1, 1
]
lucid.pmtScaling = [
    1.010, 0.000, 0.991, 0.948, 1.152, 1.221, 1.160, 0.988, 1.092, 1.063,
    1.143, 1.091, 1.109, 1.117, 1.185, 1.142, 1, 1, 1, 1, 1.023, 1.127, 1.043,
    0.986, 1.148, 0.899, 0.898, 1.098, 1.115, 1.109, 1.127, 1.043, 1.085,
    1.043, 1.063, 0.000, 1, 1, 1, 1
]
lucid.gasScaling = [
    1.176, 0.000, 1.217, 1.101, 1.143, 1.105, 1.103, 1.144, 1.075, 1.069,
    1.100, 1.208, 1.212, 1.125, 1.026, 1.037, 1, 1, 1, 1, 1.064, 0.956, 0.975,
    0.938, 1.205, 1.095, 1.137, 1.222, 1.262, 1.160, 0.923, 0.969, 1.132,
    0.969, 1.174, 0.000, 1, 1, 1, 1
]
lucid.npeThreshold = [
    17, 15, 16, 16, 18, 16, 16, 18, 17, 16, 16, 17, 19, 16, 16, 17, 15, 15, 15,
    15, 17, 16, 16, 17, 17, 15, 16, 16, 17, 16, 15, 17, 17, 15, 16, 15, 15, 15,
    15, 15
]

from GaudiSvc.GaudiSvcConf import THistSvc

if (lucid.fillRootTree):
    THistSvc = THistSvc()
    THistSvc.Output = ["AANT DATAFILE='cali.root' OPT='RECREATE'"]
    ServiceMgr += THistSvc

if DetFlags.LVL1_on():
    include("LUCID_Digitization/LUCID_LVL1Digitization_JobOptions.py")