Difference between revisions of "Analysis How-to"

From HallCWiki
Jump to navigationJump to search
Line 45: Line 45:
  
 
* Open HMS onlineGUI:
 
* Open HMS onlineGUI:
 +
** need to run HMS analysis for 50000 events before this
 
** -f : which config file to load
 
** -f : which config file to load
 
** -r : which run to display
 
** -r : which run to display
Line 53: Line 54:
  
 
* Open SHMS onlineGUI:
 
* Open SHMS onlineGUI:
 +
** need to run SHMS analysis for 50000 events before this
 
** -f : which config file to load
 
** -f : which config file to load
 
** -r : which run to display
 
** -r : which run to display
Line 58: Line 60:
 
   $ cd onlineGUI
 
   $ cd onlineGUI
 
   $ ./online -f Config/SHMS/GEN/hallc_onlana.cfg -r <runNum>
 
   $ ./online -f Config/SHMS/GEN/hallc_onlana.cfg -r <runNum>
 +
  $ cd ..
 +
 +
* Run SHMS kpp analysis through onlineGUI:
 +
** need to run SHMS analysis for -1 events before this
 +
** -f : which config file to load
 +
** -r : which run to analyze
 +
** -P : produce `.pdf` and `.root` file
 +
** <runNum> : run number
 +
  $ cd onlineGUI
 +
  $ ./online -f Config/kpp.cfg -r <runNum> -P
 +
  $ mv kpp_<runNum>.pdf ../HISTOGRAMS
 +
  $ mv kpp_<runNum>.root ../HISTOGRAMS
 
   $ cd ..
 
   $ cd ..

Revision as of 08:38, 9 March 2017

Short Analysis Instructions

  • Connect to online analysis machine:
 $ ssh cdaq@cdaql1
  • Source environment and go to analysis folder:
 $ go_kpp
  • Run online analysis:
    • onlineGUI will pop-up automatically
    • log will be saved under `log` directory
    • <runNum> : run number; last run if omitted
 $ ./run_hms.sh <runNum>
 $ ./run_shms.sh <runNum>
  • Run full analysis:
    • A `pdf` and `root` file from the kpp script for onlineGUI will be saved under `HISTOGRAMS`
    • log will be saved under `log` directory
    • <runNum> : run number; last run if omitted
 $ ./full_hms.sh <runNum>
 $ ./full_shms.sh <runNum>

Detailed Analysis Instructions

  • Connect to the online analysis machine:
 $ ssh cdaq@cdaql1
  • Source environment and go to analysis folder:
 $ cd hallc-online/hcana
 $ source setup.csh
 $ cd ../hallc_replay
 $ source setup.csh
  • Run HMS analysis:
    • -q : exit analyzer after running
    • <runNum> : run number
    • <numEvents> : number of events to analyze; 50000 for short, -1 for full replay
 $ ./hcana -q "SCRIPTS/HMS/replay_hms.C(<runNum>, <numEvents>)"
  • Run SHMS analysis:
    • -q : exit analyzer after running
    • <runNum> : run number
    • <numEvents> : number of events to analyze; 50000 for short, -1 for full replay
 $ ./hcana -q "SCRIPTS/SHMS/replay_shms.C(<runNum>, <numEvents>)"
  • Open HMS onlineGUI:
    • need to run HMS analysis for 50000 events before this
    • -f : which config file to load
    • -r : which run to display
    • <runNum> : run number
 $ cd onlineGUI
 $ ./online -f Config/HMS/GEN/hallc_onlana.cfg -r <runNum>
 $ cd ..
  • Open SHMS onlineGUI:
    • need to run SHMS analysis for 50000 events before this
    • -f : which config file to load
    • -r : which run to display
    • <runNum> : run number
 $ cd onlineGUI
 $ ./online -f Config/SHMS/GEN/hallc_onlana.cfg -r <runNum>
 $ cd ..
  • Run SHMS kpp analysis through onlineGUI:
    • need to run SHMS analysis for -1 events before this
    • -f : which config file to load
    • -r : which run to analyze
    • -P : produce `.pdf` and `.root` file
    • <runNum> : run number
 $ cd onlineGUI
 $ ./online -f Config/kpp.cfg -r <runNum> -P
 $ mv kpp_<runNum>.pdf ../HISTOGRAMS
 $ mv kpp_<runNum>.root ../HISTOGRAMS
 $ cd ..