24 int main(
int argc,
char **argv)
35 JParser<> zap(
"Program to convert ntuples to detector.");
44 catch(
const exception &error) {
45 FATAL(error.what() << endl);
72 DEBUG(geometry << endl);
74 const int id = geometry.getID();
85 master.add(geometry.getPosition());
89 if (module.size() == master.size()) {
91 for (
int pmt = 0; pmt != (int) master.size(); ++pmt) {
99 ERROR(
"Module sizes inconsistent " << module.size() <<
" != " << master.size() << endl);
106 ERROR(
"Missing module " << geometry.getID() << endl);
Utility class to parse command line options.
int main(int argc, char *argv[])
Data structure for a composite optical module.
Router for direct addressing of module data in detector data structure.
then echo Test string reversed by master(hit< return > to continue)." JProcess -c "JEcho" -rC fi if (( 1 ))
void setAxis(const JAxis3D &axis)
Set axis.
Lookup table for PMT addresses in detector.
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.
JDetectorAddressMap & getDetectorAddressMap()
Get detector address map.
const JPMT & getPMT(const int index) const
Get PMT.
void rotate(const JRotation3D &R)
Rotate module.
then usage $script[distance] fi case set_variable R
General purpose messaging.
Direct access to module in detector data structure.
void load(const std::string &file_name, JDetector &detector)
Load detector from input file.
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
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 source JAcoustics sh $DETECTOR_ID CHECK_EXIT_CODE typeset A TRIPODS get_tripods $WORKDIR tripod txt TRIPODS for EMITTER in
Binary buffered file input.
const JModule & getModule(const JDetector &detector, const JModuleLocation &location)
find module with a given string and floor number
#define DEBUG(A)
Message macros.