Skip to content

Mu2e/CRVteststand

Repository files navigation

CRVteststand

Code to manage data from the CRV test stand.

Build

source /cvmfs/mu2e.opensciencegrid.org/setupmu2e-art.sh
muse setup (works with muse setup SimJob MDC2020n)
mkdir workDir cd workDir
git clone git@github.com:Mu2e/CRVteststand.git
cd CRVteststand
make

Run locally (see below for OSG jobs)

Make sure your files are pre-staged, if they are on tape.
Modify config.txt
./parserCrv Run_number
Example: ./parserCrv 001052_000
./calibCrv Run_number
./recoCrv Run_number

Event Display

Example: root -l "DisplayEventsNew.C(\"/pnfs/mu2e/scratch/outstage/ehrlich/wideband9/crvreco/rec.mu2e.CRV_wideband_cosmics.crvaging-005-junk.001137.root\",\"channelMapCrvAging005.txt\")"

Run on OSG

Make sure your files are pre-staged, if they are on tape.
Requires the following things
  • Text file with a list of raw files to be processed.
  • A directory that is accessible by the OSG, where the executables (parserCrv, calibCrv, and recoCrv) and the config.txt file are located. The paths mentioned in the config.txt are ignored by the OSG script
  • An output directory that is accessible by the OSG, where the parsed, calib, and reco files will arrive.
  • The submit script (processSubmit.sh) and script that runs at the OSG (processDo.sh). Both files are at github.
Submit the jobs in this way:
./processSubmit.sh -r listOfRawFiles.txt -e directoryOfExecutablesAndConfig -o outputDirectory