kinit -n [userid] xhost + cmsuafng.fnal.gov ssh -t cmsuafng.fnal.gov
source /afs/fnal.gov/files/code/cms/setup/cshrc uaf [LPC only] setenv SCRAM_ARCH `scramv1 arch`
mkdir ~/DEV cd ~/DEV scramv1 project CMSSW CMSSW_0_8_0_pre2 cd CMSSW_0_8_0_pre2/src project CMSSWat the LPC only:
cmscvsroot CMSSW cvs login [98passwd]Next, check out the necessary packages:
cvs co -r CMSSW_0_8_0_pre2 EventFilter/CSCRawToDigi cvs co -r CMSSW_0_8_0_pre2 DataFormats/CSCDigi cvs co -r CMSSW_0_8_0_pre2 CondFormats/CSCObjects cvs co -r CMSSW_0_8_0_pre2 IORawData/CSCCommissioning cvs co -r CMSSW_0_8_0_pre2 RecoLocalMuon/CSCRecHit cvs co -r CMSSW_0_8_0_pre2 RecoLocalMuon/CSCSegment(Note that you do not necessarily need all of these packages. These are the main ones that are relevant for the CSC's, though most of the time you will only need the last two RecoLocalMuon code sets. This all takes a lot of disk space so you might want to leave some of these out, once you know what you are doing.)
Get copies of the "private" routines that Michael wrote as a starting point.
(Notice the periods at the end!)
These routines are meant to be for your analysis. You can get an idea
of how to hook your own routines into the CMSSW framework: aside from
the routines you need to list them in the BuildFile file. Without that,
the routines will not be "known" to CMSSW.
cd RecoLocalMuon/CSCRecHit/test/ cp -v ~schmittm/DEV12/CMSSW_0_8_0_pre2/src/RecoLocalMuon/CSCRecHit/test/myRecHitReader.cc . cp -v ~schmittm/DEV12/CMSSW_0_8_0_pre2/src/RecoLocalMuon/CSCRecHit/test/myRecHitReader.h . cp -v ~schmittm/DEV12/CMSSW_0_8_0_pre2/src/RecoLocalMuon/CSCRecHit/test/mySegmentReader.cc . cp -v ~schmittm/DEV12/CMSSW_0_8_0_pre2/src/RecoLocalMuon/CSCRecHit/test/mySegmentReader.h . cp -v ~schmittm/DEV12/CMSSW_0_8_0_pre2/src/RecoLocalMuon/CSCRecHit/test/BuildFile .Notice!
/tmp/schmittm/SHARE/on lxplus014. This is a temporary solution, of course.
Get a copy of the configuration file if you don't have one already.
This file controls the way the program runs and you will certainly
modify it frequently.
cp -v ~schmittm/DEV12/CMSSW_0_8_0_pre2/src/RecoLocalMuon/CSCRecHit/test/mtccproc.cfg .
Fetch some mapping files (or else make a link).
cp -v ../../../EventFilter/CSCRawToDigi/test/csc_slice_test_map.txt .
cd ~/DEV/CMSSW_0_8_0_pre2/src eval `scramv1 runtime -csh` scramv1 b
cd ~/DEV/CMSSW_0_8_0_pre2/src/RecoLocalMuon/CSCRecHit/test eval `scramv1 runtime -csh` cmsRun --parameter-set mtccproc.cfg(One can use "-p" instead of "--parameter-set".)
The configuration file is mtccproc.cfg and it looks like this:
You can download the file itself:
here
As you can see,
process TEST = {
source = PoolSource {
untracked vstring fileNames = {"file:./mtcc.root"}
untracked int32 maxEvents = 5
untracked uint32 debugVebosity = 10
untracked bool debugFlag = false
}
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 {}
include "Geometry/MuonCommonData/data/muonIdealGeometryXML.cfi"
include "Geometry/CSCGeometry/data/cscGeometry.cfi"
# include "MagneticField/Engine/data/volumeBasedMagneticField.cfi"
include "RecoLocalMuon/CSCRecHit/data/CSCRecHit2DProducer.cfi"
module rechitproducer = CSCRecHit2DProducer{
string CSCStripDigiProducer = "cscunpacker"
string CSCWireDigiProducer = "cscunpacker"
int32 no_of_chamber_types = 9
vstring algo_types = {
"CSCRecHit2DFromStripsAndWires",
"CSCRecHit2DFromORedStrips"
}
VPSet algo_psets = {
{using common_params},
{using common_params}
}
vint32 algo_per_chamber_type = { 2, 1, 1, 1, 1, 1, 1, 1, 1 }
untracked bool debug = true
}
module myrechitreader = myRecHitReader{
# Switch on/off the verbosity and turn on/off histogram production
untracked bool debug = true
# Label to retrieve SimHits from the event
# untracked string simHitLabel = 'SimG4Object'
# Tim's code outputs "r" instead of SimG4Object...
untracked string simHitLabel = 'r'
# Label to retrieve RecHits from the event
untracked string recHitLabel = 'rechitproducer'
# Name of the root file which will contain the output histograms
untracked string rootFileName = "cscrechitplots.root"
# Maximum distance between simhit and recohit
untracked double maxRechitDistance = 9999.
# Maximum number of reco hits per layer of any given chamber
untracked int32 maxRechitPerLayer = 1
# Maximum number of sim hits per layer of any given chamber
untracked int32 maxSimhitPerLayer = 1
# WhichEndcap: 0 = both, 1 = +Z, 2 = -Z
untracked int32 WhichEndCap = 0
}
include "RecoLocalMuon/CSCSegment/data/CSCSegmentAlgorithmSK.cfi"
include "RecoLocalMuon/CSCSegment/data/CSCSegmentAlgorithmTC.cfi"
module segmentproducer = CSCSegmentProducer {
# Name of RecHitProducer producer module(s)...
string CSCRecHit2DProducer = "rechitproducer"
# Choice of the building algo: 1 SK, 2 TC...
int32 algo_type = 1
# std::vector
It should be obvious how to change the options.
(For example, "ln -s /tmp/schmittm/MTCC/mtcc.00001330.A.testStorageManager_0.0.root mtcc.root".)
You may get a bunch of errors about
Limitation: Can't instantiate precompiled template
and things like that. Apparently this is a known
problem and does not matter for what we want to do right now.
I have example MTCC data files you can use:
It is not obvious how long the files will remain in these temporary areas.
In order to get these files yourself, or to get other files, you need to use CASTOR which is a general file-storage system at CERN.
In order to find what files are available, try:
nsls -l /castor/cern.ch/cms/emuslice/globaldaq/and to copy a file to your own disk, use
rfcp /castor/cern.ch/cms/emuslice/globaldaq/Note that this can take several minutes.