Instructions for the DT Example

Michael Schmitt / Northwestern University
Last modified: Mon Dec 12 17:47:49 CST 2005

Install and Compile the Code (13-Dec-2005)

First, create an area and declare CMSSW project.
mkdir ~/DEV
cd ~/DEV
scramv1 project CMSSW CMSSW_0_3_0_pre4
cd CMSSW_0_3_0_pre4/src
project CMSSW
Next, check out the necessary packages:
cvs co EventFilter/DTRawToDigi
cvs co DataFormats/DTDigi
cvs co CondFormats/DTObjects
Now, compile the code.
eval `scramv1 runtime -csh`
scramv1 b
There are no errors during compilation.

Running

In order to run the CMSSW executable, try this:
cd ~/DEV/CMSSW_0_3_0_pre4/src/EventFilter/DTRawToDigi/test/
eval `scramv1 runtime -csh`
cmsRun --parameter-set testUnpacker.cfg

WARNING - this part is not finalized yet - I obtain an error!


[lxplus014] ~/DEV8/CMSSW_0_3_0_pre4/src/EventFilter/DTRawToDigi/test > cmsRun --parameter-set testUnpacker.cfg 
WARNING: $POOL_CATALOG is not defined
using default `xmlcatalog_file:PoolFileCatalog.xml'
%MSG-e cmsRun: Exception caught in  cmsRun 
       
       ---- Configuration BEGIN
Error occured while creating PoolDBESSource
---- NoRecord BEGIN
 The record "DTReadOutMappingRcd" is not known by the PoolDBESSource
---- NoRecord END
---- Configuration END
       
        13-Dec-2005 00:45:45 CET

Here is a dump of the file dduread.cfg:
process TEST = { 

      es_source = PoolDBESSource { VPSet toGet = {
                                  {string record = "DTReadOutMappingRcd" 
                                   string tag = "COMMISSIONING_MB1_COMMISSIONING_MB1"}
                                  }
                                  bool loadAll = true
                                  string connect = "oracle://cms_val_lb.cern.ch/CMS_VAL_DT_POOL_OWNER"
                                  string timetype = "runnumber" 
                                 }


     source = DaqSource{ string reader = "DTROS8FileReader"
                untracked int32 maxEvents = 10000
                PSet pset = { string fileName ="input.raw" } 
     }

#     source = PoolSource{ string fileName = "rawdata.root" } 

     module dtunpacker = DTUnpackingModule{ 
        string dataType = "ROS8" }

     module out = PoolOutputModule {
       untracked string fileName = "dtdigis.root"}

     path p = {dtunpacker, out}
}
The output file should be dtdigis.root.