Skip to content
Snippets Groups Projects
  • Ryan-Ambrose's avatar
    b3adb81a
    Added HMS Calibration script (#481) · b3adb81a
    Ryan-Ambrose authored
    * Modified calorimeter calibration & implemented BCM monitoring
    
    * Added calibration script for HMS Cherenkov
    
    * Added README
    
    Undid changes to ease pull request.
    
    Undid change to pcal_calib.param
    
    Added README
    b3adb81a
    History
    Added HMS Calibration script (#481)
    Ryan-Ambrose authored
    * Modified calorimeter calibration & implemented BCM monitoring
    
    * Added calibration script for HMS Cherenkov
    
    * Added README
    
    Undid changes to ease pull request.
    
    Undid change to pcal_calib.param
    
    Added README
README 818 B
# Calibrating the Cherenkov
* To automatically run the calibration
```
root -l "run_cal.C(RunNumber,NumEvents,COIN)"
```
* Where COIN == 1 indicates the file was a full coincident replay
* If options are left blank, user will be prompted for a value
* To manually run the scripts:
* Link your ROOT file
* Run the script with options (listed after script is executed)
```
root -l ../../ROOTfiles/hms_replay_488_-1.root
T->Process("calibration.C+", "options");
```
* Or, if you want to run using PROOF
```
root -l
TChain ch("T");
ch.Add("/path/to/ROOTfile");
TProof::Open(""); \\For PROOF-lite, adjust accordingly for PROOF
ch.SetProof();
ch.Process("calibration.C+", "options");
```
### Options for the calibration script are (case/spelling important):
* **showall** - display all calibration details (lots of windows)