25 int main(
int argc, 
char **argv)
 
   37     JParser<> zap(
"Auxiliary program to decompose detector to separate calibrations.");
 
   39     zap[
'a'] = 
make_field(detectorFile, 
"detector file");
 
   47   catch(
const exception &error) {
 
   48     FATAL(error.what() << endl);
 
   62     FATAL(
"No detector address map for detector identier " << 
detector.getID() << endl);
 
   70   for (JDetector::const_iterator module = 
detector.begin(); module != 
detector.end(); ++module) {
 
   72     if (module->getFloor() != 0) {
 
   74       JModule buffer = 
getModule(demo.get(module->getID()), module->getID(), module->getLocation());
 
   81         FATAL(
"Module " << setw(10) <<  module->getID() << 
' ' << module->getLocation() << 
" incompatible with reference." << endl);
 
  101     for (JDetector::const_iterator module = 
detector.begin(); module != 
detector.end(); ++module) {
 
  102       for (JModule::const_iterator pmt = module->begin(); pmt != module->end(); ++pmt) {
 
  124     for (JDetector::const_iterator module = 
detector.begin(); module != 
detector.end(); ++module) {
 
  126       const JModule& buffer = 
getModule(demo.get(module->getID()), module->getID(), module->getLocation());
 
  152     for (JDetector::const_iterator module = 
detector.begin(); module != 
detector.end(); ++module) {
 
  154       const JModule& buffer = 
getModule(demo.get(module->getID()), module->getID(), module->getLocation());
 
  156       if (module->getFloor() != 0) {
 
  178     for (JDetector::const_iterator module = 
detector.begin(); module != 
detector.end(); ++module) {
 
  180       if (module->getFloor() == 0)
 
  204     for (JDetector::const_iterator module = 
detector.begin(); module != 
detector.end(); ++module) {
 
  205       if (module->getFloor() == 0)
 
  232       for (JDetector::const_iterator module = 
detector.begin(); module != 
detector.end(); ++module) {
 
  233         for (JModule::const_iterator pmt = module->begin(); pmt != module->end(); ++pmt) {
 
  234           data.push_back(
JPMTStatus_t(pmt->getID(), pmt->getStatus()));
 
  243       for (JDetector::const_iterator module = 
detector.begin(); module != 
detector.end(); ++module) {
 
  244         if (module->getFloor() == 0)
 
  245           data[0].push_back(
JModuleStatus_t(module->getID(), module->getStatus()));
 
  247           data[1].push_back(
JModuleStatus_t(module->getID(), module->getStatus()));
 
static const std::string Arguments_t
 
Utility class to parse command line options. 
 
int main(int argc, char *argv[])
 
static const std::string DOMStatusInfo_t
 
static const std::string Code_t
 
int getFloor() const 
Get floor number. 
 
Data structure for a composite optical module. 
 
static const std::string ACAL
acoustic time offsets (piezo sensor or hydrophone) 
 
static const std::string CCAL
compass alignment (a.k.a. quaternion calibration) 
 
static const std::string PMTT0s_t
 
bool hasDetectorAddressMap(const int id)
Check if detector address map is available. 
 
static const std::string Error_t
 
then JShowerPostfit f $INPUT_FILE o $OUTPUT_FILE N
 
static JRotation getRotation
Function object to get rotation matrix to go from first to second module. 
 
JCalibration getCalibration(const JCalibration &first, const JCalibration &second)
Get calibration to go from first to second calibration. 
 
Lookup table for PMT addresses in detector. 
 
Data structure for time calibration. 
 
Data structure for detector geometry and calibration. 
 
static const std::string BaseStatusInfo_t
 
Auxiliary data structure for module time calibration. 
 
static const std::string TCAL
PMT time offsets. 
 
static const std::string Comment_t
 
I/O formatting auxiliaries. 
 
Auxiliary data structure for compass rotation. 
 
#define make_field(A,...)
macro to convert parameter to JParserTemplateElement object 
 
void store(const std::string &file_name, const JDetector &detector)
Store detector to output file. 
 
JPosition3D getPosition(const Vec &pos)
Get position. 
 
static struct JACOUSTICS::@4 compare
Auxiliary data structure to sort transmissions. 
 
static const std::string DOMPositions_t
 
JDetectorAddressMap & getDetectorAddressMap()
Get detector address map. 
 
static const std::string RCAL
(optical|base) module orientations 
 
void rotate(const JRotation3D &R)
Rotate module. 
 
General purpose messaging. 
 
static const std::string DOMCompassRotations_t
 
static const std::string Message_t
 
std::string setWildCard(const std::string &file_name, const std::string &value)
Get file name by setting wild card to given value. 
 
then JCookie sh JDataQuality D $DETECTOR_ID R
 
static const std::string Data_t
 
Auxiliary data structure for PMT status. 
 
void load(const std::string &file_name, JDetector &detector)
Load detector from input file. 
 
Utility class to parse command line options. 
 
static const std::string SCAL
(module|PMT) status 
 
static const std::string BasePositions_t
 
static const std::string DOMRotations_t
 
Auxiliary data structure for module rotation. 
 
static const char FILENAME_WILD_CARD
wild card character for file name substitution 
 
Auxiliary data structure for module position. 
 
static const std::string BaseCompassRotations_t
 
do set_variable DETECTOR_TXT $WORKDIR detector
 
static const std::string PMTStatusInfo_t
 
static const std::string PCAL
(optical|base) module positions 
 
static const std::string DetID_t
 
Auxiliary data structure for PMT time calibration. 
 
Auxiliary data structure for module status. 
 
static const std::string DOMAcousticT0_t
 
const JModule & getModule(const JDetector &detector, const JModuleLocation &location)
find module with a given string and floor number 
 
static const std::string BaseAcousticT0_t
 
static const std::string OK_t
 
bool hasWildCard(const std::string &file_name)
Check presence of wild card.