25 int main(
int argc, 
char **argv)
 
   36     JParser<> zap(
"Auxiliary program to create module map of PMT addresses.");
 
   38     zap[
'a'] = 
make_field(detectorFile, 
"detector file");
 
   44   catch(
const exception &error) {
 
   45     FATAL(error.what() << endl);
 
   59     FATAL(
"No detector address map for detector identier " << 
detector.getID() << endl);
 
   72   for (JDetector::const_iterator module = 
detector.begin(); module != 
detector.end(); ++module) {
 
   78     for (
size_t i = 0; i != module->size(); ++i) {
 
   82     data.push_back(buffer);
 
int main(int argc, char **argv)
 
Data structure for detector geometry and calibration.
 
General purpose messaging.
 
Utility class to parse command line options.
 
#define make_field(A,...)
macro to convert parameter to JParserTemplateElement object
 
I/O formatting auxiliaries.
 
Lookup table for PMT addresses in detector.
 
const JModuleAddressMap & get(const int id) const
Get module address map.
 
Lookup table for PMT addresses in optical module.
 
const JPMTPhysicalAddress & getPMTPhysicalAddress(const int tdc) const
Get PMT physical address.
 
std::string toString() const
Convert PMT physical address to string.
 
int getID() const
Get identifier.
 
Utility class to parse command line options.
 
void load(const std::string &file_name, JDetector &detector)
Load detector from input file.
 
void store(const std::string &file_name, const JDetector &detector)
Store detector to output file.
 
bool hasDetectorAddressMap(const int id)
Check if detector address map is available.
 
JDetectorAddressMap & getDetectorAddressMap()
Get detector address map.
 
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
 
static const std::string Message_t
 
static const std::string DetID_t
 
static const std::string Code_t
 
static const std::string Data_t
 
static const std::string OK_t
 
static const std::string Arguments_t
 
static const std::string DOMMap_t
 
static const std::string Error_t
 
static const std::string Comment_t
 
Auxiliary data structure for module address map.