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.
Data structure for a composite optical module.
Router for direct addressing of module data in detector data structure.
esac print_variable DETECTOR INPUT_FILE OUTPUT_FILE CDF for TYPE in
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.
esac $JPP_DIR examples JDetector JTransitTime o $OUTPUT_FILE n N $NPE T $TTS_NS d $DEBUG for HISTOGRAM in tts tt2 pmt
#define make_field(A,...)
macro to convert parameter to JParserTemplateElement object
void compile()
Compile position of module from the positions and directions of the PMTs.
Auxiliary class for CPU timing and usage.
void load(const JString &file_name, JDetector &detector)
Load detector from input file.
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.
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.
void store(const JString &file_name, const JDetector &detector)
Store detector to output file.
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.
int main(int argc, char *argv[])