22 static const char*
const ARCA_t =
"ARCA";
23 static const char*
const ORCA_t =
"ORCA";
24 static const char*
const Antares_t =
"Antares";
25 static const char*
const NOPMTs_t =
"NOPMTs";
46int main(
int argc,
char **argv)
70 JParser<> zap(
"Auxiliary program to generate detector files.");
85 catch(
const exception &error) {
93 header = getARCADetectorHeader();
95 header = getORCADetectorHeader();
101 FATAL(
"Invalid option " << option <<
endl);
106 if (!hasDetectorAddressMap(
detector.getID())) {
107 FATAL(
"No detector address map for detector identifier " <<
detector.getID() <<
endl);
117 if (inputFile !=
"") {
119 const string file_name = getFullFilename(LD_LIBRARY_PATH, inputFile);
121 NOTICE(
"Reading file " << file_name <<
".. " << flush);
123 ifstream in(file_name.c_str());
137 FATAL(
"Error opening file " << inputFile);
306 FATAL(
"Available footprint inconsistent with specified number of lines "
333 DEBUG(i->getID() <<
' ' << i->getX() <<
' ' << i->getY() <<
endl);
346 option ==
ARCA_t ? ARCA_TBARZ_M :
347 option ==
ORCA_t ? ORCA_TBARZ_M :
352 const int id =
demo.getModuleID(location);
356 module.set(position);
363 for (
unsigned int floor = 1; floor <= parameters.
numberOfFloors; ++floor) {
371 const int id =
demo.getModuleID(location);
376 module = getModule<JKM3NeT_t> (id, location);
378 module = getModule<JAntares_t>(id, location);
380 module = JModule(id, location);
382 FATAL(
"Invalid option " << option <<
endl);
384 module.add(position);
386 for (JModule::iterator pmt =
module.begin(); pmt !=
module.end(); ++pmt, ++
PMT) {
JDAQPMTIdentifier PMT
Command line options.
int main(int argc, char **argv)
Data structure for detector geometry and calibration.
General purpose messaging.
#define DEBUG(A)
Message macros.
Utility class to parse command line options.
#define make_field(A,...)
macro to convert parameter to JParserTemplateElement object
Data structure for anchor position on sea bed.
Lookup table for PMT addresses in detector.
Auxiliary class for I/O of JDetectorParameters data structure.
Data structure for parameters for detector geometry.
JParameter< unsigned int > numberOfLines
JParameter< double > floorDistance_m
JParameter< int > detectorType
JParameter< unsigned int > numberOfFloors
JParameter< double > lineDistance_m
Logical location of module.
Data structure for a composite optical module.
Data structure for vector in three dimensions.
Template definition of a multi-dimensional oscillation probability interpolation table.
Utility class to parse command line options.
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
Empty structure for specification of parser element that is initialised (i.e. does not require input)...