25 int main(
int argc,
char **argv)
36 JParser<> zap(
"Program to convert ntuples to detector.");
45 catch(
const exception &error) {
46 FATAL(error.what() << endl);
73 DEBUG(geometry << endl);
75 const int id = geometry.getID();
86 master.add(geometry.getPosition());
90 if (module.size() == master.size()) {
92 for (
int pmt = 0; pmt != (int) master.size(); ++pmt) {
100 ERROR(
"Module sizes inconsistent " << module.size() <<
" != " << master.size() << endl);
107 ERROR(
"Missing module " << geometry.getID() << endl);
Utility class to parse command line options.
then echo Test string reversed by master(hit< return > to continue)." $DIR/JProcess -c "$DIR/JEcho" -rC fi if (( 1 ))
int main(int argc, char *argv[])
Data structure for a composite optical module.
Router for direct addressing of module data in detector data structure.
void setAxis(const JAxis3D &axis)
Set axis.
Data structure for detector geometry and calibration.
#define make_field(A,...)
macro to convert parameter to JParserTemplateElement object
void compile()
Compile module data.
void store(const std::string &file_name, const JDetector &detector)
Store detector to output file.
Auxiliary class for CPU timing and usage.
const JPMT & getPMT(const int index) const
Get PMT.
General purpose messaging.
Direct access to module in detector data structure.
then JCookie sh JDataQuality D $DETECTOR_ID R
void load(const std::string &file_name, JDetector &detector)
Load detector from input file.
then fatal Wrong number of arguments fi set_variable DETECTOR $argv[1] set_variable INPUT_FILE $argv[2] eval JPrintDetector a $DETECTOR O IDENTIFIER eval JPrintDetector a $DETECTOR O SUMMARY JAcoustics sh $DETECTOR_ID source JAcousticsToolkit sh CHECK_EXIT_CODE typeset A EMITTERS get_tripods $WORKDIR tripod txt EMITTERS get_transmitters $WORKDIR transmitter txt EMITTERS for EMITTER in
Utility class to parse command line options.
const JModuleAddress & getAddress(const JObjectID &id) const
Get address of module.
bool hasModule(const JObjectID &id) const
Has module.
do set_variable DETECTOR_TXT $WORKDIR detector
JDetectorBuilder & getDetectorBuilder()
Get detector builder.
Auxiliary interface for building detector.
Binary buffered file input.
#define DEBUG(A)
Message macros.