コード例 #1
0
ファイル: test.py プロジェクト: rushioda/PIXELVALID_athena
DetFlags.detdescr.Tile_setOff()
DetFlags.detdescr.Muon_setOn()

# Select geometry version
DetDescrVersion = "ATLAS-CSC-01-02-00"
from AthenaCommon.JobProperties import jobproperties
jobproperties.Global.DetDescrVersion = DetDescrVersion

from AtlasGeoModel import SetGeometryVersion
from AtlasGeoModel import GeoModelInit
######################################################################## end setup GeoModel

from MuonGeoModel.MuonGeoModelConf import MuonDetectorTool
MuonDetectorTool = MuonDetectorTool()
MuonDetectorTool.UseConditionDb = 0
MuonDetectorTool.OutputLevel = INFO
MuonDetectorTool.CachingFlag = 1  # default is 1
MuonDetectorTool.FillCacheInitTime = 1  # default is 0
#MuonDetectorTool.StationSelection  = 0 # default is 0
#MuonDetectorTool.SelectedStations  = [ "EIL", "T", "CSS", "BMS" ] # irrelevant if stationselection is 0
#MuonDetectorTool.ControlAlines     = GeneralControlAlines         # default is 111111

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

theApp.EvtMax = 10

import AthenaPoolCnvSvc.ReadAthenaPool
ServiceMgr.EventSelector.InputCollections = [
    #    '/afs/usatlas.bnl.gov/users/dladams/data/calib0.005145.PythiaZmumu.simul.HITS.v12003101_tid003432._00001.pool.root.1'
    '/afs/cern.ch/atlas/project/muon/data/csc12/misal1_csc11.005145.PythiaZmumu.digit.RDO.v12003101_tid003501._00001.pool.root.1',
]
コード例 #2
0
ファイル: dumpR07.py プロジェクト: rushioda/PIXELVALID_athena
MuonDetectorTool.IncludeCtbBis = 1
MuonDetectorTool.EnableFineClashFixing = 0
# inert materials
#MuonDetectorTool.ForceSwitchOnOff_BUILDINERTMATERIALS = 1000;# avoid building the dead matter
#MuonDetectorTool.ForceSwitchOnOff_BUILDINERTMATERIALS = 1001;# avoid building the dead matter
#MuonDetectorTool.ForceSwitchOnOff_MINIMALGEO          = 1000;
#MuonDetectorTool.ForceSwitchOnOff_BUILDENDCAP         = 1000;
#MuonDetectorTool.ForceSwitchOnOff_BUILDCALOSADDLE     = 1000;
#MuonDetectorTool.ForceSwitchOnOff_BUILDBARRELTOROID   = 1000;
#MuonDetectorTool.ForceSwitchOnOff_BUILDENDCAPTOROID   = 1000;
#MuonDetectorTool.ForceSwitchOnOff_BUILDFEET           = 1001;
#MuonDetectorTool.ForceSwitchOnOff_BUILDDISKSHIELD     = 1000;
#MuonDetectorTool.ForceSwitchOnOff_BUILDTOROIDSHIELD   = 1000;
#MuonDetectorTool.ForceSwitchOnOff_BUILDFORWARDSHIELD  = 1000;

MuonDetectorTool.OutputLevel = DEBUG

MessageSvc.setDebug += ["MuonGM::MuonChamber"]
MessageSvc.setDebug += ["MuonGM::MdtReadoutElement"]
MessageSvc.setDebug += ["MuonGM::CscReadoutElement"]
MessageSvc.setDebug += ["MuonGM::TgcReadoutElement"]
MessageSvc.setDebug += ["MuonGM::RpcReadoutElement"]
MessageSvc.setDebug += ["MGM::MuonDetectorManager::updateAlignment"]

print MuonDetectorTool

#***************************************************** HERE setup MuonGMCheck
from MuonGeoModelTest.MuonGeoModelTestConf import MuonGMCheck
MuonGMCheck = MuonGMCheck()
MuonGMCheck.EventLoopMode = GMCheckLoop
MuonGMCheck.check_mdt = 1
コード例 #3
0
###################### try here the DB stuff
from IOVDbSvc.CondDB import conddb
conddb.addFolder("MUONALIGN",
                 "/MUONALIGN/MDT/BARREL <tag>HEAD</tag>",
                 className='CondAttrListCollection')

from AthenaCommon.AlgSequence import AthSequencer
condSequence = AthSequencer("AthCondSeq")
from MuonCondAlg.MuonCondAlgConf import MuonAlignmentCondAlg
condSequence += MuonAlignmentCondAlg('MuonAlignmentCondAlg')
MuonAlignmentCondAlg.ParlineFolders = ["/MUONALIGN/MDT/BARREL"]

from MuonGeoModel.MuonGeoModelConf import MuonDetectorTool
MuonDetectorTool = MuonDetectorTool()
MuonDetectorTool.UseConditionDb = 1
MuonDetectorTool.OutputLevel = VERBOSE
#MuonDetectorTool.CachingFlag       = 1 # default is 1
MuonDetectorTool.FillCacheInitTime = 1  # default is 0
#MuonDetectorTool.StationSelection  = 0 # default is 0
#MuonDetectorTool.SelectedStations  = [ "EIL", "T", "CSS", "BMS" ] # irrelevant if stationselection is 0
#MuonDetectorTool.ControlAlines     = GeneralControlAlines         # default is 111111

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

###################################################################
from MuonGeoModelTest.MuonGeoModelTestConf import MuonGMTestOnPrd
MuonGMTestOnPrd = MuonGMTestOnPrd()
MuonGMTestOnPrd.OutputLevel = DEBUG
###################################################################

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