Files
geant4/source/processes/hadronic/models/high_energy/include/G4HEPlot.hh
T
2016-06-08 16:57:27 +02:00

112 lines
3.3 KiB
C++

//
// ********************************************************************
// * DISCLAIMER *
// * *
// * The following disclaimer summarizes all the specific disclaimers *
// * of contributors to this software. The specific disclaimers,which *
// * govern, are listed with their locations in: *
// * http://cern.ch/geant4/license *
// * *
// * Neither the authors of this software system, nor their employing *
// * institutes,nor the agencies providing financial support for this *
// * work make any representation or warranty, express or implied, *
// * regarding this software system or assume any liability for its *
// * use. *
// * *
// * This code implementation is the intellectual property of the *
// * GEANT4 collaboration. *
// * By copying, distributing or modifying the Program (or any work *
// * based on the Program) you indicate your acceptance of this *
// * statement, and all its terms. *
// ********************************************************************
//
//
// $Id: G4HEPlot.hh,v 1.7 2002/12/12 19:17:59 gunter Exp $
// GEANT4 tag $Name: geant4-05-00 $
//
//
// G4 Gheisha friend class G4HEPlot -- header file
// last modified: H. Fesefeldt 18-November-1996
#include <stdio.h>
#include "globals.hh"
class G4HEPlot
{
public:
G4double Xstart;
G4double Xbin;
G4double Weight;
G4int Nbin;
G4int Entries;
G4int EntriesOverflow;
G4int EntriesUnderflow;
G4double WeightOverflow;
G4double WeightUnderflow;
G4double* Xvalue;
G4double* Yvalue;
G4HEPlot(){ };
~G4HEPlot(){ };
G4double getWeight()
{ return Weight;};
G4double getWeightUnderflow()
{ return WeightUnderflow; };
G4double getWeightOverflow()
{ return WeightOverflow;};
G4int getNumberOfEntries()
{ return Entries;};
G4int getNumberOfEntriesOverflow()
{ return EntriesOverflow;};
G4int getNumberOfEntriesUnderflow()
{ return EntriesUnderflow;};
G4int getNumberOfBins()
{ return Nbin;};
G4double getBinsize()
{ return Xbin;};
G4double getXstart()
{ return Xstart;};
void Init(G4int nbin, G4double xstart, G4double Xbin);
void Add( G4double s1, G4double s2, const G4HEPlot & p1, const G4HEPlot & p2 );
void Multiply( G4double s1, G4double s2, const G4HEPlot & p1, const G4HEPlot & p2 );
void Divide( G4double s1, G4double s2, const G4HEPlot & p1, const G4HEPlot & p2 );
void Scale( G4double s, const G4HEPlot & p);
void XScale( G4double a, G4double b);
void Shift( G4int nshift);
void Log( G4double s, const G4HEPlot & p);
void Sqrt( G4double s, const G4HEPlot & p);
void Reset();
void LinearFit(G4double& a, G4double& b);
void Fill(G4double x, G4double w);
void Print(G4String name, G4int i);
void DumpToFile(G4int aPlot, G4String aName);
void GetFromFile(G4int aPlot, G4String aName);
};