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-20121017"
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+TT", "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+TT", "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+TT"]

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+TT"]

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=[ "Velo+UT"]

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.
No special CondDB tags needed for default configuration.
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

Edit | Attach | Watch | Print version | History: r85 | r9 < r8 < r7 < r6 | Backlinks | Raw View | Raw edit | More topic actions...
Topic revision: r7 - 2012-10-17 - SajanEaso
 
    • Cern Search Icon Cern Search
    • TWiki Search Icon TWiki Search
    • Google Search Icon Google Search

    LHCb All webs login

This site is powered by the TWiki collaboration platform Powered by PerlCopyright & 2008-2022 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
or Ideas, requests, problems regarding TWiki? use Discourse or Send feedback