Upgrade Detector Combination Examples
Some example configurations for users. At some point there will be a set of "official" configurations defined but the ability to create and use your own configuration will still exist until the Upgrade detectors are confirmed.
Any of the options below can be written into a separate python file and included on the command line.
General Settings for DDDB and SIMCOND
from Gaudi.Configuration import *
from Configurables import LHCbApp
from Configurables import DDDBConf
from Configurables import CondDB
CondDB().Upgrade = True
LHCbApp().DDDBtag = "dddb-20121001"
LHCbApp().CondDBtag = "simcond-20121001-vc-md100"
LHCbApp().Simulation = True
from Gauss.Configuration import *
Detector Combination Settings
Use VP+UT+FT+Rest of current LHCb
To access the database
either have
CondDB().AllLocalTagsByDataType=["VP+UT","FT"]
or have
CondDB.LocalTags = {
"DDDB" : [
"VP-UT-Upgrade-20120927",
"UT-Pipe-Upgrade-Local-20120928",
"FT-Upgrade-Local-20120910"
]
}
To activate the subdetectors in Gauss
Gauss.DetectorGeo = { "Detectors": ['VP', 'UT', 'FT', 'Rich1Pmt', 'Rich2Pmt', 'Spd', 'Prs', 'Ecal', 'Hcal', 'Muon', 'Magnet' ] }
Gauss.DetectorSim = { "Detectors": ['VP', 'UT', 'FT', 'Rich1Pmt', 'Rich2Pmt', 'Spd', 'Prs', 'Ecal', 'Hcal', 'Muon', 'Magnet' ] }
Gauss.DetectorMoni = { "Detectors": ['VP', 'UT', 'FT', 'Rich1Pmt', 'Rich2Pmt', 'Spd', 'Prs', 'Ecal', 'Hcal', 'Muon', 'Magnet' ] }
Gauss.DataType = "Upgrade"
Use VL+UT+FT+Rest of current LHCb
To access the database
either have
CondDB().AllLocalTagsByDataType=["VL+UT","FT"]
or have
CondDB.LocalTags = {
"DDDB" : [
"VL-UT-Upgrade-20120927",
"UT-Pipe-Upgrade-Local-20120928",
"FT-Upgrade-Local-20120910"
]
}
To activate the subdetectors in Gauss
Gauss.DetectorGeo = { "Detectors": ['VL', 'UT', 'FT', 'Rich1Pmt', 'Rich2Pmt', 'Spd', 'Prs', 'Ecal', 'Hcal', 'Muon', 'Magnet' ] }
Gauss.DetectorSim = { "Detectors": ['VL', 'UT', 'FT', 'Rich1Pmt', 'Rich2Pmt', 'Spd', 'Prs', 'Ecal', 'Hcal', 'Muon', 'Magnet' ] }
Gauss.DetectorMoni = { "Detectors": ['VL', 'UT', 'FT', 'Rich1Pmt', 'Rich2Pmt', 'Spd', 'Prs', 'Ecal', 'Hcal', 'Muon', 'Magnet' ] }
Gauss.DataType = "Upgrade"
Use VP+UT+Rest of current LHCb
To access the database
either have
CondDB().AllLocalTagsByDataType=["VP+UT"]
or have
CondDB.LocalTags ={
"DDDB:[
"VP-UT-Upgrade-20120927" , "UT-Pipe-Upgrade-Local-20120928"
]
}
To activate the subdetectors in Gauss
Gauss.DetectorGeo = {"Detectors": ['VP', 'UT', 'IT', 'OT' , 'Rich1Pmt', 'Rich2Pmt', 'Spd', 'Prs', 'Ecal' , 'Hcal', 'Muon', 'Magnet' ] }
Gauss.DetectorSim = {"Detectors": ['VP', 'UT', 'IT', 'OT' , 'Rich1Pmt', 'Rich2Pmt', 'Spd', 'Prs', 'Ecal' , 'Hcal', 'Muon', 'Magnet' ] }
Gauss.DetectorMoni = {"Detectors": ['VP', 'UT', 'IT', 'OT' , 'Rich1Pmt', 'Rich2Pmt', 'Spd', 'Prs', 'Ecal' , 'Hcal', 'Muon', 'Magnet' ] }
Gauss.DataType = "Upgrade"
Use VL+UT+Rest of current LHCb
To access the database
either have
CondDB().AllLocalTagsByDataType=["VL+UT"]
or have
CondDB.LocalTags = {
"DDDB":[
"VL-UT-Upgrade-20120927", "UT-Pipe-Upgrade-Local-20120928"] }
To activate the subdetectors in Gauss
Gauss.DetectorGeo = {"Detectors": ['VL', 'UT', 'IT', 'OT' , 'Rich1Pmt', 'Rich2Pmt', 'Spd', 'Prs', 'Ecal' , 'Hcal', 'Muon', 'Magnet' ] }
Gauss.DetectorSim = {"Detectors": ['VL', 'UT', 'IT', 'OT' , 'Rich1Pmt', 'Rich2Pmt', 'Spd', 'Prs', 'Ecal' , 'Hcal', 'Muon', 'Magnet' ] }
Gauss.DetectorMoni = {"Detectors": ['VL', 'UT', 'IT', 'OT' , 'Rich1Pmt', 'Rich2Pmt', 'Spd', 'Prs', 'Ecal' , 'Hcal', 'Muon', 'Magnet' ] }
Gauss.DataType = "Upgrade"
Use VL+FT+Rest of current LHCb
To access the database
either have
CondDB().AllLocalTagsByDataType=[ "VL+CurrentLHCbBeforeMagnet", "FT"]
or have
CondDB. LocalTags = {
"DDDB":["use-velo-lite-20120724", "FT-Upgrade-Local-20120910" ] }
To activate the subdetectors in Gauss
Gauss.DetectorGeo = {"Detectors": ['VL', 'TT', 'FT' , 'Rich1Pmt', 'Rich2Pmt', 'Spd', 'Prs', 'Ecal' , 'Hcal', 'Muon', 'Magnet' ] }
Gauss.DetectorSim = {"Detectors": ['VL', 'TT', 'FT' , 'Rich1Pmt', 'Rich2Pmt', 'Spd', 'Prs', 'Ecal' , 'Hcal', 'Muon', 'Magnet' ] }
Gauss.DetectorMoni = {"Detectors": ['VL', 'TT', 'FT' , 'Rich1Pmt', 'Rich2Pmt', 'Spd', 'Prs', 'Ecal' , 'Hcal', 'Muon', 'Magnet' ] }
Use VP+FT+Rest of current LHCb
To access the database
either have
CondDB().AllLocalTagsByDataType=[ "VP+CurrentLHCbBeforeMagnet", "FT"]
or have
CondDB. LocalTags ={
"DDDB":["VP-Upgrade-Local-20120910" , "FT-Upgrade-Local-20120910" ] }
To activate the subdetectors in Gauss
Gauss.DetectorGeo = {"Detectors": ['VP', 'TT', 'FT' , 'Rich1Pmt', 'Rich2Pmt', 'Spd', 'Prs', 'Ecal' , 'Hcal', 'Muon', 'Magnet' ] }
Gauss.DetectorSim = {"Detectors": ['VP', 'TT', 'FT' , 'Rich1Pmt', 'Rich2Pmt', 'Spd', 'Prs', 'Ecal' , 'Hcal', 'Muon', 'Magnet' ] }
Gauss.DetectorMoni = {"Detectors": ['VP', 'TT', 'FT' , 'Rich1Pmt', 'Rich2Pmt', 'Spd', 'Prs', 'Ecal' , 'Hcal', 'Muon', 'Magnet' ] }
Use VL + Rest of current LHCb
To access the database
either have
CondDB().AllLocalTagsByDataType=[ "VL+CurrentLHCbBeforeMagnet"]
or have
CondDB. LocalTags = {
"DDDB":["use-velo-lite-20120724" ] }
To activate the subdetectors in Gauss
Gauss.DetectorGeo = {"Detectors": ['VL', 'TT', 'IT', 'OT' , 'Rich1Pmt', 'Rich2Pmt', 'Spd', 'Prs', 'Ecal' , 'Hcal', 'Muon', 'Magnet' ] }
Gauss.DetectorSim = {"Detectors": ['VL', 'TT', 'IT', 'OT' , 'Rich1Pmt', 'Rich2Pmt', 'Spd', 'Prs', 'Ecal' , 'Hcal', 'Muon', 'Magnet' ] }
Gauss.DetectorMoni = {"Detectors": ['VL', 'TT', 'IT', 'OT' , 'Rich1Pmt', 'Rich2Pmt', 'Spd', 'Prs', 'Ecal' , 'Hcal', 'Muon', 'Magnet' ] }
Use VP+ Rest of current LHCb
To access the database
either have
CondDB().AllLocalTagsByDataType=[ "VP+CurrentLHCbBeforeMagnet"]
or have
CondDB. LocalTags ={
"DDDB":["VP-Upgrade-Local-20120910" ] }
To activate the subdetectors in Gauss
Gauss.DetectorGeo = {"Detectors": ['VP', 'TT', 'IT', 'OT' , 'Rich1Pmt', 'Rich2Pmt', 'Spd', 'Prs', 'Ecal' , 'Hcal', 'Muon', 'Magnet' ] }
Gauss.DetectorSim = {"Detectors": ['VP', 'TT', 'IT', 'OT' , 'Rich1Pmt', 'Rich2Pmt', 'Spd', 'Prs', 'Ecal' , 'Hcal', 'Muon', 'Magnet' ] }
Gauss.DetectorMoni = {"Detectors": ['VP', 'TT', 'IT', 'OT' , 'Rich1Pmt', 'Rich2Pmt', 'Spd', 'Prs', 'Ecal' , 'Hcal', 'Muon', 'Magnet' ] }
Use UT + Rest of current LHCb
To access the database
either have
CondDB().AllLocalTagsByDataType=[ "UT+CurrentLHCbBeforeMagnet"]
or have
CondDB. LocalTags ={
"DDDB":["UT-Upgrade-Local-20120912" }
To activate the subdetectors in Gauss
Gauss.DetectorGeo = {"Detectors": ['PuVeto', 'Velo', 'UT', 'IT', 'OT' , 'Rich1Pmt', 'Rich2Pmt', 'Spd', 'Prs', 'Ecal' , 'Hcal', 'Muon', 'Magnet' ] }
Gauss.DetectorSim = {"Detectors": ['PuVeto', 'Velo', 'UT', 'IT', 'OT' , 'Rich1Pmt', 'Rich2Pmt', 'Spd', 'Prs', 'Ecal' , 'Hcal', 'Muon', 'Magnet' ] }
Gauss.DetectorMoni = {"Detectors": ['PuVeto', 'Velo', 'UT', 'IT', 'OT' , 'Rich1Pmt', 'Rich2Pmt', 'Spd', 'Prs', 'Ecal' , 'Hcal', 'Muon', 'Magnet' ] }
Gauss.DataType = "Upgrade"
Use FT + Rest of current LHCb
To access the database
either have
CondDB().AllLocalTagsByDataType=[ "FT"]
or have
CondDB.LocalTags = {
"DDDB" : [
"FT-Upgrade-Local-20120910"
]
}
To activate the subdetectors in Gauss
Gauss.DetectorGeo = { "Detectors": ['PuVeto', 'Velo', 'TT', 'FT', 'Rich1Pmt', 'Rich2Pmt', 'Spd', 'Prs', 'Ecal', 'Hcal', 'Muon', 'Magnet' ] }
Gauss.DetectorSim = { "Detectors": ['PuVeto', 'Velo', 'TT', 'FT', 'Rich1Pmt', 'Rich2Pmt', 'Spd', 'Prs', 'Ecal', 'Hcal', 'Muon', 'Magnet' ] }
Gauss.DetectorMoni = { "Detectors": ['PuVeto', 'Velo', 'TT', 'FT', 'Rich1Pmt', 'Rich2Pmt', 'Spd', 'Prs', 'Ecal', 'Hcal', 'Muon', 'Magnet' ] }
Use current LHCb
This is the current default option, so the following lines for this option are for information only.
from Gauss.Configuration import *
Gauss.DetectorGeo = { "Detectors": ['PuVeto', 'Velo', 'TT', 'IT', 'OT', 'Rich1Pmt', 'Rich2Pmt', 'Spd', 'Prs', 'Ecal', 'Hcal', 'Muon', 'Magnet' ] }
Gauss.DetectorSim = { "Detectors": ['PuVeto', 'Velo', 'TT', 'IT', 'OT','Rich1Pmt', 'Rich2Pmt', 'Spd', 'Prs', 'Ecal', 'Hcal', 'Muon', 'Magnet' ] }
Gauss.DetectorMoni = { "Detectors": ['PuVeto', 'Velo', 'TT', 'IT', 'OT','Rich1Pmt', 'Rich2Pmt', 'Spd', 'Prs', 'Ecal', 'Hcal', 'Muon', 'Magnet' ] }
Job Options
The rest of the job options are same as that for a typical Gauss job. For example in a file named myGaussJobOptions.py
from Gauss.Configuration import *
GaussGen = GenInit("GaussGen")
GaussGen.FirstEventNumber =1
GaussGen.RunNumber = 1000
numberOfEvents =2
!LHCbApp().EvtMax = numberOfEvents
!Gauss.Output='SIM'
!HistogramPersistencySvc().OutputFile='MyHistoOutputFile.root'
importOptions ("$DECFILESROOT/options/13104011.py")
myOutputSimFile='MySimFile.sim'
myGaussTape = OutputStream("GaussTape")
myGaussTape.Output="DATAFILE='PFN%s.sim' TYP='POOL_ROOTTREE' OPT='RECREATE'"%myOutputSimFile
To run this:
gaudirun.py myBeamConfigOption.py myGaussDetectorOptions.py myGaussJobOptions.py
--
SajanEaso - 29-Sep-2012