Files
geant4/examples/novice/N05/include/ExN05DetectorConstruction.hh
T
2016-06-08 15:28:20 +02:00

60 lines
1.6 KiB
C++

// 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: ExN05DetectorConstruction.hh,v 1.1.10.1 1999/12/07 20:47:33 gunter Exp $
// GEANT4 tag $Name: geant4-01-00 $
//
#ifndef ExN05DetectorConstruction_h
#define ExN05DetectorConstruction_h 1
#include "G4LogicalVolume.hh"
#include "G4VUserDetectorConstruction.hh"
#include "globals.hh"
class G4UserLimits;
class ExN05DetectorMessenger;
class ExN05DetectorConstruction : public G4VUserDetectorConstruction
{
public:
ExN05DetectorConstruction();
~ExN05DetectorConstruction();
public:
G4VPhysicalVolume* Construct();
// methods for UserLimits in crystal
void UseUserLimits(G4bool value);
G4bool IsUseUserLimits() { return fUseUserLimits; }
G4double GetMaxTimeInCrystal() const { return theMaxTimeCutsInCrystal; }
G4double GetMinEkineInCrystal() const { return theMinEkineCutsInCrystal; }
G4double GetMinRangeInCrystal() const { return theMinRangeCutsInCrystal; }
void SetMaxTimeInCrystal(G4double value);
void SetMinEkineInCrystal(G4double value);
void SetMinRangeInCrystal(G4double value);
private:
G4LogicalVolume* theCrystalLog;
G4LogicalVolume* theTowerLog;
G4bool fUseUserLimits;
G4UserLimits* theUserLimitsForCrystal;
G4double theMaxTimeCutsInCrystal;
G4double theMinEkineCutsInCrystal;
G4double theMinRangeCutsInCrystal;
// messeneger
ExN05DetectorMessenger* theMessenger;
};
#endif