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.

Example options with common parts and how to set specific configurations

A main steering example options, Gauss-Upgrade.py is provided from Gauss v42r2 and can be run as-is or modified as needed. In production this is replaced by the set of options or paramters controlled by the produciton system specifying:
  1. the beam conditions
  2. the event type
  3. the generator to be used
  4. the database tags
  5. the detector configuration
  6. the g4 settings

An example of how to use these example options to produce minimum bias events with Pythia6 is:

    gaudirun.py $GAUSSOPTS/Gauss-Upgrade.py $DECFILESOPTS/30000000.py $LBPYTHIAROOT/options/Pythia.py $GAUSSOPTS/Gauss-Job.py
Gauss-Job.py is the example on how to set up number of events, random seeds, output file name, and other options specific for a single job.

General Settings for DDDB and SIMCOND

An example of how this is done is provided in Gauss-Upgrade.py. The following requires latest versions of various packages, which may not be part of latest release. The Lines are:

from Gaudi.Configuration import *
from Configurables import LHCbApp
from Configurables import CondDB
CondDB().Upgrade     = True
LHCbApp().DDDBtag    = "dddb-20130320"
LHCbApp().CondDBtag  = "simcond-20121001-vc-md100"
  1. CondDB().Upgrade = True
    triggers the machinery to connect to the correct databases for the upgrade. Both DDDB and SIMCOND are provided (they need to be synchronized) and are located in a completely separate database pointed at via $SLQLITEUPGRADEDBPATH.
    Important : The very first databse for upgrade studies, DDDB_upgrade.db located in $SLQLITEDBPATH is obsolete and should NOT be used.

  1. LHCbApp().DDDBtag and LHCbApp().ConDBtag
    define the global tags to be used, so a snapshot of the description of all upgrade detectors.
    If nothing else is specified a given combination is assumed. With the current global tags this is the reference detector, where the only change with respect to the running LHCb detector is in the RICHes with MapPMT and no Aerogel.
    New global tags should be set in LHCbApp().DDDBtag and LHCbApp().ConDBtag when needed. The intention is to keep the one distributed with Gauss up to date with the latest available global tags.

The instructions below are for the latest version of the DB (as of March 21-2013). The VL has two sensor module options (Compact and LoI) and two cooling options (MicroChannel and TPG). The VP has one sensor module option (Compact) and two cooling options (MicroChannel and Pocoform).

Detector Combination Settings

Use VP+UT+FT+Rest of current LHCb

A predefined option for this is prepared and used in central productions, Gauss-Upgrade- using the released version before March 20-2013. The following is for the latest version after March20-2013.

For the Microchannel option
To access the database
either have

CondDB().AllLocalTagsByDataType=["VP_Compact_MicroChannel+UT","FT"]

or have

CondDB.LocalTags = {
"DDDB" : [
"VP-Compact-Local-20130319",
"VP-UT-Local-NoPuVeto-20121024",
"UT-Pipe-Upgrade-Local-20120928",
"FT-Upgrade-Local-20120910"
]
}

For the Pocofoam option
To access the database
either have

CondDB().AllLocalTagsByDataType=["VP_Compact_Pocofoam+UT","FT"]

or have

CondDB.LocalTags = {
"DDDB" : [
"VP-CompactPocoform-Local-20130319",
"VP-UT-Local-NoPuVeto-20121024",
"UT-Pipe-Upgrade-Local-20120928",
"FT-Upgrade-Local-20120910"
]
}

For both options, 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

For VL-Compact-MicroChannel option
CondDB().AllLocalTagsByDataType=["VL_Compact_MicroChannel+UT" , "FT"]

For VL-Compact-TPG option
CondDB().AllLocalTagsByDataType=["VL_Compact_TPG+UT", "FT"]

For the VL-LoI-MicroChannel option
CondDB().AllLocalTagsByDataType=["VL_LoI_MicroChannel+UT", "FT"]

For the VL-LoI-TPG option
CondDB().AllLocalTagsByDataType=["VL_LoI_TPG+UT"], "FT"

or have the local tags as indicated below.

For VL-Compact-MicroChannel option

CondDB.LocalTags = {
"DDDB":[
"VL-MicroChannel-Local-20130319" ,    "VL-Compact-Local-20130319",  "VL+UT-Local-20130214" ,  "UT-Pipe-Upgrade-Local-20120928" , "FT-Upgrade-Local-20120910" ]  }

For VL-Compact-TPG option

CondDB.LocalTags = {
"DDDB":[
"VL-TPG-Local-20130319" ,  "VL-Compact-Local-20130319", "VL+UT-Local-20130214" ,  "UT-Pipe-Upgrade-Local-20120928" , "FT-Upgrade-Local-20120910"   ]  }

For VL-LoI-MicroChannel option

CondDB.LocalTags = {
"DDDB":[
"VL-MicroChannel-Local-20130319" ,    "VL-LoI-Local-20130214",  "VL+UT-Local-20130214"   ,  "UT-Pipe-Upgrade-Local-20120928" ,   "FT-Upgrade-Local-20120910"   ]  }

For VL-LoI-TPG option

CondDB.LocalTags = {
"DDDB":[
"VL-TPG-Local-20130319" ,  "VL-LoI-Local-20130214", "VL+UT-Local-20130214"   ,  "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

For the Microchannel option
To access the database
either have

CondDB().AllLocalTagsByDataType=["VP_Compact_MicroChannel+UT"]

or have

CondDB.LocalTags = {
"DDDB" : [
="VP-Compact-Local-20130319", =
="VP-UT-Local-NoPuVeto-20121024", =
="UT-Pipe-Upgrade-Local-20120928", =
]
}

For the Pocoform option
To access the database
either have

=CondDB().AllLocalTagsByDataType=["VP_Compact_Pocofoam+UT"] =

or have

CondDB.LocalTags = {
"DDDB" : [
="VP-CompactPocoform-Local-20130319", =
="VP-UT-Local-NoPuVeto-20121024", =
="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 for the VL_Compact option
either use the datatypes as indicated below

For VL-Compact-MicroChannel option
CondDB().AllLocalTagsByDataType=["VL_Compact_MicroChannel+UT"]

For VL-Compact-TPG option
CondDB().AllLocalTagsByDataType=["VL_Compact_TPG+UT"]

For the VL-LoI-MicroChannel option
CondDB().AllLocalTagsByDataType=["VL_LoI_MicroChannel+UT"]

For the VL-LoI-TPG option
CondDB().AllLocalTagsByDataType=["VL_LoI_TPG+UT"]

or have the local tags as indicated below.

For VL-Compact-MicroChannel option

CondDB.LocalTags = {
"DDDB":[
"VL-MicroChannel-Local-20130319" ,    "VL-Compact-Local-20130319",  "VL+UT-Local-20130214" ,  "UT-Pipe-Upgrade-Local-20120928"]  }

For VL-Compact-TPG option

CondDB.LocalTags = {
"DDDB":[
"VL-TPG-Local-20130319" ,  "VL-Compact-Local-20130319", "VL+UT-Local-20130214" ,  "UT-Pipe-Upgrade-Local-20120928"]  }

For VL-LoI-MicroChannel option

CondDB.LocalTags = {
"DDDB":[
"VL-MicroChannel-Local-20130319" ,    "VL-LoI-Local-20130214",  "VL+UT-Local-20130214"   ,  "UT-Pipe-Upgrade-Local-20120928"]  }

For VL-LoI-TPG option

CondDB.LocalTags = {
"DDDB":[
"VL-TPG-Local-20130319" ,  "VL-LoI-Local-20130214", "VL+UT-Local-20130214"   ,  "UT-Pipe-Upgrade-Local-20120928"]  }

For all options, 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 for compact version
either have

For VL-Compact-MicroChannel option
CondDB().AllLocalTagsByDataType=["VL_Compact_MicroChannel+TT" , "FT" ]

For VL-Compact-TPG option
CondDB().AllLocalTagsByDataType=["VL_Compact_TPG+TT"  , "FT" ]

For the VL-LoI-MicroChannel option
CondDB().AllLocalTagsByDataType=["VL_LoI_MicroChannel+TT" , "FT"  ]

For the VL-LoI-TPG option
CondDB().AllLocalTagsByDataType=["VL_LoI_TPG+TT" , "FT"  ]

or have the local tags as indicated below.

For VL-Compact-MicroChannel option

CondDB.LocalTags = {
"DDDB":[
"VL-MicroChannel-Local-20130319" ,    "VL-Compact-Local-20130319",  "VL+TT-Local-20130214" ]  }

For VL-Compact-TPG option

CondDB.LocalTags = {
"DDDB":[
"VL-TPG-Local-20130319" ,  "VL-Compact-Local-20130319", "VL+TT-Local-20130214" ]  }

For VL-LoI-MicroChannel option

CondDB.LocalTags = {
"DDDB":[
"VL-MicroChannel-Local-20130319" ,    "VL-LoI-Local-20130214",  "VL+TT-Local-20130214"  ]  }

For VL-LoI-TPG option

CondDB.LocalTags = {
"DDDB":[
"VL-TPG-Local-20130319" ,  "VL-LoI-Local-20130214", "VL+TT-Local-20130214"   ]  }

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

For the Microchannel option
To access the database
either have

CondDB().AllLocalTagsByDataType=["VP_Compact_MicroChannel+TT","FT"]

or have

CondDB.LocalTags = {
"DDDB" : [
"VP-Compact-Local-20130319",
="VP-Local-NoPuVeto-20121024, =
"FT-Upgrade-Local-20120910"
]
}

For the Pocoform option
To access the database
either have

CondDB().AllLocalTagsByDataType=["VP_Compact_Pocofoam+TT","FT"]

or have

CondDB.LocalTags = {
"DDDB" : [
"VP-CompactPocoform-Local-20130319",
="VP-Local-NoPuVeto-20121024, =
"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 for the VL_Compact option
either use the datatypes as indicated below

For VL-Compact-MicroChannel option
CondDB().AllLocalTagsByDataType=["VL_Compact_MicroChannel+TT"]

For VL-Compact-TPG option
CondDB().AllLocalTagsByDataType=["VL_Compact_TPG+TT"]

For the VL-LoI-MicroChannel option
CondDB().AllLocalTagsByDataType=["VL_LoI_MicroChannel+TT"]

For the VL-LoI-TPG option
CondDB().AllLocalTagsByDataType=["VL_LoI_TPG+TT"]

or have the local tags as indicated below.

For VL-Compact-MicroChannel option

CondDB.LocalTags = {
"DDDB":[
"VL-MicroChannel-Local-20130319" ,    "VL-Compact-Local-20130319",  "VL+TT-Local-20130214" ]  }

For VL-Compact-TPG option

CondDB.LocalTags = {
"DDDB":[
"VL-TPG-Local-20130319" ,  "VL-Compact-Local-20130319", "VL+TT-Local-20130214" ]  }

For VL-LoI-MicroChannel option

CondDB.LocalTags = {
"DDDB":[
"VL-MicroChannel-Local-20130319" ,    "VL-LoI-Local-20130214",  "VL+TT-Local-20130214"  ]  }

For VL-LoI-TPG option

CondDB.LocalTags = {
"DDDB":[
"VL-TPG-Local-20130319" ,  "VL-LoI-Local-20130214", "VL+TT-Local-20130214"  ]  }

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

For the Microchannel option
To access the database
either have

CondDB().AllLocalTagsByDataType=["VP_Compact_MicroChannel+TT"]

or have

CondDB.LocalTags = {
"DDDB" : [
"VP-Compact-Local-20130319",
="VP-Local-NoPuVeto-20121024, =
]
}

For the Pocoform option
To access the database
either have

CondDB().AllLocalTagsByDataType=["VP_Compact_Pocofoam+TT"]

or have

CondDB.LocalTags = {
"DDDB" : [
"VP-CompactPocoform-Local-20130319",
="VP-Local-NoPuVeto-20121024, =
]
}

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 | r22 < r21 < r20 < r19 | Backlinks | Raw View | Raw edit | More topic actions...
Topic revision: r20 - 2013-04-07 - 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