Instructions to skimm and analyze TMBTrees with p16.00.00 on clued0 (worked on 4 March 2004) ------------------------------------------------ In margaux-clued0:/work/naia-clued0/bruce1/dimu_asym_2004>: mkdir new_p16.00.00 cd new_p16.00.00 setup D0RunII p16.00.00 setup d0cvs setup root v4_00_02b -q GCC_3_1:exception:opt:thread (only for the new linux on naia_clued0) d0setwa cvs checkout tau_cand cd tau_cand cp /d0dist/dist/releases/p16.00.00/tmb_tree/macros/MakeTMBTreeClasses_so.C . Copy BH_include, Select.C, Select.h, *.cpp, *.hpp, rsubmit.sh, run.C, README_dimuon.txt to . edit making_chain.C in directory tau_cand which creates TTree MuTrk with this format: { TChain MuTrk("TMBTree"); MuTrk.Add("/tmp_root/790/quito3/bruce1/AA_extended/set1-p13.06.01-htfaa-11762evts.root"); MuTrk.Add("/tmp_root/790/quito3/bruce1/AA_extended/set10-p13.06.01-htfaa-50252evts.root"); } In Select.h replaced #include "tmb_analyze/TMBTreeInclude.h" by #include "tmb_tree/TMBTreeInclude.h". FOR INTERACTIVE TESTING: root -b .x MakeTMBTreeClasses_so.C .L Select.C++ Select mu("/work/naia-clued0/bruce1/dimu_asym_2004/p140600/TMBTrees_155084_cosmicray/tmb_tree1.root"); or .x /work/naia-clued0/bruce1/dimu_asym_2004/p140600/tau_cand/making_chain.C_MC_skim Select mu(& MuTrk); mu._nwrite=100 // to write out 100 events mu.write_tree_to("tmb_tree_skim.root"); mu.Loop(); mu.write_histos("histos.root"); .q Short form of interactive running: root -b .x run.C FOR BATCH RUNNING on clued0: cluesow -l cput=12:00:00 -l mem=500M rsubmit.sh ********************** setenv DISPLAY bhlx02.dhcp:0.0 // and locally xhost d0mino.fnal.gov or setenv DISPLAY 200.24.221.254:0.0 or setenv DISPLAY 205.235.15.195:0.0 ************************************* For batch job on d0mino: ----------------------- edit a file "rsubmit" and put the following lines in it: #!/bin/sh root -q -b /tmp_root/783/quito2/bruce1/p13dimuon/tau_cand/run.C > /tmp_root/783/quito2/bruce1/p13dimuon/tau_cand/job. out # and make "rsubmit" executable; then submit the file bsub rsubmit or bsub -q medium rsubmit or bsub -q large rsubmit ************************* To look at the skimmed TMBTree in root: .x MakeTMBTreeClasses_so.C TFile f("dimuon_like_sign_setxx"); TBrowser b; ********************************************** To find tmb_tree variables: /d0dist/dist/packages/tmb_tree/v00-10-02/tmb_tree ********************************************