For the most recent version of these instructions, click here.

Instructions for the Muon CSC Example

Michael Schmitt / Northwestern University

CMSSW_0_7_0

Last modified: Sun Aug 13 09:49:59 CDT 2006

At Northwestern, to work at the LPC:

LPC only:
kinit -n schmittm
xhost + cmsuafng.fnal.gov
ssh -t cmsuafng.fnal.gov

Fundamentals

source /afs/fnal.gov/files/code/cms/setup/cshrc uaf  [LPC only]
setenv SCRAM_ARCH `scramv1 arch`

Install Code & Compile it (23-June-2006)

First, create an area and declare CMSSW project.
mkdir ~/DEV
cd ~/DEV
scramv1 project CMSSW CMSSW_0_7_0
cd CMSSW_0_7_0/src
project CMSSW
at the LPC only:
cmscvsroot CMSSW
cvs login
[98passwd]
Next, check out the necessary packages:
cvs co -r CMSSW_0_7_0 EventFilter/CSCRawToDigi
cvs co -r CMSSW_0_7_0 DataFormats/CSCDigi
cvs co -r CMSSW_0_7_0 CondFormats/CSCObjects
cvs co -r CMSSW_0_7_0 IORawData/CSCCommissioning
Compile the code.
eval `scramv1 runtime -csh`
scramv1 b

Running

In order to run the CMSSW executable, try this:
cd ~/DEV/CMSSW_0_7_0/src/EventFilter/CSCRawToDigi/test/

eval `scramv1 runtime -csh`

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

The configuration file is mtccread.cfg and it looks like this:

process TEST = {
       source = PoolSource {
                untracked vstring fileNames = {"file:./mtcc.root"}
                untracked int32 maxEvents = 5
	        }

	module cscunpacker = CSCDCCUnpacker {
	        		untracked bool Debug = false
				untracked bool PrintEventNumber = false
				untracked string theMappingFile = "csc_slice_test_map.txt" 
				untracked bool UseExaminer = true	
			     } 

	service = Timing { }
  
	service = SimpleMemoryCheck { }

	module out = PoolOutputModule {
        	untracked string fileName ="digi.root"
	}
	 
	module anal = DigiAnalyzer {}

	path p = {cscunpacker, anal}
	endpath e = {out}
}

You can download the file itself: here

As you can see,

It should be obvious how to change the options.

Data Files

I have example MTCC data files you can use:

It is not obvious how long the files will remain in these temporary areas.