How to make a report for
DriftDetector with CORAL.
How to make a report for DriftDetector with CORAL
- Modify CoralUser.cc file
- Set your options in a CORAL option file. If you use saschas calibration
file format be sure that you specify the directory. At the moment
for debug reasons saschas calibration is compared with the standard
coral calibration, if differences are found beyond the numerical
precision a error message will be created. Therefore you should use
for each run the calibration files belonging to the apropriate
detectors.dat.
Don't worry about:
- Run many coral jobs:
- $ coral_batches.py --queue=1nh --jobs=500 --evjob=2000 --dir=27573
--opt=trafdic.opt --exe=Linux/myprogram --cp=/castor/cern.ch/user/z/zvyagin/27573/
(don not forget the last slash)
- Wait till they finish...
- Copy output root files to a single directory:
- cp.py /castor/cern.ch/user/z/zvyagin/27573 out_dir/
- What is in the rootfile?
- A number of histograms
- One ntuple for each detector plane, containing:
- x = x - coordinate of in MRS [cm]
- y = y - coordinate of in MRS
- z = z - coordinate of in MRS
- wx = x - coordinate of in DRS
- wy = y - coordinate of in DRS
- wz = z - coordinate of in DRS
- ax = x - angle of (def?) in MRS
- ay = y - angle of (def?) in MRS
- src = source ID
- geo = geographical ID
- ech = ?
- ch = channel number
- chp = ?
- chx = ?
- t = time of hit
- d = dsitance between expected hit and wire
- Xi2 = total
- res = resolution
- nh = number of hits
- Join all of them:
- $ root -b -q 'coral/src/user/join.C("27573.root")'
- Do not delete original files! They are still needed!
- Analyse the ntuple:
- $ plots -f 27573.root -o 27573a.root -d calib-dir -e -v2~~start-2002-06-06-23:04:00~~finish-2004-10-31-23:59:59
- Create a report from the root file:
- $ root -b -q report.C("27573a.root","27573a.ps")
Miscellaneous/ Tips and Tricks
- Transform Detector.dat into Saschas calibration file:
- Program: convert_detdat
- example: convert_detdat detectors.27456.minus.dat out_dir/ -v2~~start-2002-06-06-23\:04\:00~~finish-2004-10-31-23\:59\:59
- usage: convert_detdat det.dat output_directory calibration_file_extension
(extension should be different from standard database ones).