TWiki> LHCb Web>LHCbST>LHCbSTSoftwareHelp2010 (revision 13)EditAttachPDF

ST 2010 Analysis Helpline

Tags

Data

Simulation

  • 3.5 TeV min bias MC
  • DataType is now 2010
  • Remember Simulation = True
  • XXXX.DDDBtag = "head-20100119"
  • CondDBtag = "sim-20100321-vc-md100""

You can find RecommendedTags here

Databases

ST Specific

Official Databases

Meaning Validity Type File
Latest slice for data (correct noise, charge calibration, cluster threshold info, efficiency maps April 2010 - inf LHCBCOND STCOND10.db
Mirror of STCOND10 slice for SIMCOND April 2010 - inf SIMCOND SIM10C.db

To use:

from Configurables import ( CondDB, CondDBAccessSvc )
   stcalib = CondDBAccessSvc('stCalib')
   stcalib.ConnectionString = 'sqlite_file:/File/Type'
   CondDB().addLayer(stcalib )

In addition, I prepared various intermediate slices

Meaning Validity Type File
2009 charge calibration, noise + clustering thresholds Nov 2009 - Dec 2009 SIMCOND calib09.db
MC09 charge calibration, noise + clustering thresholds MC09 SIMCOND CON1.db
MC09 charge calibration, noise + 2010 clustering thresholds - SIMCOND CON2.db
MC09 charge calibration, noise + 2009 clustering thresholds - SIMCOND CON3.db

Alignment

If you use ~ Brunel v37r1 era data you need to do nothing. If you use earlier versions read on

Wouter has databases in his area. Last 2009 database is tagged as v2.3, first 2010 as v2.4.

from Configurables import ( CondDB, CondDBAccessSvc )
   mycalib = CondDBAccessSvc('myCalib')
   mycalib.ConnectionString = 'sqlite_file:/afs/cern.ch/user/w/wouter/public/AlignDB/v2.4.db/LHCBCOND'
   CondDB().addLayer( mycalib )

Online

If the data is new you need to either use Oracle or Matt has a slice he trys to keep up to date (use at own risk):

from Configurables import ( CondDB, CondDBAccessSvc ) 
   myOnline = CondDBAccessSvc( 'MyOnline' ) 
   myOnline.ConnectionString = 'sqlite_file:/afs/cern.ch/lhcb/group/tracking/vol1/mneedham/ONLINE.db/ONLINE'
   CondDB().addLayer( myOnline ) 

TT Pitch fix

The pitch was wrong, a fix + fixed alignment is available. FIXED by ~ Brunel v37r1

from Configurables import ( CondDB, CondDBAccessSvc ) 
  mycalib = CondDBAccessSvc('myCalib')  
  mycalib.ConnectionString = 'sqlite_file:/afs/cern.ch/user/w/wouter/public/AlignDB/v2.4.db/LHCBCOND'
  CondDB().addLayer( mycalib )
  ttPitchFix = CondDBAccessSvc( 'TTPitchFix' )
  ttPitchFix.ConnectionString = 'sqlite_file:/afs/cern.ch/user/w/wouter/public/AlignDB/TTPitchFix.db/DDDB'

Trigger

For many studies [e.g. occupancies] you should select a trigger line.

To create and use a trigger filter in python you do something like:

from Configurables import LoKi__HDRFilter   as HltFilter 
trigFilter = HltFilter( 'HltPassFilter', Code="HLT_PASS('Hlt1MBMicroBiasRZVeloDecision')" )

Pileup

The 2010 simulation has nu =1. To get the pile-up in the early data:

from Configurables import LoKi__VoidFilter
fltr = LoKi__VoidFilter( 'GenFilter' , Code = " 1 == CONTAINS('Gen/Collisions') ")

Selecting Beam-Beam crossings

The following filter does the job

from Configurables import LoKi__ODINFilter  
fltr = LoKi__ODINFilter( 'O1' , Code = " ODIN_BXTYP == LHCb.ODIN.BeamCrossing " )

Removing Lumi events

The following filter does the job

# routing bit filter to remove lumi
from Configurables import HltRoutingBitsFilter
physFilter = HltRoutingBitsFilter( "PhysFilter", RequireMask = [ 0x0, 0x4, 0x0 ])

Book-keeping

Field Map

There are several field maps around. Though the original maps are used the modifed maps are prefered and will be used in the future

Map Polarity Names Comments
Tosca Down field047.cdf One quadrant that is reflected
Original down Down field048.c1.vs.down.cdf Used in Brunel v37r1
Original up Up field048.c1.an.up.cdf Used in Brunel v37r1
Modified down Down c1_downward_20100106.cdf Should improve on the original map
Modified up Up c1_upward_20100106.cdf Should improve on the original map
Modified up/down Down c1_upward_and_downward_20100112.cdf Use all the data in the parameterization (obsolete - use 0100517)
Modified up/down Down c1_upward_and_downward_20100517.cdf Use all the data in the parameterization, better behaviour at acceptance edge

Comments:

  • I put all the maps in /afs/cern.ch/lhcb/group/tracking/vol1/mneedham/FieldMap/cdf

  • You can use an Up map for Down data by putting a negative scale factor MagneticFieldSvc().ForcedSignedCurrentScaling = -1

Example 1: Using the Tosca map

from Configurables import MagneticFieldSvc
MagneticFieldSvc().UseConditions = False
MagneticFieldSvc().FieldMapFiles = ["/afs/cern.ch/lhcb/software/releases/DBASE/FieldMap/v5r3/cdf/field047.cdf"] 

Example 2: Using the up map in the conditions for down data

from Configurables import MagneticFieldSvc
MagneticFieldSvc().ForceToUseUpMap = True
MagneticFieldSvc().ForcedSignedCurrentScaling  = -1 

Example 3: Using a different set of maps

from Configurables import MagneticFieldSvc
MagneticFieldSvc().UseConditions = False
MagneticFieldSvc().FieldMapFiles = ["/afs/cern.ch/lhcb/group/tracking/vol1/mneedham/FieldMap/cdf/c1_upward_and_downward_20100112.cdf" ,
                                    "/afs/cern.ch/lhcb/group/tracking/vol1/mneedham/FieldMap/cdf/c2_upward_and_downward_20100112.cdf" ,
                                    "/afs/cern.ch/lhcb/group/tracking/vol1/mneedham/FieldMap/cdf/c3_upward_and_downward_20100112.cdf" ,
                                    "/afs/cern.ch/lhcb/group/tracking/vol1/mneedham/FieldMap/cdf/c4_upward_and_downward_20100112.cdf" ]

Nota Bene:

Links

-- MatthewNeedham - 08-Apr-2010

Topic attachments
I Attachment History Action Size Date Who Comment
Unknown file formatdb CON1.db r1 manage 3919.0 K 2010-04-09 - 15:15 MatthewNeedham  
Unknown file formatdb CON2.db r1 manage 3919.0 K 2010-04-09 - 15:15 MatthewNeedham  
Unknown file formatdb CON3.db r1 manage 3919.0 K 2010-04-09 - 15:16 MatthewNeedham  
Unknown file formatdb SIM10C.db r1 manage 5135.0 K 2010-04-09 - 10:10 MatthewNeedham Mirror of STCON10 for SIMCOND
Unknown file formatdb STCOND10.db r1 manage 5135.0 K 2010-04-09 - 09:43 MatthewNeedham ST database slice for data from April 2010
Unknown file formatdb calib09.db r1 manage 7166.0 K 2010-04-09 - 10:43 MatthewNeedham Database for 2009 using 2009 noise/charge calibration
Edit | Attach | Watch | Print version | History: r17 | r15 < r14 < r13 < r12 | Backlinks | Raw View | Raw edit | More topic actions...
Topic revision: r13 - 2010-05-22 - MatthewNeedham
 
    • 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-2019 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback