Instructions for the CSC Example

Michael Schmitt / Northwestern University
Last modified: Tue Dec 13 07:03:45 CST 2005

Fundamentals (only at the LPC)

source /afs/fnal.gov/files/code/cms/setup/cshrc uaf
setenv CVSROOT :pserver:anonymous@cdcvs.fnal.gov:/cvs/lpc
setenv SCRAM_ARCH `scramv1 arch`

Install 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/CSCRawToDigi
cvs co DataFormats/CSCDigi
cvs co CondFormats/CSCObjects
cvs co IORawData/CSCCommissioning
Compile the code.
(It is no longer necessary to do this in pieces.)
cd ~/DEV/CMSSW_0_3_0_pre4/src/
eval `scramv1 runtime -csh`
scramv1 b

Running

In order to run the CMSSW executable, try this:
cd ~/DEV/CMSSW_0_3_0_pre4/src/EventFilter/CSCRawToDigi/test/
eval `scramv1 runtime -csh`

cmsRun --parameter-set dduread.cfg
(One can use "-p" instead of "--parameter-set".)

WARNING - this part is not finalized yet!

Here is what I get:
[lxplus014] ~/DEV9/CMSSW_0_3_0_pre4/src/EventFilter/CSCRawToDigi/test > cmsRun --parameter-set dduread.cfg
%MSG-e cmsRun: Exception caught in  cmsRun 
       
       ---- InputFileMissing BEGIN
CSCFileReader: Error opening input.raw data file. (errno=2)
---- InputFileMissing END
       
        13-Dec-2005 13:57:39 CET
Here is a dump of the file dduread.cfg:
process TEST = {
 
 	source = DaqSource{ string reader = "CSCFileReader"
               	 	untracked int32 maxEvents = 500000
                	PSet pset = { string fileName = "input.raw" }
	}

	module cscunpacker = CSCDCCUnpacker {} 

	module out = PoolOutputModule {
        	untracked string fileName ="CSCdigi.root"
	}
	 
	path p = {cscunpacker,out}
}
The output file is CSCdigi.root.