Jpp
|
Auxiliary program to modify detector calibration. More...
#include <iostream>
#include <sstream>
#include <string>
#include <vector>
#include "TRandom3.h"
#include "JDetector/JDetector.hh"
#include "JDetector/JDetectorToolkit.hh"
#include "JDetector/JDetectorHeader.hh"
#include "JDetector/JModuleRouter.hh"
#include "JDetector/JPMTIdentifier.hh"
#include "JGeometry3D/JVector3D.hh"
#include "JTools/JConstants.hh"
#include "JLang/JException.hh"
#include "JSupport/JMeta.hh"
#include "Jeep/JeepToolkit.hh"
#include "Jeep/JParser.hh"
#include "Jeep/JMessage.hh"
Go to the source code of this file.
Functions | |
int | main (int argc, char **argv) |
Auxiliary program to modify detector calibration.
Syntax:
-M "<module identifier> (set|add|sub|randset|randadd|randsub) x0 [x1 [x2]]" -S "<string identifier> (set|add|sub|randset|randadd|randsub) x0 [x1 [x2]]" -M "<module identifier> (rot|randrot) phi" -S "<string identifier> (rot|randrot) phi" -M "<module identifier> (mul|randmul) factor" -S "<string identifier> (mul|randmul) factor" -P "<PMT identifier> (set|reset) PMT_STATUS" -@ "<key>=<value>[;<key>=<value>"
Options -M
and -S
refer to a module and a string, respectively.
If module identifier or string identifier is -1, the action takes place on all modules or strings in the detector, respectively.
The number of values apply to position or time calibration in the following way:
(t = x0)
(x = x0, y = x1, z = 0)
(x = x0, y = x1, z = x2)
The rotation is anti-clockwise around the z-axis.
The multiplication applies to the z-coordinates.
Note that the angles are defined in radians.
Option -@
refers to the header information.
The list of possible keys can be obtained using JPrintDetector.cc with option -O header
.
Multiple options -M
, -S
or -@
will be processed in order of appearance.
Note that if the output file name is the same as the input file name, the original file will be overwritten.
Definition in file JEditDetector.cc.
int main | ( | int | argc, |
char ** | argv | ||
) |
Definition at line 360 of file JEditDetector.cc.