How to find out which TCK was used for a given dataset

You write a small python script like this one:
from Gaudi.Configuration import *
from Configurables import  LHCbApp
files = [ '/daqarea/lhcb/data/2009/RAW/FULL/FEST/FEST/61008/061008_0000000001.raw' ]
EventSelector().Input = [ "DATAFILE='PFN:%s' SVC='LHCb::MDFSelector'" %f for f in files ]
EventPersistencySvc().CnvServices.append( 'LHCb::RawDataCnvSvc' )
ApplicationMgr().ExtSvc.append( 'DataOnDemandSvc' )

import GaudiPython
g = GaudiPython.AppMgr()
evt = g.datasvc('EventDataSvc')

class Dump(GaudiPython.PyAlgorithm):
  def execute(self):
      print  'TCK: 0x%x' % evt['DAQ/ODIN'].triggerConfigurationKey()
      return 1

The above will tell you 0x80750011, and if you then start TCKsh and do 'listConfigurations()' you will see, with a bit of searching, that 0x80750000 is from MOORE_v8r1, nickname Physics_10000Vis_1000L0_40Hlt1_EffectiveHlt2_Jul09...

An alternative is to use the run database (click on the Run DB button on the PVSS run control panel; the web interface does not yet provide this information.)

-- EricvanHerwijnen - 22-Jan-2010

Edit | Attach | Watch | Print version | History: r1 | Backlinks | Raw View | WYSIWYG | More topic actions
Topic revision: r1 - 2010-01-22 - EricvanHerwijnen
    • 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-2020 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback