82 lines
2.5 KiB
C++
82 lines
2.5 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: RE02RunAction.hh,v 1.1 2005/11/24 01:44:18 asaim Exp $
|
|
// GEANT4 tag $Name: geant4-08-00 $
|
|
//
|
|
|
|
#ifndef RE02RunAction_h
|
|
#define RE02RunAction_h 1
|
|
|
|
#include "G4UserRunAction.hh"
|
|
#include "globals.hh"
|
|
#include <vector>
|
|
|
|
class G4Run;
|
|
|
|
//=======================================================================
|
|
// RE02RunAction
|
|
//
|
|
//
|
|
//
|
|
//=======================================================================
|
|
//
|
|
class RE02RunAction : public G4UserRunAction
|
|
{
|
|
public:
|
|
// constructor and destructor
|
|
RE02RunAction();
|
|
virtual ~RE02RunAction();
|
|
|
|
public:
|
|
// virtual method from G4UserRunAction.
|
|
virtual G4Run* GenerateRun();
|
|
virtual void BeginOfRunAction(const G4Run*);
|
|
virtual void EndOfRunAction(const G4Run*);
|
|
|
|
public:
|
|
// Utility method for converting segment number of
|
|
// water phantom to copyNo of HitsMap.
|
|
G4int CopyNo(G4int ix, G4int iy, G4int iz)
|
|
{ return (ix*(fNy*fNz)+iy*fNz+iz); }
|
|
|
|
|
|
private:
|
|
// Data member
|
|
// - vector of MultiFunctionalDetecor names.
|
|
std::vector<G4String> theSDName;
|
|
|
|
// for conversion of sengment number to copyNo.
|
|
G4int fNx, fNy, fNz;
|
|
|
|
};
|
|
|
|
//
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|