Example #1
0
def initialiseCoolDataBaseFolder():
    if TrkDetFlags.ConfigurationOutputLevel() < 3 :
      print ('[ Configuration : start ] *** FatrasTrackingGeometry ********************************')
      print ('[ TrackingGeometrySvc ]')

    # check whether the material retrieval is ment to be from COOL
    if TrkDetFlags.MaterialSource() == 'COOL' :
        # the tag names
        CoolDataBaseFolder = TrkDetFlags.MaterialStoreGateKey()
        AtlasMaterialTag = TrkDetFlags.MaterialTagBase()+str(TrkDetFlags.MaterialVersion())+'_'

        if TrkDetFlags.ConfigurationOutputLevel() < 3 :
           print ('[ TrackingGeometrySvc ] Associating DB folder : ',CoolDataBaseFolder)
           print ('[ TrackingGeometrySvc ]     base material tag : ',AtlasMaterialTag)

        # we need the conditions interface
        from IOVDbSvc.CondDB import conddb
        # use a local database
        if TrkDetFlags.MaterialDatabaseLocal():
            # specify the local database
            DataBasePath  = TrkDetFlags.MaterialDatabaseLocalPath()
            DataBaseName  = TrkDetFlags.MaterialDatabaseLocalName()
            MagicTag      = TrkDetFlags.MaterialMagicTag()
            DataBaseConnection = '<dbConnection>sqlite://X;schema='+DataBasePath+DataBaseName+';dbname=OFLP200</dbConnection>'
            conddb.blockFolder('/GLOBAL/TrackingGeo/LayerMaterial')
            conddb.addFolderWithTag('',DataBaseConnection+CoolDataBaseFolder,AtlasMaterialTag+MagicTag,force=True)
            if TrkDetFlags.ConfigurationOutputLevel() < 3 :
                print ('[ TrackingGeometrySvc ] Using Local Database: '+DataBaseConnection)
            # make sure that the pool files are in the catalog
            #from PoolSvc.PoolSvcConf import PoolSvc
            #PoolSvc.ReadCatalog += [ DataBasePath+'PoolFileCatalog.xml' ]
        elif TrkDetFlags.SLHC_Geometry() :
            # set the folder to the SLHC location
            CoolDataBaseFolder = '/GLOBAL/TrackingGeo/SLHC_LayerMaterial'
            ctag = AtlasMaterialTag+TrkDetFlags.MaterialMagicTag()
            cfoldertag = CoolDataBaseFolder+' <tag>'+ctag+'</tag>'
            conddb.addFolderSplitMC('GLOBAL',cfoldertag,cfoldertag)
        else :
            # load the right folders (preparation for calo inclusion)
            cfolder = CoolDataBaseFolder +'<tag>TagInfoMajor/'+AtlasMaterialTag+'/GeoAtlas</tag>'
            conddb.addFolderSplitMC('GLOBAL',cfolder,cfolder)

    #HACK: CoolDataBaseFolder may not be set at this point! Is this right? -KG
    return CoolDataBaseFolder
Example #2
0
  def __init__(self):
    from AthenaCommon.Include import include
    from AthenaCommon.AppMgr import ToolSvc

    ##################################################################################
    # The FatrasTrackingGeometry Svc fragment
    #
    # usage: 
    #   include('TrkDetDescrSvc/FatrasTrackingGeometrySvc.py')
    #
    #    + for the navigator, set the TrackingGeometryName to:
    #      FatrasTrackingGeometrySvc.trackingGeometryName()
    #
    ##################################################################################
    # import the DetFlags for the setting
    from AthenaCommon.DetFlags import DetFlags

    #################################################################################
    # Material for the Geometry
    #
    # if only ID is switched on different COOLDB Folders
    #    and different Tag is used
    # 
    #################################################################################

    from TrkDetDescrSvc.TrkDetDescrJobProperties import TrkDetFlags
    
    if TrkDetFlags.ConfigurationOutputLevel() < 3 :
      print '[ Configuration : start ] *** FatrasTrackingGeometry ********************************'
      print '[ TrackingGeometrySvc ]'

    # check whether the material retrieval is ment to be from COOL
    if TrkDetFlags.MaterialFromCool() :
        # the tag names
        CoolDataBaseFolder = TrkDetFlags.MaterialStoreGateKey()
        AtlasMaterialTag = TrkDetFlags.MaterialTagBase()+str(TrkDetFlags.MaterialVersion())+'_'

        if TrkDetFlags.ConfigurationOutputLevel() < 3 :
           print '[ TrackingGeometrySvc ] Associating DB folder : ',CoolDataBaseFolder
           print '[ TrackingGeometrySvc ]     base material tag : ',AtlasMaterialTag

        # we need the conditions interface
        from IOVDbSvc.CondDB import conddb
        # use a local database
        if TrkDetFlags.MaterialDatabaseLocal():
            # specify the local database
            DataBasePath  = TrkDetFlags.MaterialDatabaseLocalPath() 
            DataBaseName  = TrkDetFlags.MaterialDatabaseLocalName()
            MagicTag      = TrkDetFlags.MaterialMagicTag()
            DataBaseConnection = '<dbConnection>sqlite://X;schema='+DataBasePath+DataBaseName+';dbname=OFLP200</dbConnection>'
            conddb.blockFolder('/GLOBAL/TrackingGeo/LayerMaterial')
            conddb.addFolderWithTag('',DataBaseConnection+CoolDataBaseFolder,AtlasMaterialTag+MagicTag,force=True)
            if TrkDetFlags.ConfigurationOutputLevel() < 3 :
                print '[ TrackingGeometrySvc ] Using Local Database: '+DataBaseConnection        
            # make sure that the pool files are in the catalog
            #from PoolSvc.PoolSvcConf import PoolSvc
            #PoolSvc.ReadCatalog += [ DataBasePath+'PoolFileCatalog.xml' ]                
        elif TrkDetFlags.SLHC_Geometry() :
            # set the folder to the SLHC location
            CoolDataBaseFolder = '/GLOBAL/TrackingGeo/SLHC_LayerMaterial'
            ctag = AtlasMaterialTag+TrkDetFlags.MaterialMagicTag()
            cfoldertag = CoolDataBaseFolder+' <tag>'+ctag+'</tag>'
            conddb.addFolderSplitMC('GLOBAL',cfoldertag,cfoldertag)
        else :
            # load the right folders (preparation for calo inclusion)
            cfolder = CoolDataBaseFolder +'<tag>TagInfoMajor/'+AtlasMaterialTag+'/GeoAtlas</tag>'
            conddb.addFolderSplitMC('GLOBAL',cfolder,cfolder)

    #################################################################################
    # The Geometry Builder
    #################################################################################

    # the name to register the Geometry
    FatrasTrackingGeometryName = 'FatrasTrackingGeometry'

    # the geometry builder alg tool
    from TrkDetDescrTools.TrkDetDescrToolsConf import Trk__GeometryBuilder
    FatrasGeometryBuilder = Trk__GeometryBuilder(name = 'FatrasGeometryBuilder')
    # switch on the Detectors
    FatrasGeometryBuilder.InDetTrackingGeometry  = DetFlags.ID_on()
    FatrasGeometryBuilder.CaloTrackingGeometry   = DetFlags.Calo_on()
    FatrasGeometryBuilder.MuonTrackingGeometry   = DetFlags.Muon_on() # avoid double building of MTG
    # register it to tool svc
    ToolSvc += FatrasGeometryBuilder

    # (ID) 
    if DetFlags.ID_on() :
      # get hand on the ID Tracking Geometry Builder
      if not TrkDetFlags.SLHC_Geometry() :
        from InDetTrackingGeometry.ConfiguredInDetTrackingGeometryBuilder import ConfiguredInDetTrackingGeometryBuilder as IDGeometryBuilder
      else :
        from InDetTrackingGeometry.ConfiguredSLHC_InDetTrackingGeometryBuilder import ConfiguredSLHC_InDetTrackingGeometryBuilder as IDGeometryBuilder
      if not TrkDetFlags.SLHC_Geometry() :   
        self.__InDetTrackingGeometryBuilder__ = IDGeometryBuilder(name ='InDetTrackingGeometryBuilder',
                                                         namePrefix = 'Fatras',
                                                         setLayerAssociation = False,
                                                         buildTrtStrawLayers = True)
        self.__InDetTrackingGeometryBuilder__.VolumeEnclosureOuterR = 1148.
      else :   
        self.__InDetTrackingGeometryBuilder__ = IDGeometryBuilder(name ='InDetTrackingGeometryBuilder',
                                                         namePrefix = 'Fatras',
                                                         setLayerAssociation = False)
        self.__InDetTrackingGeometryBuilder__.VolumeEnclosureOuterR = 1148.

      # make a public tool out of it
      ToolSvc += self.__InDetTrackingGeometryBuilder__
      # and give it to the Geometry Builder
      FatrasGeometryBuilder.InDetTrackingGeometryBuilder = self.__InDetTrackingGeometryBuilder__
      # 
    # (Calo)
    if DetFlags.Calo_on():
       from CaloTrackingGeometry.ConfiguredCaloTrackingGeometryBuilder import ConfiguredCaloTrackingGeometryBuilder as ConfiguredCaloGeo
       CaloTrackingGeometryBuilder = ConfiguredCaloGeo(name = 'FatrasCaloTrackingGeometryBuilder')
       CaloTrackingGeometryBuilder.RecordLayerIndexCaloSampleMap = True
       # make a publid tool
       ToolSvc += CaloTrackingGeometryBuilder
       # and give it to the Geometry Builder
       FatrasGeometryBuilder.CaloTrackingGeometryBuilder = CaloTrackingGeometryBuilder

    # (Muon)  
    if DetFlags.Muon_on():
       from MuonTrackingGeometry.ConfiguredMuonTrackingGeometry import MuonTrackingGeometryBuilder
       FatrasMuonTrackingGeometryBuilder = MuonTrackingGeometryBuilder(name = 'FatrasMuonTrackingGeometryBuilder')
       FatrasMuonTrackingGeometryBuilder.BarrelZ = 6783.  
       FatrasMuonTrackingGeometryBuilder.InnerBarrelRadius = 4255.  
       ToolSvc += FatrasMuonTrackingGeometryBuilder
       # and give it to the Geometry Builder
       FatrasGeometryBuilder.MuonTrackingGeometryBuilder = FatrasMuonTrackingGeometryBuilder      
  

    # then get the tuning parameters
    from FatrasExample.FatrasTuning import FatrasTuningFlags
    if FatrasTuningFlags.MaterialDistortionsX0.statusOn and \
       FatrasTuningFlags.MaterialDistortionsRho.statusOn :
      from TrkDetDescrSvc.TrkDetDescrSvcConf import CalibrationTrackingGeometrySvc as GeometrySvc
    else :  
      from TrkDetDescrSvc.TrkDetDescrSvcConf import TrackingGeometrySvc as GeometrySvc
    FatrasTrackingGeometrySvc = GeometrySvc(name = 'FatrasTrackingGeometrySvc')

    # register the Builder 
    FatrasTrackingGeometrySvc.GeometryBuilder = FatrasGeometryBuilder
    # and register the name under which the geometry is registered
    FatrasTrackingGeometrySvc.TrackingGeometryName = FatrasTrackingGeometryName
    # global scaling of the material if necessary
    FatrasTrackingGeometrySvc.GlobalScaleFactor = FatrasTuningFlags.MaterialScalor()
    # some flags - only works when ID is on
    FatrasTrackingGeometrySvc.AssignMaterialFromCOOL   = True
    FatrasTrackingGeometrySvc.BuildGeometryFromTagInfo = True
    # Material scaling & distortion
    if FatrasTuningFlags.MaterialDistortionsX0.statusOn and \
       FatrasTuningFlags.MaterialDistortionsRho.statusOn :
       FatrasTrackingGeometrySvc.RandomDistortions          = True
       FatrasTrackingGeometrySvc.DistortionsRadiationLength = FatrasTuningFlags.MaterialDistortionsX0() 
       FatrasTrackingGeometrySvc.DistortionsDensity         = FatrasTuningFlags.MaterialDistortionsRho()
       from FatrasExample.FatrasValidation import FatrasValidationFlags
       FatrasTrackingGeometrySvc.RecordDistortions          = FatrasValidationFlags.MaterialDistortions()
       FatrasTrackingGeometrySvc.DistortionOutputFolder     = '/'+FatrasValidationFlags.ValidationStream()+'/MaterialDistortions'
    # switch to the rigth CoolDB folder 
    FatrasTrackingGeometrySvc.InputLayerMaterialSetName = CoolDataBaseFolder

    from AthenaCommon.AppMgr import ServiceMgr as svcMgr
    svcMgr += FatrasTrackingGeometrySvc

    print '* [ Configuration : start ] *** FatrasTrackingGeometry ********************************'
    print '* [ FatrasTrackingGeometrySvc   ]'
    print FatrasTrackingGeometrySvc
    print '* [ GeometryBuilder       ]'
    print FatrasGeometryBuilder
    print '* [ Configuration : end   ] *** FatrasTrackingGeometry ********************************'

    ##################################################################################    

    self.__geoSvc__ = FatrasTrackingGeometrySvc
DetFlags.Muon_setOn()
#DetFlags.Tile_setOff()

#DetFlags.makeRIO.Calo_setOff()
#DetFlags.detdescr.Calo_setOn()

from IOVDbSvc.CondDB import conddb
#inputCollections = ["/afs/cern.ch/user/s/sthenkel/work/Performance/Alignment/WORK_ATHENA/20.1.X-VAL_WeakMode/InnerDetector/InDetMonitoring/InDetPerformanceMonitoring/share/Iter1_AlignmentConstants.root"]
inputCollections = ["./Iter1_AlignmentConstants.root"]

readPool = True
conddb.addOverride('/Indet/Align', 'InDetAlign-RUN2-25NS')
conddb.addOverride('/TRT/Align', 'TRTAlign-RUN2-25NS')

if readPool:
    conddb.blockFolder("/Indet/Align")
    conddb.blockFolder("/TRT/Align")
    from EventSelectorAthenaPool.EventSelectorAthenaPoolConf import CondProxyProvider
    from AthenaCommon.AppMgr import ServiceMgr
    ServiceMgr += CondProxyProvider()
    ServiceMgr.ProxyProviderSvc.ProviderNames += ["CondProxyProvider"]
    # set this to the file containing AlignableTransform objects
    ServiceMgr.CondProxyProvider.InputCollections += inputCollections
    ServiceMgr.CondProxyProvider.OutputLevel = DEBUG
    print ServiceMgr.CondProxyProvider
    # this preload causes callbacks for read in objects to be activated,
    # allowing GeoModel to pick up the transforms
    ServiceMgr.IOVSvc.preLoadData = True
    ServiceMgr.IOVSvc.OutputLevel = INFO

include("InDetRecExample/InDetRecConditionsAccess.py")
infile = 'rtt:valid1.110401.PowhegPythia_P2012_ttbar_nonallhad.simul.HITS.e3099_s2578_tid04919495_00/HITS.04919495._000416.pool.root.1'
keys = [
    #SiHitCollection_p2
    'BLMHits',
    'BCMHits',
    'PixelHits@100',
    'SCT_Hits@100',

    #TRT_HitCollection_p3
    'TRTUncompressedHits@100',
         ]

#from AthenaCommon.JobProperties import jobproperties
#jobproperties.Global.DetDescrVersion = 'ATLAS-GEO-10-00-00'

theApp.EvtMax = 10

from AthenaCommon.DetFlags      import DetFlags
DetFlags.detdescr.Calo_setOn()
noMuon = True
noID = True
include ('AthenaPoolUtilities/TPCnvTest.py')

# Disable LAr alignment to avoid spurious warnings
# when running in AthSimulation.
svcMgr.GeoModelSvc.AlignCallbacks = False
from IOVDbSvc.CondDB import conddb
conddb.blockFolder ('/LAR/Align')
Example #5
0
from IOVDbSvc.CondDB import conddb

########################################
#These top ones are MC folders (and other random things) and shouldn't have to change much

#use MC TRT RT functions
conddb.blockFolder("/TRT/Calib/RT")
conddb.addFolderWithTag("TRT_OFL",
                        "/TRT/Calib/RT",
                        "TrtCalibRt-MC09_900GeV-REP-Field-00",
                        force=True,
                        forceMC=True)

#use MC MDT RT functions
conddb.blockFolder("/MDT/RT")
conddb.addFolderWithTag("MDT_OFL",
                        "/MDT/RT",
                        "MDTRT_Sim-00",
                        force=True,
                        forceMC=True)
conddb.blockFolder("/MDT/RTBLOB")
conddb.addFolderWithTag("MDT_OFL",
                        "/MDT/RTBLOB",
                        "MDTRT_Sim-00-BLOB",
                        force=True,
                        forceMC=True)

conddb.blockFolder("/PIXEL/HLT/DCS/HV")
conddb.addFolderWithTag("PIXEL_ONL",
                        "/PIXEL/HLT/DCS/HV",
                        "PixDCSHV-UPD1-00",
from IOVDbSvc.CondDB import conddb

conddb.blockFolder("/Indet/PixelDist")
conddb.blockFolder("/LAR/ElecCalibFlat/DAC2uA")
conddb.blockFolder("/LAR/ElecCalibFlat/HVScaleCorr")
conddb.blockFolder("/LAR/ElecCalibFlat/MphysOverMcal")
conddb.blockFolder("/LAR/ElecCalibFlat/Pedestal")
conddb.blockFolder("/LAR/ElecCalibFlat/Ramp")
conddb.blockFolder("/LAR/ElecCalibFlat/uA2MeV")
conddb.blockFolder("/LAR/Identifier/CalibIdMap")
conddb.blockFolder("/LAR/Identifier/FebRodMap")
conddb.blockFolder("/LAR/Identifier/OnOffIdMap")
conddb.blockFolder("/TILE/DCS/HV")
conddb.blockFolder("/TILE/DCS/STATES")
conddb.blockFolder("/LAR/Identifier/LArTTCellMapAtlas")
Example #7
0
                                 UseOldCabling=False,
                                 ForcedUse=False,
                                 doCalStreamInit=True)
else:
    svcMgr += MuonMDT_CablingSvc(name="MuonMDT_CablingSvc",
                                 UseOldCabling=True,
                                 ForcedUse=False,
                                 doCalStreamInit=True)

include("MuonRecExample/MuonRDO_to_PRD_jobOptions.py")

# Options to select tag for T0/RT or to read from SQLite files.
# If reading from SQLite, you must specify the tag used in the SQLite file
if runArgs.dbT0Tag != 'DEFAULT':
    if runArgs.dbT0Sql != 'DEFAULT':
        conddb.blockFolder("/MDT/T0BLOB")
        conddb.addFolder(runArgs.dbT0Sql,
                         "/MDT/T0BLOB <tag>" + runArgs.dbT0Tag + "</tag>",
                         True)
    else:
        conddb.addOverride("/MDT/T0BLOB", runArgs.dbT0Tag)
if runArgs.dbRTTag != 'DEFAULT':
    if runArgs.dbRTSql != 'DEFAULT':
        conddb.blockFolder("/MDT/RTBLOB")
        conddb.addFolder(runArgs.dbRTSql,
                         "/MDT/RTBLOB <tag>" + runArgs.dbRTTag + "</tag>",
                         True)
    else:
        conddb.addOverride("/MDT/RTBLOB", runArgs.dbRTTag)

#  This code disables the ordinary Athena event loop and installs the calibstream event loop
Example #8
0
##PIX####################################################################################
pass
##SCT####################################################################################
pass
##TRT####################################################################################
pass
##LAr####################################################################################
#preopts
#conddb.addFolderWithTag('LAR_OFL','/LAR/BadChannelsOfl/BadChannels','LArBadChannelsOflBadChannels-IOVDEP-00',forceData=True)
#conddb.addFolderWithTag('LAR_OFL','/LAR/BadChannelsOfl/MissingFEBs','LArBadChannelsOflMissingFEBs-IOVDEP-00',forceData=True)
#if not hasattr (ServiceMgr.ToolSvc, 'LArBadChanTool'):
#    from LArBadChannelTool.LArBadChannelToolConf import LArBadChanTool
#    ServiceMgr.ToolSvc += LArBadChanTool()
#    ServiceMgr.ToolSvc.LArBadChanTool.CoolFolder="/LAR/BadChannelsOfl/BadChannels"
#    ServiceMgr.ToolSvc.LArBadChanTool.CoolMissingFEBsFolder="/LAR/BadChannelsOfl/MissingFEBs"
conddb.blockFolder('/LAR/BadChannels/BadChannels')
conddb.addFolderWithTag('LAR_OFL',
                        '/LAR/BadChannels/BadChannels',
                        'LArBadChannelsBadChannels-IOVDEP-01',
                        force=True)
conddb.blockFolder('/LAR/BadChannels/MissingFEBs')
conddb.addFolderWithTag('LAR_OFL',
                        '/LAR/BadChannels/MissingFEBs',
                        'LArBadChannelsMissingFEBs-IOVDEP-01',
                        force=True)
if not hasattr(ServiceMgr.ToolSvc, 'LArBadChanTool'):
    from LArBadChannelTool.LArBadChannelToolConf import LArBadChanTool
    ServiceMgr.ToolSvc += LArBadChanTool()
    ServiceMgr.ToolSvc.LArBadChanTool.CoolFolder = "/LAR/BadChannels/BadChannels"
    ServiceMgr.ToolSvc.LArBadChanTool.CoolMissingFEBsFolder = "/LAR/BadChannels/MissingFEBs"
##Tile####################################################################################
Example #9
0
        fullItemList += ["TBHitPlaneCont#*"]
        fullItemList += ["TBIdentifiedParticle#*"]
        #       fullItemList += [ "TBLArCalibDigitContainer#*" ]
        fullItemList += ["TBLArDigitContainer#*"]
        fullItemList += ["TBMWPCCont#*"]
        fullItemList += ["TBPhase#*"]
        fullItemList += ["TBScintillatorCont#*"]
        fullItemList += ["TBTDC#*"]
        fullItemList += ["TBTailCatcher#*"]
        fullItemList += ["TBTriggerPatternUnit#*"]

    Stream1.ItemList = fullItemList
    Stream1.TakeItemsFromInput = TRUE

# This is a way to block a usage of those folders from "default" Db:
conddb.blockFolder("/CALO/HadCalibration2/CaloEMFrac")
conddb.blockFolder("/CALO/HadCalibration2/H1ClusterCellWeights")
conddb.blockFolder("/CALO/HadCalibration2/CaloOutOfCluster")
conddb.blockFolder("/CALO/HadCalibration2/CaloDMCorr2")
conddb.blockFolder("/CALO/HadCalibration2/CaloOutOfClusterPi0")

if doSim:
    conddb.iovdbsvc.forceRunNumber = RunNumber
conddb.blockFolder("/LAR/LArElecCalibEC04/LArShapeComplete/LArPhysWave")
conddb.blockFolder("/LAR/CellCorrOfl/deadOTX")
print conddb.iovdbsvc.Folders

#print "qqq1> topSequence",topSequence
#print "qqq2> dumpMasterSequence"
#from AthenaCommon.AlgSequence import dumpMasterSequence
#dumpMasterSequence()
Example #10
0
jobproperties.Global.DetDescrVersion = Geometry

from AtlasGeoModel import SetGeometryVersion
from AtlasGeoModel import GeoModelInit

include("CaloDetMgrDetDescrCnv/CaloDetMgrDetDescrCnv_joboptions.py")
include("CaloIdCnv/CaloIdCnv_joboptions.py")
include("TileIdCnv/TileIdCnv_jobOptions.py")
include("LArDetDescr/LArDetDescr_joboptions.py")
include("TileConditions/TileConditions_jobOptions.py")
#include("LArConditionsCommon/LArConditionsCommon_MC_jobOptions.py")

svcMgr.IOVDbSvc.GlobalTag = GlobalTag

from IOVDbSvc.CondDB import conddb
conddb.blockFolder("/LAR/LArCellPositionShift")
conddb.addFolder(
    "", "<dbConnection>" + InputDB + "</dbConnection>" + Folder + "<tag>" +
    FolderTag + "</tag>", True)
#--------------------------------------------------------------
# Private Application Configuration options
#--------------------------------------------------------------
from CaloCondPhysAlgs.CaloCondPhysAlgsConf import CaloCellPosition2Ntuple
theCaloCellPosition2Ntuple = CaloCellPosition2Ntuple("CaloCellPosition2Ntuple")
topSequence += theCaloCellPosition2Ntuple

#--------------------------------------------------------------
#--- Dummy event loop parameters
#--------------------------------------------------------------
svcMgr.EventSelector.RunNumber = RunNumber
svcMgr.EventSelector.EventsPerRun = 1
from IOVDbSvc.CondDB import conddb
conddb.blockFolder("/LAR/BadChannelsOfl/KnownBADFEBs")
conddb.blockFolder("/LAR/BadChannelsOfl/KnownMNBFEBs")
conddb.blockFolder("/SCT/DAQ/Calibration/NPtGainDefects")
conddb.blockFolder("/SCT/DAQ/Calibration/NoiseOccupancyDefects")
conddb.blockFolder("/TRT/Calib/PID")
conddb.blockFolder("/TRT/Calib/PID_RToT")
conddb.blockFolder("/TRT/Calib/PID_RToTver_New")
conddb.blockFolder("/TRT/Calib/PID_vector")
conddb.blockFolder("/TRT/Calib/PIDver_New")
conddb.blockFolder("/TRT/Calib/ToT/ToTValue")
conddb.blockFolder("/TRT/Calib/ToT/ToTVectors")
conddb.blockFolder("/TRT/DCS/HV/BARREL")
conddb.blockFolder("/TRT/DCS/HV/ENDCAPA")
conddb.blockFolder("/TRT/DCS/HV/ENDCAPC")
conddb.blockFolder("/LAR/Identifier/LArTTCellMapAtlas")
Example #12
0
#--------------------------------------------------------------
# SLHC setup
#--------------------------------------------------------------
# set the path variables consistently
from InDetSLHC_Example.SLHC_Setup import SLHC_Setup
SLHC_Setup = SLHC_Setup()

# If /Indet/IBLDist is available, InnerDetector/InDetDetDescr/InDetReadoutGeometry/src/InDetDetectorManager.cxx will try to perform alignment and lead to crash
# InnerDetector/InDetConditions/InDetCondFolders/python/InDetAlignFolders.py configures /Indet/IBLDist
from IOVDbSvc.CondDB import conddb
conddb.blockFolder("/Indet/IBLDist")
Example #13
0
            LArShape2Ntuple = LArShape2Ntuple("LArShape2Ntuple")
            LArShape2Ntuple.ContainerKey = ShapeKey
            topSequence += LArShape2Ntuple

    theApp.HistogramPersistency = "ROOT"
    from GaudiSvc.GaudiSvcConf import NTupleSvc
    if os.path.exists(OutputOFCRootFileDir + "/" + OutputOFCRootFileName):
        os.remove(OutputOFCRootFileDir + "/" + OutputOFCRootFileName)
    svcMgr += NTupleSvc()
    svcMgr.NTupleSvc.Output = [
        "FILE1 DATAFILE='" + OutputOFCRootFileDir + "/" +
        OutputOFCRootFileName + "' OPT='NEW'"
    ]

###########################################################################
conddb.blockFolder("/CALO/Identifier/CaloTTOnAttrIdMapAtlas")
conddb.blockFolder("/CALO/Identifier/CaloTTOnOffIdMapAtlas")
conddb.blockFolder("/CALO/Identifier/CaloTTPpmRxIdMapAtlas")
conddb.blockFolder("/LAR/Identifier/LArTTCellMapAtlas")
###########################################################################

svcMgr.MessageSvc.OutputLevel = DEBUG
svcMgr.MessageSvc.defaultLimit = 10000
svcMgr.MessageSvc.Format = "% F%20W%S%7W%R%T %0W%M"

svcMgr += CfgMgr.AthenaEventLoopMgr(OutputLevel=WARNING)

from AthenaCommon.AppMgr import theAuditorSvc
from AthenaCommon.ConfigurableDb import getConfigurable
theAuditorSvc += getConfigurable("MemStatAuditor")(OutputLevel=WARNING)
theAuditorSvc += getConfigurable("ChronoAuditor")()
Example #14
0
#Useful for loading in LAr MC folders, needed when running digitization with data conditions

from IOVDbSvc.CondDB import conddb

conddb.blockFolder("/LAR/ElecCalibMC/AutoCorr")
conddb.addFolderWithTag("LAR_OFL",
                        "/LAR/ElecCalibMC/AutoCorr",
                        "LARElecCalibMCAutoCorr-CSC02-I2",
                        force=True,
                        forceMC=True)
conddb.blockFolder("/LAR/ElecCalibMC/DAC2uA")
conddb.addFolderWithTag("LAR_OFL",
                        "/LAR/ElecCalibMC/DAC2uA",
                        "LARElecCalibMCDAC2uA-CSC02-J",
                        force=True,
                        forceMC=True)
conddb.blockFolder("/LAR/ElecCalibMC/MinBias")
conddb.addFolderWithTag("LAR_OFL",
                        "/LAR/ElecCalibMC/MinBias",
                        "LARElecCalibMCMinBias-CSC02-E",
                        force=True,
                        forceMC=True)
conddb.blockFolder("/LAR/ElecCalibMC/MinBiasAverage")
conddb.addFolderWithTag("LAR_OFL",
                        "/LAR/ElecCalibMC/MinBiasAverage",
                        "LARElecCalibMCMinBiasAverage-CSC02-I",
                        force=True,
                        forceMC=True)
conddb.blockFolder("/LAR/ElecCalibMC/MphysOverMcal")
conddb.addFolderWithTag("LAR_OFL",
                        "/LAR/ElecCalibMC/MphysOverMcal",
from IOVDbSvc.CondDB import conddb
conddb.blockFolder("/Indet/PixelDist")
conddb.blockFolder("/Indet/TrkErrorScaling")
conddb.blockFolder("/LAR/ElecCalibFlat/HVScaleCorr")
conddb.blockFolder("/LAR/Identifier/CalibIdMap")
conddb.blockFolder("/LAR/Identifier/FebRodMap")
conddb.blockFolder("/LAR/Identifier/OnOffIdMap")
conddb.blockFolder("/LAR/Identifier/LArTTCellMapAtlas")
conddb.blockFolder("/MUONALIGN/ERRS")
conddb.blockFolder("/PIXEL/CablingMap")
conddb.blockFolder("/PIXEL/PixReco")
conddb.blockFolder("/PIXEL/PixdEdx")
conddb.blockFolder("/PIXEL/PixCalib")
conddb.blockFolder("/PIXEL/PixelClustering/PixelClusNNCalib")
conddb.blockFolder("/TRT/Calib/HTCalib")
conddb.blockFolder("/TRT/Calib/PID")
conddb.blockFolder("/TRT/Calib/PID_RToT")
conddb.blockFolder("/TRT/Calib/PID_RToTver_New")
conddb.blockFolder("/TRT/Calib/PID_vector")
conddb.blockFolder("/TRT/Calib/PIDver_New")
conddb.blockFolder("/TRT/Calib/RT")
conddb.blockFolder("/TRT/Calib/T0")
conddb.blockFolder("/TRT/Calib/ToT/ToTValue")
conddb.blockFolder("/TRT/Calib/ToT/ToTVectors")
conddb.blockFolder("/TRT/Calib/ToTCalib")
conddb.blockFolder("/TRT/Calib/errors2d")
conddb.blockFolder("/TRT/Calib/slopes")
Example #16
0
from TRT_ConditionsServices.TRT_ConditionsServicesConf import TRT_StrawStatusSummarySvc
InDetTRTStrawStatusSummarySvc = TRT_StrawStatusSummarySvc(
    name="InDetTRTStrawStatusSummarySvc")
ServiceMgr += InDetTRTStrawStatusSummarySvc
print InDetTRTStrawStatusSummarySvc
InDetTRTConditionsServices.append(InDetTRTStrawStatusSummarySvc)

# TRT Conditions Summary Service
from TRT_ConditionsServices.TRT_ConditionsServicesConf import TRT_ConditionsSummarySvc
InDetTRTConditionsSummaryService = TRT_ConditionsSummarySvc(
    name="InDetTRTConditionsSummaryService",
    ServiceList=InDetTRTConditionsServices)
ServiceMgr += InDetTRTConditionsSummaryService
print InDetTRTConditionsSummaryService

from TRT_ConditionsAlgs.TRT_ConditionsAlgsConf import TRTStrawStatusWrite
TSW = TRTStrawStatusWrite(name="TSW")
TSW.StrawStatusTool = InDetTRTStrawStatusSummarySvc
TSW.StatusInputFileHT = ""
topSequence += TSW

theApp.EvtMax = 1

conddb.blockFolder("/TRT/Cond/StatusHT")
conddb.addFolder(
    "",
    "<dbConnection>sqlite://;schema=TRT_Cond_StatusHT.db;dbname=OFLP200</dbConnection>/TRT/Cond/StatusHT<tag>TrtStrawStatusHT-MC-run2-scenario5_00-03</tag>",
    force=True)
# or in case you have a sqLite file
#conddb.addFolder("","<dbConnection>sqlite://;schema=mycool.db;dbname=CONDBR2</dbConnection>/TRT/Cond/StatusHT<tag>TrtStrawStatusHT-MC-run2-scenario5_00-03</tag>",force=True)
Example #17
0
#--------------------------------------------------------------
printfunc('MATTHIAS testing 3')
include("InDetIBL_Example/InDetIBLRecoPostInclude.py")

#if (hasattr(InDetFlags,"doPixelClusterSplitting")) :
# InDetFlags.doPixelClusterSplitting.set_Value_and_Lock( False )

#include("InDetIBL_Example/jobOptions_tracking_IBL_trf.py")

printfunc('MATTHIAS testing 4')

if loadInDetRec_Options["siPoolFile"]:
    include("DetDescrCondAthenaPool/DetDescrCondAthenaPool_joboptions.py")
    from IOVDbSvc.CondDB import conddb
    # block folders that you want to override
    conddb.blockFolder("/Indet/Align")
    conddb.blockFolder("/TRT/Align")
    from EventSelectorAthenaPool.EventSelectorAthenaPoolConf import CondProxyProvider
    from AthenaCommon.AppMgr import ServiceMgr
    ServiceMgr += CondProxyProvider()
    ServiceMgr.ProxyProviderSvc.ProviderNames += ["CondProxyProvider"]
    printfunc('Loading initial alignment File')
    ServiceMgr.CondProxyProvider.InputCollections = [
        loadInDetRec_Options["siPoolFile"]
    ]
    ServiceMgr.CondProxyProvider.OutputLevel = INFO
    printfunc(ServiceMgr.CondProxyProvider)
    IOVSvc = Service("IOVSvc")
    IOVSvc.preLoadData = True

else:
Example #18
0
from IOVDbSvc.CondDB import conddb

########################################
#These top ones are MC folders (and other random things) and shouldn't have to change much

#use MC TRT RT functions
conddb.blockFolder("/TRT/Calib/RT")
conddb.addFolderWithTag("TRT_OFL",
                        "/TRT/Calib/RT",
                        "TrtCalibRt-MCnewDigi_ToTon_7TeV_00-00",
                        force=True,
                        forceMC=True)

#use MC MDT RT functions
#conddb.blockFolder("/MDT/RT")
#conddb.addFolderWithTag("MDT_OFL","/MDT/RT","MDTRT_Sim-00",force=True,forceMC=True)
#conddb.blockFolder("/MDT/RTBLOB")
#conddb.addFolderWithTag("MDT_OFL","/MDT/RTBLOB","MDTRT_Sim-00-BLOB",force=True,forceMC=True)

conddb.blockFolder("/PIXEL/HLT/DCS/HV")
conddb.addFolderWithTag("PIXEL_ONL",
                        "/PIXEL/HLT/DCS/HV",
                        "PixDCSHV-UPD1-00",
                        force=True,
                        forceData=True)
conddb.blockFolder("/PIXEL/HLT/DCS/TEMPERATURE")
conddb.addFolderWithTag("PIXEL_ONL",
                        "/PIXEL/HLT/DCS/TEMPERATURE",
                        "PixDCSTemp-UPD1-00",
                        force=True,
                        forceData=True)
Example #19
0
ToolSvc += alignModuleTool
print alignModuleTool

################################
#
# include geometry setup
#
include("InDetAlignExample/NewInDetAlignGeometrySetup.py")

################################
# Read in constants from Pool file
if newInDetAlignAlg_Options["readConstantsFromPool"]:
    from IOVDbSvc.CondDB import conddb

    if newInDetAlignAlg_Options["readSilicon"]:
        conddb.blockFolder("/Indet/Align")

    if newInDetAlignAlg_Options["readTRT"]:
        conddb.blockFolder("/TRT/Align")

    if newInDetAlignAlg_Options["readTRTL3"]:
        conddb.blockFolder("/TRT/Calib/DX")

    from EventSelectorAthenaPool.EventSelectorAthenaPoolConf import CondProxyProvider
    from AthenaCommon.AppMgr import ServiceMgr
    ServiceMgr += CondProxyProvider()
    ServiceMgr.ProxyProviderSvc.ProviderNames += ["CondProxyProvider"]
    # set this to the file containing AlignableTransform objects
    ServiceMgr.CondProxyProvider.InputCollections += newInDetAlignAlg_Options[
        "inputPoolFiles"]
    ServiceMgr.CondProxyProvider.OutputLevel = DEBUG
Example #20
0
regSvc.OverrideNames += [ "SpecialPixelMap" ]
regSvc.OverrideTypes += [ "Blob16M" ]

regSvc.PayloadTable = True

theApp.CreateSvc += [ ServiceMgr.IOVRegistrationSvc.getFullName() ]

### configure the event selector

from GaudiSvc.GaudiSvcConf import EventSelector

ServiceMgr += EventSelector()

EventSelector.RunNumber         = 1
EventSelector.EventsPerRun      = 5
EventSelector.FirstEvent        = 1
EventSelector.InitialTimeStamp  = 0
EventSelector.TimeStampInterval = 5
theApp.EvtMax                   = 1


### configure the message service
# Set output level threshold (1=VERBOSE, 2=DEBUG, 3=INFO, 4=WARNING, 5=ERROR, 6=FATAL )

MessageSvc.OutputLevel      = 2
MessageSvc.debugLimit       = 100000
MessageSvc.infoLimit        = 10000
MessageSvc.errorLimit       = 1000

conddb.blockFolder('/Indet/Align')
Example #21
0
    '/LAR/ElecCalibMC/Ramp',
    '/LAR/ElecCalibMC/Shape',
    '/LAR/ElecCalibMC/fSampl',
    '/LAR/ElecCalibMC/uA2MeV',
    '/LAR/Identifier/FebRodAtlas',
    '/LAR/Identifier/LArTTCellMapAtlas',
    '/LAR/Identifier/OnOffIdAtlas',
    '/MDT/DCS/DROPPEDCH',
    '/MDT/DCS/PSLVCHSTATE',
    '/PIXEL/PixdEdx',
    '/TILE/OFL02/NOISE/AUTOCR',
    '/TILE/OFL02/PULSESHAPE/PHY',
    '/TILE/ONL01/FILTER/OF2/PHY',
    '/TILE/ONL01/NOISE/OFNI',
    '/TRT/Calib/HTCalib',
    '/TRT/Calib/PID',
    '/TRT/Calib/PID_RToT',
    '/TRT/Calib/PID_RToTver_New',
    '/TRT/Calib/PIDver_New',
    '/TRT/Calib/ToTCalib',
    '/TRT/Cond/Status',
    '/TRT/Cond/StatusPermanent',
    '/CALO/H1Weights/H1WeightsKt4Topo',
    '/Indet/PixelDist',
]
from IOVDbSvc.CondDB import conddb
for f in blocked_folders:
    conddb.blockFolder(f)

include("RecExCommon/RecExCommon_topOptions.py")
Example #22
0
    def __init__(self, name='AtlasTrackingGeometrySvc'):

        if TrkDetFlags.ConfigurationOutputLevel() < 3:
            print('[ Configuration : start ] *** ' + name +
                  ' ********************************')
            print('[ TrackingGeometrySvc ]')

        from AthenaCommon.AppMgr import ToolSvc

        #################################################################################
        # The Geometry Builder
        #################################################################################

        # the name to register the Geometry
        AtlasTrackingGeometryName = 'AtlasTrackingGeometry'

        # the geometry builder alg tool
        from TrkDetDescrTools.TrkDetDescrToolsConf import Trk__GeometryBuilder
        AtlasGeometryBuilder = Trk__GeometryBuilder(
            name='AtlasGeometryBuilder')
        # switch the building outputlevel on
        AtlasGeometryBuilder.OutputLevel = TrkDetFlags.ConfigurationOutputLevel(
        )

        # the envelope definition service
        from AthenaCommon.CfgGetter import getPrivateTool,getPrivateToolClone,getPublicTool,getPublicToolClone,\
           getService,getServiceClone,getAlgorithm,getAlgorithmClone
        AtlasEnvelopeSvc = getService('AtlasGeometry_EnvelopeDefSvc')

        # (ID)
        if DetFlags.ID_on():
            # get hand on the ID Tracking Geometry Builder
            if TrkDetFlags.ISF_FatrasCustomGeometry():
                if hasattr(ToolSvc,
                           TrkDetFlags.ISF_FatrasCustomGeometryBuilderName()):
                    InDetTrackingGeometryBuilder = getattr(
                        ToolSvc,
                        TrkDetFlags.ISF_FatrasCustomGeometryBuilderName())
            elif TrkDetFlags.XMLFastCustomGeometry():
                if hasattr(ToolSvc,
                           TrkDetFlags.InDetTrackingGeometryBuilderName()):
                    InDetTrackingGeometryBuilder = getattr(
                        ToolSvc,
                        TrkDetFlags.InDetTrackingGeometryBuilderName())
            else:
                if not TrkDetFlags.SLHC_Geometry(
                ) and not TrkDetFlags.InDetStagedGeometryBuilder():
                    from InDetTrackingGeometry.ConfiguredInDetTrackingGeometryBuilder import ConfiguredInDetTrackingGeometryBuilder as IDGeometryBuilder
                elif not TrkDetFlags.SLHC_Geometry():
                    from InDetTrackingGeometry.ConfiguredStagedTrackingGeometryBuilder import ConfiguredStagedTrackingGeometryBuilder as IDGeometryBuilder
                else:
                    from InDetTrackingGeometry.ConfiguredSLHC_InDetTrackingGeometryBuilder import ConfiguredSLHC_InDetTrackingGeometryBuilder as IDGeometryBuilder
                InDetTrackingGeometryBuilder = IDGeometryBuilder(
                    name='InDetTrackingGeometryBuilder')

            InDetTrackingGeometryBuilder.EnvelopeDefinitionSvc = AtlasEnvelopeSvc
            InDetTrackingGeometryBuilder.OutputLevel = TrkDetFlags.InDetBuildingOutputLevel(
            )
            # and give it to the Geometry Builder
            AtlasGeometryBuilder.InDetTrackingGeometryBuilder = InDetTrackingGeometryBuilder
            #
        # (Calo)
        if DetFlags.Calo_on():
            from TrkDetDescrTools.TrkDetDescrToolsConf import Trk__CylinderVolumeCreator
            CaloVolumeCreator = Trk__CylinderVolumeCreator("CaloVolumeCreator")
            CaloVolumeCreator.OutputLevel = TrkDetFlags.CaloBuildingOutputLevel(
            )
            ToolSvc += CaloVolumeCreator

            from CaloTrackingGeometry.ConfiguredCaloTrackingGeometryBuilder import ConfiguredCaloTrackingGeometryBuilder as ConfiguredCaloGeo
            CaloTrackingGeometryBuilder = ConfiguredCaloGeo(
                name='CaloTrackingGeometryBuilder')
            CaloTrackingGeometryBuilder.TrackingVolumeCreator = CaloVolumeCreator
            CaloTrackingGeometryBuilder.EnvelopeDefinitionSvc = AtlasEnvelopeSvc
            CaloTrackingGeometryBuilder.OutputLevel = TrkDetFlags.CaloBuildingOutputLevel(
            )
            CaloTrackingGeometryBuilder.GeometryName = 'Calo'
            # and give it to the Geometry Builder
            AtlasGeometryBuilder.CaloTrackingGeometryBuilder = CaloTrackingGeometryBuilder

        # (Muon)
        if DetFlags.Muon_on():
            from MuonTrackingGeometry.ConfiguredMuonTrackingGeometry import MuonTrackingGeometryBuilder
            MuonTrackingGeometryBuilder.EnvelopeDefinitionSvc = AtlasEnvelopeSvc
            # and give it to the Geometry Builder
            AtlasGeometryBuilder.MuonTrackingGeometryBuilder = MuonTrackingGeometryBuilder

        # processors
        AtlasGeometryProcessors = []

        # check whether the material retrieval is ment to be from COOL
        if TrkDetFlags.MaterialSource() is 'COOL':
            # the material provider
            from TrkDetDescrTools.TrkDetDescrToolsConf import Trk__LayerMaterialProvider as LayerMaterialProvider
            AtlasMaterialProvider = LayerMaterialProvider(
                'AtlasMaterialProvider')
            AtlasMaterialProvider.OutputLevel = TrkDetFlags.ConfigurationOutputLevel(
            )
            AtlasMaterialProvider.LayerMaterialMapName = TrkDetFlags.MaterialStoreGateKey(
            )

            AtlasGeometryProcessors += [AtlasMaterialProvider]

            # the tag names
            CoolDataBaseFolder = TrkDetFlags.MaterialStoreGateKey()
            AtlasMaterialTag = TrkDetFlags.MaterialTagBase() + str(
                TrkDetFlags.MaterialVersion(
                )) + TrkDetFlags.MaterialSubVersion() + '_'

            if TrkDetFlags.ConfigurationOutputLevel() < 3:
                print('[ TrackingGeometrySvc ] Associating DB folder : ',
                      CoolDataBaseFolder)

            # we need the conditions interface
            from IOVDbSvc.CondDB import conddb
            # use a local database
            if TrkDetFlags.MaterialDatabaseLocal():
                # specify the local database
                DataBasePath = TrkDetFlags.MaterialDatabaseLocalPath()
                DataBaseName = TrkDetFlags.MaterialDatabaseLocalName()
                MagicTag = TrkDetFlags.MaterialMagicTag()
                DataBaseConnection = '<dbConnection>sqlite://X;schema=' + DataBasePath + DataBaseName + ';dbname=OFLP200</dbConnection>'
                conddb.blockFolder('/GLOBAL/TrackingGeo/LayerMaterialV2')
                conddb.addFolderWithTag('',
                                        DataBaseConnection +
                                        CoolDataBaseFolder,
                                        AtlasMaterialTag + MagicTag,
                                        force=True)
                if TrkDetFlags.ConfigurationOutputLevel() < 3:
                    print('[ TrackingGeometrySvc ] Using Local Database: ' +
                          DataBaseConnection)
                # make sure that the pool files are in the catalog
            elif TrkDetFlags.SLHC_Geometry():
                # set the folder to the SLHC location
                CoolDataBaseFolder = '/GLOBAL/TrackingGeo/LayerMaterialITK'
                ctag = AtlasMaterialTag + TrkDetFlags.MaterialMagicTag()
                cfoldertag = CoolDataBaseFolder + ' <tag>' + ctag + '</tag>'
                conddb.addFolderSplitMC('GLOBAL', cfoldertag, cfoldertag)
            else:
                print('[ TrackingGeometrySvc ]     base material tag : ',
                      AtlasMaterialTag)
                cfolder = CoolDataBaseFolder + '<tag>TagInfoMajor/' + AtlasMaterialTag + '/GeoAtlas</tag>'
                print('[ TrackingGeometrySvc ]     translated to COOL: ',
                      cfolder)
                # load the right folders (preparation for calo inclusion)
                conddb.addFolderSplitMC('GLOBAL', cfolder, cfolder)

        elif TrkDetFlags.MaterialSource() is 'Input':
            # the material provider
            from TrkDetDescrTools.TrkDetDescrToolsConf import Trk__InputLayerMaterialProvider
            AtlasMaterialProvider = Trk__InputLayerMaterialProvider(
                'AtlasMaterialProvider')
            AtlasMaterialProvider.OutputLevel = TrkDetFlags.ConfigurationOutputLevel(
            )
            AtlasGeometryProcessors += [AtlasMaterialProvider]

        # material validation
        if TrkDetFlags.MaterialValidation():
            # load the material inspector
            from TrkDetDescrTestTools.TrkDetDescrTestToolsConf import Trk__LayerMaterialInspector
            AtlasLayerMaterialInspector = Trk__LayerMaterialInspector(
                'AtlasLayerMaterialInspector')
            AtlasLayerMaterialInspector.OutputLevel = TrkDetFlags.ConfigurationOutputLevel(
            )

            AtlasGeometryProcessors += [AtlasLayerMaterialInspector]

        # call the base class constructor : sets the tools
        Trk__TrackingGeometrySvc.__init__(self,name,\
                                          GeometryBuilder = AtlasGeometryBuilder,\
                                          TrackingGeometryName = AtlasTrackingGeometryName,\
                                          GeometryProcessors = AtlasGeometryProcessors, \
                                          BuildGeometryFromTagInfo = True,\
                                          OutputLevel = TrkDetFlags.ConfigurationOutputLevel())

        # screen output of the configuration
        if TrkDetFlags.ConfigurationOutputLevel() < 3:
            print(self)
            print('* [ GeometryBuilder       ]')
            print(AtlasGeometryBuilder)
            print('* [ Configuration : end   ] ***' + name +
                  '********************************')
Example #23
0
from IOVDbSvc.CondDB import conddb
from AthenaCommon.DetFlags import DetFlags
from RecExConfig.RecAlgsFlags import recAlgs
########################################

#use MC MDT RT functions
#conddb.blockFolder("/MDT/RT")
#conddb.addFolderWithTag("MDT_OFL","/MDT/RT","MDTRT_Sim-04",force=True,forceMC=True)
#conddb.blockFolder("/MDT/RTBLOB")
#conddb.addFolderWithTag("MDT_OFL","/MDT/RTBLOB","MDTRT_Sim-04-BLOB",force=True,forceMC=True)

#from Guillaume
conddb.addOverride("/LAR/ElecCalibOfl/Shape/RTM/5samples1phase",
                   "LARElecCalibOflShapeRTM5samples1phase-UPD1-04")

conddb.blockFolder("/PIXEL/ReadoutSpeed")
conddb.addFolderSplitMC("PIXEL",
                        "/PIXEL/ReadoutSpeed",
                        "/PIXEL/ReadoutSpeed",
                        force=True)

conddb.blockFolder("/TRT/Cond/DigVers")
conddb.addFolderWithTag("TRT_OFL",
                        "/TRT/Cond/DigVers",
                        "TRTCondDigVers-Collisions-01",
                        force=True,
                        forceMC=True)

###################################################
printfunc("RT OVERRIDE, for CONDBR2-BLKPA-2015-12")
#See https://atlas-tagservices.cern.ch/tagservices/RunBrowser/runBrowserReport/rBR_CB_Report.php?CBAction=GlobalTagReport&cbgt=CONDBR2-BLKPA-2015-15#INDET
Example #24
0
from IOVDbSvc.CondDB import conddb
conddb.blockFolder("/MDT/RTBLOB")
conddb.blockFolder("/MDT/T0BLOB")
conddb.blockFolder("/PIXEL/PixdEdx")
conddb.blockFolder("/SCT/DAQ/Calibration/NPtGainDefects")
conddb.blockFolder("/SCT/DAQ/Calibration/NoiseOccupancyDefects")
conddb.blockFolder("/SCT/DAQ/Config/Chip")
conddb.blockFolder("/SCT/DAQ/Config/MUR")
conddb.blockFolder("/SCT/DAQ/Config/Module")
conddb.blockFolder("/SCT/Derived/Monitoring")
conddb.blockFolder("/TRT/Calib/PID")
conddb.blockFolder("/TRT/Calib/PID_RToT")
conddb.blockFolder("/TRT/Calib/PID_RToTver_New")
conddb.blockFolder("/TRT/Calib/PID_vector")
conddb.blockFolder("/TRT/Calib/PIDver_New")
conddb.blockFolder("/TRT/Calib/ToT/ToTValue")
conddb.blockFolder("/TRT/Calib/ToT/ToTVectors")
conddb.blockFolder("/LAR/ElecCalibMC/MinBiasAverage")
conddb.blockFolder("/LAR/Identifier/LArTTCellMapAtlas")
Example #25
0
# Tracking specifications ####################################
from TrkDetDescrSvc.TrkDetDescrJobProperties import TrkDetFlags
# now say where the file is
TrkDetFlags.MaterialStoreGateKey = '/GLOBAL/TrackingGeo/BinnedLayerMaterial'
TrkDetFlags.MaterialDatabaseLocalPath = ''
TrkDetFlags.MaterialDatabaseLocalName = 'AtlasLayerMaterial-' + DetDescrVersion + '.db'
TrkDetFlags.MaterialMagicTag = InputMagicTag
print TrkDetFlags

# we need the conditions interface
from IOVDbSvc.CondDB import conddb
# specify the local database
DataBasePath = TrkDetFlags.MaterialDatabaseLocalPath()
DataBaseName = TrkDetFlags.MaterialDatabaseLocalName()
DataBaseConnection = '<dbConnection>sqlite://X;schema=' + DataBasePath + DataBaseName + ';dbname=OFLP200</dbConnection>'
conddb.blockFolder('/GLOBAL/TrackingGeo/LayerMaterialV2')
conddb.addFolderWithTag('',
                        DataBaseConnection +
                        TrkDetFlags.MaterialStoreGateKey(),
                        TrkDetFlags.MaterialMagicTag(),
                        force=True)

# Number of events to be processed
theApp.EvtMax = 1

# Full job is a list of algorithms
from AthenaCommon.AlgSequence import AlgSequence
job = AlgSequence()

# create the Material Converter - just switch the creator for different results
from TrkDetDescrTools.TrkDetDescrToolsConf import Trk__CompressedLayerMaterialCreator as LmCreator
from IOVDbSvc.CondDB import conddb
conddb.blockFolder("/LAR/Configuration/FEBConfig/Physics/EMBA1")
conddb.blockFolder("/LAR/Configuration/FEBConfig/Physics/EMBA2")
conddb.blockFolder("/LAR/Configuration/FEBConfig/Physics/EMBA3")
conddb.blockFolder("/LAR/Configuration/FEBConfig/Physics/EMBA4")
conddb.blockFolder("/LAR/Configuration/FEBConfig/Physics/EMBC1")
conddb.blockFolder("/LAR/Configuration/FEBConfig/Physics/EMBC2")
conddb.blockFolder("/LAR/Configuration/FEBConfig/Physics/EMBC3")
conddb.blockFolder("/LAR/Configuration/FEBConfig/Physics/EMBC4")
conddb.blockFolder("/LAR/Configuration/FEBConfig/Physics/EMECA1")
conddb.blockFolder("/LAR/Configuration/FEBConfig/Physics/EMECA2")
conddb.blockFolder("/LAR/Configuration/FEBConfig/Physics/EMECA3")
conddb.blockFolder("/LAR/Configuration/FEBConfig/Physics/EMECC1")
conddb.blockFolder("/LAR/Configuration/FEBConfig/Physics/EMECC2")
conddb.blockFolder("/LAR/Configuration/FEBConfig/Physics/EMECC3")
conddb.blockFolder("/LAR/Configuration/FEBConfig/Physics/FCALA")
conddb.blockFolder("/LAR/Configuration/FEBConfig/Physics/FCALC")
conddb.blockFolder("/LAR/Configuration/FEBConfig/Physics/HECA")
conddb.blockFolder("/LAR/Configuration/FEBConfig/Physics/HECC")
conddb.blockFolder("/LAR/ElecCalibFlat/DAC2uA")
conddb.blockFolder("/LAR/ElecCalibFlat/HVScaleCorr")
conddb.blockFolder("/LAR/ElecCalibFlat/MphysOverMcal")
conddb.blockFolder("/LAR/ElecCalibFlat/Pedestal")
conddb.blockFolder("/LAR/ElecCalibFlat/Ramp")
conddb.blockFolder("/LAR/ElecCalibFlat/uA2MeV")
conddb.blockFolder("/TILE/DCS/HV")
conddb.blockFolder("/TILE/DCS/STATES")
conddb.blockFolder("/TRT/Calib/PID")
conddb.blockFolder("/TRT/Calib/PID_RToT")
conddb.blockFolder("/CALO/Identifier/CaloTTOnAttrIdMapAtlas")
conddb.blockFolder("/CALO/Identifier/CaloTTOnOffIdMapAtlas")
Example #27
0
from IOVDbSvc.CondDB import conddb
from AthenaCommon.DetFlags import DetFlags
from RecExConfig.RecAlgsFlags import recAlgs
########################################

#use MC MDT RT functions
#conddb.blockFolder("/MDT/RT")
#conddb.addFolderWithTag("MDT_OFL","/MDT/RT","MDTRT_Sim-04",force=True,forceMC=True)
conddb.blockFolder("/MDT/RTBLOB")
conddb.addFolderWithTag("MDT_OFL",
                        "/MDT/RTBLOB",
                        "MDTRT_Sim-04-BLOB",
                        force=True,
                        forceMC=True)

#from Guillaume
conddb.blockFolder("/LAR/LArCellPositionShift")
conddb.addFolderWithTag("LAR_OFL",
                        "/LAR/LArCellPositionShift",
                        "LArCellPositionShift-ideal",
                        force=True,
                        forceMC=True)
conddb.addOverride("/LAR/ElecCalibOfl/Shape/RTM/4samples1phase",
                   "LARElecCalibOflShapeRTM4samples1phase-RUN2-UPD4-00")
conddb.addOverride("/LAR/ElecCalibOfl/OFC/PhysWave/RTM/4samples1phase",
                   "LARElecCalibOflOFCPhysWaveRTM4samples1phase-RUN2-UPD4-00")
svcMgr.PoolSvc.ReadCatalog += [
    "xmlcatalog_file:" +
    "/cvmfs/atlas-condb.cern.ch/repo/conditions/poolcond/PoolFileCatalog.xml"
]
Example #28
0
from IOVDbSvc.CondDB import conddb;
conddb.blockFolder("/Indet/PixelDist"); 
conddb.blockFolder("/Indet/TrkErrorScaling"); 
conddb.blockFolder("/LAR/BadChannels/BadChannels"); 
conddb.blockFolder("/LAR/BadChannels/MissingFEBs"); 
conddb.blockFolder("/LAR/Identifier/CalibIdMap"); 
conddb.blockFolder("/LAR/Identifier/FebRodMap"); 
conddb.blockFolder("/LAR/Identifier/OnOffIdMap");
conddb.blockFolder("/MUONALIGN/ERRS"); 
conddb.blockFolder("/PIXEL/HitDiscCnfg");
conddb.blockFolder("/PIXEL/PixCalib"); 
conddb.blockFolder("/PIXEL/PixReco"); 
conddb.blockFolder("/PIXEL/PixdEdx"); 
conddb.blockFolder("/PIXEL/PixelClustering/PixelClusNNCalib"); 
conddb.blockFolder("/PIXEL/ReadoutSpeed"); 
conddb.blockFolder("/TRT/Calib/HTCalib"); 
conddb.blockFolder("/TRT/Calib/PID"); 
conddb.blockFolder("/TRT/Calib/PID_RToT"); 
conddb.blockFolder("/TRT/Calib/PID_RToTver_New");
conddb.blockFolder("/TRT/Calib/PID_vector"); 
conddb.blockFolder("/TRT/Calib/PIDver_New");
conddb.blockFolder("/TRT/Calib/RT"); 
conddb.blockFolder("/TRT/Calib/T0"); 
conddb.blockFolder("/TRT/Calib/ToT/ToTValue"); 
conddb.blockFolder("/TRT/Calib/ToT/ToTVectors"); 
conddb.blockFolder("/TRT/Calib/ToTCalib"); 
conddb.blockFolder("/TRT/Calib/errors2d"); 
conddb.blockFolder("/TRT/Calib/slopes"); 
conddb.blockFolder("/LAR/ElecCalibMC/AutoCorr"); 
conddb.blockFolder("/LAR/ElecCalibMC/DAC2uA"); 
conddb.blockFolder("/LAR/ElecCalibMC/HVScaleCorr"); 
MuonDetectorTool.EnableFineClashFixing = 0  #this should be on for g4?
#print MuonDetectorTool
#print GeoModelSvc
#print ToolSvc

#Now use MC T0 for TRT during overlay digi, but MC or data T0/Rt during reco, depending on where digit came from... so this stuff is just for reco:
#conddb.blockFolder("/TRT/Calib/MCRT")
#conddb.addFolder("","<dbConnection>sqlite://;schema=mycool.db;dbname=OFLP200</dbConnection> /TRT/Calib/MCRT" + "<tag> TrtCalibMCRt-13TeV_ArgonScenario1_00-00 </tag>" , force=True)
#conddb.blockFolder("/TRT/Calib/MCT0")
#conddb.addFolder("","<dbConnection>sqlite://;schema=mycool.db;dbname=OFLP200</dbConnection> /TRT/Calib/MCT0" + "<tag> TrtCalibMCT0-13TeV_ArgonScenario1_00-00 </tag>" , force=True)
#conddb.blockFolder("/TRT/Calib/MCRT")
#conddb.addFolder("","<dbConnection>sqlite://;schema=mycool.db;dbname=OFLP200</dbConnection>/TRT/Calib/MCRT" + "<tag> TrtCalibMCRt-13TeV_ArgonScenario1_00-00</tag>" , force=True)
#conddb.blockFolder("/TRT/Calib/MCT0")
#conddb.addFolder("","<dbConnection>sqlite://;schema=mycool.db;dbname=OFLP200</dbConnection>/TRT/Calib/MCT0" + "<tag> TrtCalibMCT0-13TeV_ArgonScenario1_00-00</tag>" , force=True)
conddb.blockFolder("/TRT/Calib/MC/RT")
conddb.addFolderWithTag("TRT_OFL",
                        "/TRT/Calib/MC/RT",
                        "TrtCalibRt-R2-MC-run2-scenario1_03-00",
                        force=True,
                        forceData=True)
conddb.addMarkup("/TRT/Calib/MC/RT", "<forceRunNumber>295000</forceRunNumber>")
conddb.blockFolder("/TRT/Calib/MC/T0")
conddb.addFolderWithTag("TRT_OFL",
                        "/TRT/Calib/MC/T0",
                        "TrtCalibT0-R2-MC-run2-scenario1_03-00",
                        force=True,
                        forceData=True)
conddb.addMarkup("/TRT/Calib/MC/T0", "<forceRunNumber>295000</forceRunNumber>")
#conddb.blockFolder("/TRT/Calib/MCerrors2d")
#conddb.addFolder("","<dbConnection>sqlite://;schema=mycool.db;dbname=OFLP200</dbConnection> /TRT/Calib/MCerrors2d" + "<tag> TrtCalibMCErrors2d-IOVdep-2Dfit-00-00 </tag>" , force=True)
from IOVDbSvc.CondDB import conddb

conddb.blockFolder("/TRT/Calib/PID")
conddb.blockFolder("/TRT/Calib/PID_RToT")
conddb.blockFolder("/CALO/Ofl/Identifier/CaloTTOnAttrIdMapAtlas")
conddb.blockFolder("/CALO/Ofl/Identifier/CaloTTOnOffIdMapAtlas")
conddb.blockFolder("/CALO/Ofl/Identifier/CaloTTPpmRxIdMapAtlas")
conddb.blockFolder("/LAR/ElecCalibMC/MinBiasAverage")
conddb.blockFolder("/LAR/ElecCalibMC/Pedestal")
conddb.blockFolder("/LAR/Identifier/LArTTCellMapAtlas")