#include <string>
#include <iostream>
#include "TROOT.h"
#include "TFile.h"
#include "TH1D.h"
#include "JPhysics/JGeanx.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 histogram photon emission profile from showers using JPHYSICS::JGeanx. 
- Author
 - mdejong 
 
Definition in file JGeanx.cc.
 
◆ main()
      
        
          | int main  | 
          ( | 
          int  | 
          argc,  | 
        
        
           | 
           | 
          char *  | 
          argv[]  | 
        
        
           | 
          ) | 
           |  | 
        
      
 
Definition at line 20 of file JGeanx.cc.
   29     JParser<> zap(
"Example program to histogram photon emission profile from showers.");
 
   36   catch(
const exception &error) {
 
   37     FATAL(error.what() << endl);
 
   45   TH1D h1(
"Probability", NULL, 1000, -1.0, +1.0);
 
   46   TH1D h2(
"Integral",    NULL, 1000, -1.0, +1.0);
 
   48   for(
int i = 1; i <= h1.GetNbinsX(); ++i) {
 
   50     const double x = h1.GetBinCenter(i);
 
   53     h2.Fill(x, 
geanx(-1.0,x));
 
 
 
 
 
static const JGeanx geanx(0.35, -5.40)
Function object for the number of photons from EM-shower as a function of emission angle.