Auxiliary plot fit function of JFitK40.cc.  
More...
#include <string>
#include <iostream>
#include <iomanip>
#include <cmath>
#include "TROOT.h"
#include "TFile.h"
#include "TH1D.h"
#include "JDetector/JModule.hh"
#include "JDetector/JDetectorToolkit.hh"
#include "JTools/JCombinatorics.hh"
#include "JROOT/JRootToolkit.hh"
#include "JCalibrate/JCalibrateK40.hh"
#include "JCalibrate/JFitK40.hh"
#include "Jeep/JProperties.hh"
#include "Jeep/JPrint.hh"
#include "Jeep/JParser.hh"
#include "Jeep/JMessage.hh"
 
Go to the source code of this file.
 | 
| int  | main (int argc, char **argv) | 
|   | 
Auxiliary plot fit function of JFitK40.cc. 
- Author
 - mdejong 
 
Definition in file JPlotK40.cc.
 
      
        
          | int main  | 
          ( | 
          int  | 
          argc,  | 
        
        
           | 
           | 
          char **  | 
          argv  | 
        
        
           | 
          ) | 
           |  | 
        
      
 
Definition at line 30 of file JPlotK40.cc.
   35   JFitK40Parameters fitk40;               
 
   50     JParser<> zap(
"Auxiliary plot fit function of JFitK40.cc.");
 
   58   catch(
const exception &error) {
 
   59     FATAL(error.what() << endl);
 
   63   const JModule module = getModule<JKM3NeT_t>(1001);
 
   65   const JCombinatorics combinatorics(module.size());
 
   67   const int    nx   = combinatorics.getNumberOfPairs();
 
   68   const double xmin = -0.5;
 
   69   const double xmax = nx - 0.5;
 
   77               h1.GetXaxis()->GetXmin(),
 
   78               h1.GetXaxis()->GetXmax(),
 
   83   fit.setModelParameters(fitk40.getModelParameters());
 
   85   fit.sort(JPairwiseComparator(module));
 
   87   for (
int ix = 1; ix <= h1.GetXaxis()->GetNbins(); ++ix) {
 
   89     const Double_t 
x = h1.GetXaxis()->GetBinCenter(ix);
 
   92     const double             rate = fit.getValue(pair);
 
   94     h1.SetBinContent(ix, rate);
 
Utility class to parse command line options. 
 
JCombinatorics::pair_type pair_type
 
JFitK40_t< TF2 > JFitK40
Type definition for backward compatibility. 
 
#define gmake_property(A)
macros to convert (template) parameter to JPropertiesElement object 
 
then set_variable singlesRate set_variable doublesRate set_variable numberOfSlices echo Generating random background echo Singles rate
 
Utility class to parse parameter values. 
 
Empty structure for specification of parser element that is initialised (i.e. does not require input)...
 
#define make_field(A,...)
macro to convert parameter to JParserTemplateElement object