Go to the documentation of this file.
20 int main(
int argc,
char* argv[])
26 JPMTParameters parameters;
31 JProperties properties = parameters.getProperties();
33 JParser<> zap(
"Example program to calculate singles rate.");
41 catch(
const exception &error) {
42 FATAL(error.what() << endl);
49 JPMTAnalogueSignalProcessor cpu(parameters);
51 const double wmin = 280.0;
52 const double wmax = 700.0;
56 ng *= (wmax-wmin) / (wmin*wmax) * (300.0*600.0)/(600.0-300.0);
58 double R[] = { 0.0, 0.0 };
59 double W[] = { 0.0, 0.0 };
61 const char* option[] = {
"1Dx1D",
"2D" };
63 for (
double x = -1.0, dx = 0.02; x <= +1.0; x += dx) {
68 const double dw = 1.5;
70 for (
double w = wmin;
w <= wmax;
w += dw) {
74 for (
double x = -1.0, dx = 0.02; x <= +1.0; x += dx) {
82 for (
int i = 0; i !=
sizeof(R)/
sizeof(R[0]); ++i) {
84 R[i] *= wmax*wmin / (wmax - wmin);
85 R[i] *= bequerel * ng;
87 R[i] *= cpu.getSurvivalProbability(npe);
90 cout <<
"Rate " << setw(6) << left << option[i] <<
" [kHz]: " << R[i] << endl;
static const JPhotocathodeArea2D getPhotocathodeArea2D
Function object for photo-cathode area 3 inch PMT.
Empty structure for specification of parser element that is initialised (i.e.
Utility class to parse command line options.
double getQE(const double R, const double mu)
Get QE for given ratio of hit probabilities and expectation value of the number of photo-electrons.
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
int main(int argc, char *argv[])
double getAbsorptionLength(const double lambda)
Absoption length.
#define make_field(A,...)
macro to convert parameter to JParserTemplateElement object
Utility class to parse parameter values.
double getAngularAcceptance(const double x)
Angular acceptence of PMT.
const double getPhotocathodeArea()
Photo-cathode area 10 inch PMT.