Import Geant4 1.0.0 source tree
This commit is contained in:
@@ -0,0 +1,81 @@
|
||||
// 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: Em3RunAction.hh,v 1.1.4.1 1999/12/07 20:47:00 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-01-00 $
|
||||
//
|
||||
//
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
|
||||
|
||||
#ifndef Em3RunAction_h
|
||||
#define Em3RunAction_h 1
|
||||
|
||||
#include "Em3DetectorConstruction.hh"
|
||||
|
||||
#include "G4UserRunAction.hh"
|
||||
#include "globals.hh"
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
|
||||
|
||||
class G4Run;
|
||||
class Em3RunActionMessenger;
|
||||
|
||||
class HepTupleManager;
|
||||
class HepTuple;
|
||||
|
||||
class Em3RunAction : public G4UserRunAction
|
||||
{
|
||||
public:
|
||||
|
||||
Em3RunAction(Em3DetectorConstruction*);
|
||||
~Em3RunAction();
|
||||
|
||||
void BeginOfRunAction(const G4Run*);
|
||||
void EndOfRunAction(const G4Run*);
|
||||
|
||||
void fillPerEvent(G4int,G4double,G4double);
|
||||
|
||||
HepTuple* GetnTuple() {return ntuple;}
|
||||
|
||||
void SetSaveFlag(G4String val) {saveFlag = val;}
|
||||
void SetRndmFreq(G4int val) {saveRndm = val;}
|
||||
G4int GetRndmFreq() {return saveRndm;}
|
||||
|
||||
private:
|
||||
void bookHisto();
|
||||
|
||||
private:
|
||||
|
||||
G4double sumEAbs[MaxAbsor], sum2EAbs[MaxAbsor];
|
||||
G4double sumLAbs[MaxAbsor], sum2LAbs[MaxAbsor];
|
||||
|
||||
HepTupleManager* hbookManager;
|
||||
HepTuple* ntuple;
|
||||
|
||||
Em3DetectorConstruction* Detector;
|
||||
Em3RunActionMessenger* runMessenger;
|
||||
G4String saveFlag;
|
||||
G4int saveRndm;
|
||||
};
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
|
||||
|
||||
inline
|
||||
void Em3RunAction::fillPerEvent(G4int kAbs, G4double EAbs, G4double LAbs)
|
||||
{
|
||||
//accumulate statistic
|
||||
//
|
||||
sumEAbs[kAbs] += EAbs; sum2EAbs[kAbs] += EAbs*EAbs;
|
||||
sumLAbs[kAbs] += LAbs; sum2LAbs[kAbs] += LAbs*LAbs;
|
||||
}
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user