// 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: ExN02RunAction.hh,v 1.3 1999/12/15 14:49:20 gunter Exp $
// GEANT4 tag $Name: geant4-02-00 $
//
// 
/////////////////////////////////////////////////////////////////
//
//  Modified: 31-01-2006  J.L. Tain -->  testRunAction.hh
//
//  Book and write histogram and efficiencies
//
/////////////////////////////////////////////////////////////////

#ifndef testRunAction_h
#define testRunAction_h 1

#include "G4UserRunAction.hh"
#include "globals.hh"

class G4Run;

class testRunAction : public G4UserRunAction
{
  public:
    testRunAction();
    ~testRunAction();

  public:
    void BeginOfRunAction(const G4Run*);
    void EndOfRunAction(const G4Run*);

    void fillHistogram(G4double Energy);

private:
    G4int                 NumberChannel;
    G4double              EnergyRange;
    G4double              Histogram[4000];

    G4long                TotalCounts;
  

};

#endif





