89 lines
2.9 KiB
C++
89 lines
2.9 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: Em1RunAction.hh,v 1.10 2002/12/11 14:19:22 maire Exp $
|
|
// GEANT4 tag $Name: geant4-05-00 $
|
|
//
|
|
//
|
|
|
|
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
|
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
|
|
|
#ifndef Em1RunAction_h
|
|
#define Em1RunAction_h 1
|
|
|
|
#include "G4UserRunAction.hh"
|
|
#include "ProcessesCount.hh"
|
|
#include "globals.hh"
|
|
|
|
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
|
|
|
class G4Run;
|
|
|
|
#ifndef G4NOHIST
|
|
namespace AIDA {
|
|
class ITree;
|
|
class IHistogram1D;
|
|
}
|
|
#endif
|
|
|
|
class Em1RunAction : public G4UserRunAction
|
|
{
|
|
public:
|
|
Em1RunAction();
|
|
~Em1RunAction();
|
|
|
|
public:
|
|
void BeginOfRunAction(const G4Run*);
|
|
void EndOfRunAction(const G4Run*);
|
|
|
|
void CountTraks0(G4int nt) { NbOfTraks0 += nt;}
|
|
void CountTraks1(G4int nt) { NbOfTraks1 += nt;}
|
|
void CountSteps0(G4int ns) { NbOfSteps0 += ns;}
|
|
void CountSteps1(G4int ns) { NbOfSteps1 += ns;}
|
|
void CountProcesses(G4String);
|
|
|
|
#ifndef G4NOHIST
|
|
AIDA::IHistogram1D* GetHisto(G4int id) {return histo[id];}
|
|
#endif
|
|
|
|
private:
|
|
void bookHisto();
|
|
void cleanHisto();
|
|
|
|
private:
|
|
G4int NbOfTraks0, NbOfTraks1;
|
|
G4int NbOfSteps0, NbOfSteps1;
|
|
ProcessesCount* ProcCounter;
|
|
|
|
#ifndef G4NOHIST
|
|
AIDA::ITree* tree;
|
|
AIDA::IHistogram1D* histo[3];
|
|
#endif
|
|
};
|
|
|
|
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
|
|
|
#endif
|
|
|