Skip to content

Mu2e/otsdaq_mu2e_tracker

Repository files navigation

Mu2e Tracker repository

####
# check out the (empty) directory
####
$ cd $MRB_SOURCE
$ mrb gitCheckout -d otsdaq_mu2e_tracker ssh://[email protected]/cvs/projects/mu2e-otsdaq-tracker
$ cd otsdaq_mu2e_tracker


####
# get the directory with the heavy lifting tools in it
####
$ cp -rpd ../otsdaq_mu2e_calorimeter/otsdaq-mu2e-calorimeter/ .
$ mv otsdaq-mu2e-calorimeter otsdaq-mu2e-tracker
$ cd otsdaq-mu2e-tracker/
$ cd FEInterfaces/
$ sed 's/Calorimeter/Tracker/' CMakeLists.txt > CMakeLists.txt.tracker
$  mv CMakeLists.txt.tracker CMakeLists.txt
$ sed 's/Calorimeter/Tracker/' ROCCalorimeterEmulator.h > ROCTrackerEmulator.h
$ sed 's/Calorimeter/Tracker/' ROCCalorimeterEmulator_interface.cc > ROCTrackerEmulator_interface.cc
$ rm ROCCalorimeterEmulator.h 
$ rm ROCCalorimeterEmulator_interface.cc 
$ cd ../..

####
# deal with the product dependencies to make it compile OK...
####
$ cp -rpd ../otsdaq_mu2e_calorimeter/CMakeLists.txt .
$ sed 's/calorimeter/tracker/' CMakeLists.txt > CMakeLists.txt.tracker
$ mv CMakeLists.txt.tracker CMakeLists.txt
$ cp -rpd ../otsdaq_mu2e_calorimeter/ups/ .
$ cd ups/
$ sed 's/calorimeter/tracker/' product_deps > product_deps.tracker
$ mv product_deps.tracker product_deps
$ cd ..