Difference between revisions of "Muse"
Jump to navigation
Jump to search
Line 47: | Line 47: | ||
-c Tutorial/DataExploration/fcl/Ex02.fcl | -c Tutorial/DataExploration/fcl/Ex02.fcl | ||
</pre> | </pre> | ||
+ | |||
+ | |||
+ | Example of a partial Offline build using "mgit" the muse version of pgit | ||
+ | |||
+ | <pre> | ||
+ | setup mu2e | ||
+ | setup muse | ||
+ | cd <a working dir> | ||
+ | ... establish a backing build | ||
+ | muse list | ||
+ | |||
+ | Recent published releases: | ||
+ | Recent CI builds | ||
+ | 2021-03-12 21:45 master/43ebbdfe | ||
+ | 2021-03-12 12:44 master/c2409d93 | ||
+ | |||
+ | muse link master/43ebbdfe | ||
+ | ... establish partial code checkout | ||
+ | include your github username to setup an origin remote | ||
+ | mgit init rlcee | ||
+ | cd Offline | ||
+ | mgit add HelloWorld | ||
+ | sed -i 's/From/From '$USER'/' HelloWorld/src/HelloWorld_module.cc | ||
+ | |||
+ | cd .. | ||
+ | |||
+ | muse setup | ||
+ | muse build -j 20 --mu2eCompactPrint | ||
+ | mu2e -c HelloWorld/test/hello.fcl | ||
+ | |||
+ | </pre> | ||
+ | |||
Revision as of 21:01, 15 March 2021
As Mu2e approaches data-taking there will be many more ntuples, calibration procedures, and analysis code developed. Muse is a UPS product containing a set of scripts and scons commands to enable building Offline and other Muse-ready repos together. Currently it could be described as pre-beta, so not completely stable.
The following is a recipe for testing building Offline with the Tutorial repo, as an example.
setup mu2e setup muse < cd to a working dir > git clone https://github.com/Mu2e/Offline git clone https://github.com/Mu2e/Tutorial muse -h muse setup muse build -j 20 >& b_00.log mu2e -n 10 -c Offline/Validation/fcl/ceSimReco.fcl mu2e -s mcs.owner.val-ceSimReco.dsconf.seq.art \ -c Tutorial/DataExploration/fcl/Ex01.fcl < in the same working dir, but in a second window> muse setup -q debug muse status muse build -j 20 >& d_00.log mu2e -s mcs.owner.val-ceSimReco.dsconf.seq.art \ -c Tutorial/DataExploration/fcl/Ex02.fcl
An example of a backing release
setup mu2e setup muse < cd to a working dir that will be the backing build > git clone https://github.com/Mu2e/Offline muse setup muse build -j 20 >& b_00.log < *in a new process* cd to a working dir that will link to the backing build > setup mu2e setup muse git clone https://github.com/Mu2e/Tutorial muse link /path/backing_working_dir/Offline muse setup muse build -j 20 >& b_00.log mu2e -n 10 -c Offline/Validation/fcl/ceSimReco.fcl mu2e -s mcs.owner.val-ceSimReco.dsconf.seq.art \ -c Tutorial/DataExploration/fcl/Ex02.fcl
Example of a partial Offline build using "mgit" the muse version of pgit
setup mu2e setup muse cd <a working dir> ... establish a backing build muse list Recent published releases: Recent CI builds 2021-03-12 21:45 master/43ebbdfe 2021-03-12 12:44 master/c2409d93 muse link master/43ebbdfe ... establish partial code checkout include your github username to setup an origin remote mgit init rlcee cd Offline mgit add HelloWorld sed -i 's/From/From '$USER'/' HelloWorld/src/HelloWorld_module.cc cd .. muse setup muse build -j 20 --mu2eCompactPrint mu2e -c HelloWorld/test/hello.fcl