31int main(
int argc,
char **argv)
52 JParser<> zap(
"Auxiliary plot fit function of JFitK40.cc.");
61 catch(
const exception &error) {
62 FATAL(error.what() << endl);
68 if (detectorFile !=
"") {
83 module = getModule<JKM3NeT_t>(1001);
88 const int nx = model.getNumberOfPairs();
89 const double xmin = -0.5;
90 const double xmax = nx - 0.5;
92 if (
debug >= debug_t) {
93 for (
size_t i = 0; i !=
module.size(); ++i) {
94 DEBUG(
"PMT " <<
FILL(2,
'0') << i <<
' ' << module[i].getDirection() << endl);
100 TH1D h1(
"h1", NULL, nx, xmin, xmax);
104 for (
int ix = 1; ix <= h1.GetXaxis()->GetNbins(); ++ix) {
106 const Double_t x = h1.GetXaxis()->GetBinCenter(ix);
109 const double rate = model.getValue(
pair);
113 DEBUG(
"bin " << setw(3) << ix <<
' '
114 <<
"(" <<
FILL(2,
'0') <<
pair.first <<
"," <<
FILL(2,
'0') <<
pair.second <<
")" <<
FILL() <<
' '
115 <<
FIXED(6,3) << getDot(module[
pair.first] .getDirection(),
116 module[
pair.second].getDirection()) <<
' '
117 <<
FIXED(6,3) << rate << endl);
119 h1.SetBinContent(ix, rate);
122 cout <<
"Total rate " <<
FIXED(7,3) << R <<
" [Hz]." << endl;
Data structure for detector geometry and calibration.
General purpose messaging.
#define DEBUG(A)
Message macros.
Data structure for optical module.
Utility class to parse command line options.
#define make_field(A,...)
macro to convert parameter to JParserTemplateElement object
int main(int argc, char **argv)
I/O formatting auxiliaries.
Utility class to parse parameter values.
#define gmake_property(A)
macros to convert (template) parameter to JPropertiesElement object
Data structure for a composite optical module.
Utility class to parse parameter values.
Utility class to parse command line options.
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
Auxiliary data structure for sequence of same character.
Auxiliary data structure for floating point format specification.
Model for fit to acoustics data.
Fit parameters for two-fold coincidence rate due to K40.
Empty structure for specification of parser element that is initialised (i.e. does not require input)...