#include <string>
#include <iostream>
#include <iomanip>
#include "JDetector/JDetector.hh"
#include "JDetector/JDetectorToolkit.hh"
#include "JDetector/JPMTParametersMap.hh"
#include "Jeep/JParser.hh"
#include "Jeep/JMessage.hh"
Go to the source code of this file.
|
int | main (int argc, char **argv) |
|
Example program to create PMT parameters map.
- Author
- mdejong
Definition in file JPMTParametersMap.cc.
◆ main()
int main |
( |
int |
argc, |
|
|
char ** |
argv |
|
) |
| |
Definition at line 20 of file JPMTParametersMap.cc.
27 JPMTParametersMap parameters;
31 JParser<> zap(
"Example program to create PMT parameters map.");
39 catch(
const exception &error) {
40 FATAL(error.what() << endl);
44 if (detectorFile !=
"") {
49 load(detectorFile, detector);
51 catch(
const JException& error) {
55 for (JDetector::const_iterator module = detector.begin(); module != detector.end(); ++module) {
57 for (
unsigned int pmt = 0; pmt != module->size(); ++pmt) {
59 const JPMTIdentifier id(module->getID(), pmt);
61 parameters[id] = parameters.getDefaultPMTParameters();