// 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: ExN02EventAction.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 --> testEventAction.hh
//
// Accumulated the energy deposited in sensitive volumes
//
//////////////////////////////////////////////////////////////////

#ifndef testEventAction_h
#define testEventAction_h 1

#include "G4UserEventAction.hh"
#include "globals.hh"

class G4Event;
class testRunAction;

class testEventAction : public G4UserEventAction
{
  public:
    testEventAction(testRunAction*);
    ~testEventAction();

  public:
    void BeginOfEventAction(const G4Event*);
    void EndOfEventAction(const G4Event*);
    
    void addEdep(G4double Edep);          

  private:
    testRunAction*             runAction;
    G4double                  TotalEnergyDeposit;

};

#endif
