Go to the documentation of this file.    1 #ifndef __JGIZMO__JVOLUME__ 
    2 #define __JGIZMO__JVOLUME__ 
   34             const bool  Elog10 = 
false) :
 
   43       const JHead buffer(head);
 
  115     inline Double_t 
getX(
const Double_t E, 
double constrain = 
false)
 const 
  117       const double x = (
elog ? log10(E) : E);
 
  138     inline Double_t 
getE(
const Double_t x, 
double constrain = 
false)
 const 
  140       const double E = (
elog ? pow(10.0, x) : x);
 
  145         } 
else if (E > 
Emax) {
 
  161     inline Double_t 
getW(TAxis* axis, 
const Double_t E)
 const 
  163       const Int_t    index = axis->FindBin(
getX(E));
 
  165       const Double_t xmin  = axis->GetBinLowEdge(index);
 
  166       const Double_t xmax  = axis->GetBinUpEdge (index);
 
  168       const Double_t Wmin  = 
getW(
getE(xmin));
 
  169       const Double_t Wmax  = 
getW(
getE(xmax));
 
  171       return Wall / (Wmax - Wmin);
 
  181     inline double getW(
const double E)
 const 
 
bool elog
histogram option
 
double Emax
maximal energy
 
JAANET::livetime livetime
 
bool is_valid(const T &value)
Check validity of given value.
 
Double_t getE(const Double_t x, double constrain=false) const
Get energy.
 
double volume
Volume [m^3].
 
Double_t getXmax() const
Get maximal abscissa value.
 
JVolume & mul(const double factor)
Multiply weight.
 
double numberOfEvents
Number of events.
 
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
 
Double_t getXmin() const
Get minimal abscissa value.
 
Double_t getW(TAxis *axis, const Double_t E) const
Get bin width corrected energy spectrum dependent weight.
 
double getWall() const
Get generation dependent weight.
 
The Head class reflects the header of Monte-Carlo event files, which consists of keys (also referred ...
 
double Emin
minimal energy
 
Auxiliary class for histogramming of effective volume.
 
double numberOfSeconds
Live time [s].
 
Double_t getX(const Double_t E, double constrain=false) const
Get abscissa value.
 
Extensions to AAnet data format.
 
double Wall
generation volume
 
double alpha
spectral index
 
Auxiliary applications for use of ROOT and more.
 
double Emax
Maximal energy [GeV].
 
double Emin
Minimal energy [GeV].
 
double getAlpha() const
Get spectral index of energy distribution.
 
JAANET::spectrum spectrum
 
double getW(const double E) const
Get generation dependent integral value of given energy.
 
JVolume(const Head &head, const bool Elog10=false)
Constructor.
 
JVolume & div(const double factor)
Divide weight.
 
double alpha
Energy spectrum: .