Difference between revisions of "Analysis How-to"

From HallCWiki
Jump to navigationJump to search
 
(9 intermediate revisions by 4 users not shown)
Line 1: Line 1:
 +
== New analyzer (Pol He3 Run Group, 2020) ==
 +
 +
[[Polarized_Helium-3_Experiments#New_Online_Monitoring_Instructions|Instructions for the Online Monitoring for Pol He3 Experiments]]
 +
 
== Short Analysis Instructions ==
 
== Short Analysis Instructions ==
  
Line 5: Line 9:
  
 
* Source environment and go to analysis folder:
 
* Source environment and go to analysis folder:
   $ go_kpp
+
   $ go_analysis
 +
 
 +
The standard.kinematics files should be automatically updated for the Pol He3 Run period.
 +
<strike>
 +
* Check if the kinematics for the run are up to date
 +
There should be a window opened with the standard kinematics for each run, if NOT, then:
 +
 
 +
  $ emacs DBASE/HMS/STD/standard.kinematics &
 +
  $ emacs DBASE/SHMS/STD/standard.kinematics &
 +
 
 +
If the kinematics for the current run are NOT updated, please update.
 +
</strike>
  
 +
* Run online analysis after 50k events have been collected
 
* Run online analysis:
 
* Run online analysis:
 
** onlineGUI will pop-up automatically
 
** onlineGUI will pop-up automatically
** log will be saved under `log` directory
+
** <runNum> : run number; If it is omitted, the system will analyze the most recent (or current) run.
** <runNum> : run number; last run if omitted
 
 
   $ ./run_hms.sh <runNum>
 
   $ ./run_hms.sh <runNum>
 
   $ ./run_shms.sh <runNum>
 
   $ ./run_shms.sh <runNum>
  
 +
* Run full online analysis after the run has been completed
 
* Run full analysis:
 
* Run full analysis:
** A `pdf` and `root` file from the kpp script for onlineGUI will be saved under `HISTOGRAMS`
+
** A `pdf` and `root` file will be saved under `HISTOGRAMS`
** log will be saved under `log` directory
+
** <runNum> : run number; will analyze last run if omitted
** <runNum> : run number; last run if omitted
 
 
   $ ./full_hms.sh <runNum>
 
   $ ./full_hms.sh <runNum>
 
   $ ./full_shms.sh <runNum>
 
   $ ./full_shms.sh <runNum>
Line 36: Line 51:
 
** <runNum> : run number
 
** <runNum> : run number
 
** <numEvents> : number of events to analyze; 50000 for short, -1 for full replay
 
** <numEvents> : number of events to analyze; 50000 for short, -1 for full replay
   $ ./hcana -q "SCRIPTS/HMS/replay_hms.C(<runNum>, <numEvents>)"
+
   $ ./hcana -q "SCRIPTS/HMS/PRODUCTION/replay_production_hms.C(<runNum>, <numEvents>)"
  
 
* Run SHMS analysis:
 
* Run SHMS analysis:
Line 42: Line 57:
 
** <runNum> : run number
 
** <runNum> : run number
 
** <numEvents> : number of events to analyze; 50000 for short, -1 for full replay
 
** <numEvents> : number of events to analyze; 50000 for short, -1 for full replay
   $ ./hcana -q "SCRIPTS/SHMS/replay_shms.C(<runNum>, <numEvents>)"
+
   $ ./hcana -q "SCRIPTS/SHMS/PRODUCTION/replay_production_shms.C(<runNum>, <numEvents>)"
  
 
* Open HMS onlineGUI:
 
* Open HMS onlineGUI:
Line 50: Line 65:
 
** <runNum> : run number
 
** <runNum> : run number
 
   $ cd onlineGUI
 
   $ cd onlineGUI
   $ ./online -f Config/HMS/GEN/hallc_onlana.cfg -r <runNum>
+
   $ ./online -f CONFIG/HMS/PRODUCTION/hms_production.cfg -r <runNum>
 
   $ cd ..
 
   $ cd ..
  
Line 59: Line 74:
 
** <runNum> : run number
 
** <runNum> : run number
 
   $ cd onlineGUI
 
   $ cd onlineGUI
   $ ./online -f Config/SHMS/GEN/hallc_onlana.cfg -r <runNum>
+
   $ ./online -f CONFIG/SHMS/PRODUCTION/shms_production.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 ..

Latest revision as of 22:02, 29 August 2020

New analyzer (Pol He3 Run Group, 2020)

Instructions for the Online Monitoring for Pol He3 Experiments

Short Analysis Instructions

  • Connect to online analysis machine:
 $ ssh cdaq@cdaql1
  • Source environment and go to analysis folder:
 $ go_analysis

The standard.kinematics files should be automatically updated for the Pol He3 Run period.

  • Check if the kinematics for the run are up to date

There should be a window opened with the standard kinematics for each run, if NOT, then:

 $ emacs DBASE/HMS/STD/standard.kinematics &
 $ emacs DBASE/SHMS/STD/standard.kinematics &

If the kinematics for the current run are NOT updated, please update.

  • Run online analysis after 50k events have been collected
  • Run online analysis:
    • onlineGUI will pop-up automatically
    • <runNum> : run number; If it is omitted, the system will analyze the most recent (or current) run.
 $ ./run_hms.sh <runNum>
 $ ./run_shms.sh <runNum>
  • Run full online analysis after the run has been completed
  • Run full analysis:
    • A `pdf` and `root` file will be saved under `HISTOGRAMS`
    • <runNum> : run number; will analyze 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/PRODUCTION/replay_production_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/PRODUCTION/replay_production_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/PRODUCTION/hms_production.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/PRODUCTION/shms_production.cfg -r <runNum>
 $ cd ..