Go to the documentation of this file.
27 int main(
int argc,
char **argv)
40 JParser<> zap(
"Auxiliary application to plot PMT parameters.");
42 zap[
'a'] =
make_field(detectorFile,
"detector file.");
44 zap[
'P'] =
make_field(parameters,
"PMT calibration data (or corresponding file name)");
49 catch(
const exception &error) {
50 FATAL(error.what() << endl);
63 FATAL(
"Empty detector." << endl);
68 for (JDetector::iterator module =
detector.begin(); module !=
detector.end(); ++module) {
70 DEBUG(
"Module " << setw(10) << module->getID() << endl);
76 for (JProperties::const_iterator p = properties.begin(); p != properties.end(); ++p) {
79 manager[
MAKE_CSTRING(module->getID() <<
"." << p->first)]->Fill((Double_t) pmt, p->second.getValue<
const double>());
81 catch(
const exception& error) {}
84 manager[
MAKE_CSTRING(module->getID() <<
"." << p->first)]->Fill((Double_t) pmt, p->second.getValue<
const bool>() ? 1.0 : 0.0);
86 catch(
const exception& error) {}
void Write(TFile &out)
Write histograms to file.
double getSurvivalProbability(const JPMTParameters ¶meters)
Get model dependent probability that a one photo-electron hit survives the simulation of the PMT assu...
void load(const JString &file_name, JDetector &detector)
Load detector from input file.
static const int NUMBER_OF_PMTS
Total number of PMTs in module.
Utility class to parse command line options.
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
#define MAKE_CSTRING(A)
Make C-string.
JProperties getProperties(const JEquationParameters &equation=JPMTParameters::getEquationParameters())
Get properties of this class.
Auxiliary class for map of PMT parameters.
int main(int argc, char **argv)
const JPMTParameters & getPMTParameters(const JPMTIdentifier &id) const
Get PMT parameters.
#define make_field(A,...)
macro to convert parameter to JParserTemplateElement object
Utility class to parse parameter values.
#define DEBUG(A)
Message macros.
KM3NeT DAQ data structures and auxiliaries.
double QE
relative quantum efficiency
Data structure for PMT parameters.