/home/docs/checkouts/readthedocs.org/user_builds/ratpac/checkouts/latest/src/gen/include/RAT/PosGen_Multipoint.hh Source File

Ratpac-two: /home/docs/checkouts/readthedocs.org/user_builds/ratpac/checkouts/latest/src/gen/include/RAT/PosGen_Multipoint.hh Source File
Ratpac-two
PosGen_Multipoint.hh
1 
13 #ifndef __RAT_PosGen_Multipoint__
14 #define __RAT_PosGen_Multipoint__
15 
16 #include <RAT/GLG4PosGen.hh>
17 #include <string>
18 #include <vector>
19 
20 namespace RAT {
21 
22 class PosGen_Multipoint : public GLG4PosGen {
23  public:
29  PosGen_Multipoint(const char *arg_dbname = "multipoint");
30 
32  virtual void GeneratePosition(G4ThreeVector &argResult);
33 
54  void SetState(G4String newValues);
55 
57  G4String GetState() const;
58 
59  protected:
60  void LoadUniformPoints(unsigned numPoints, double innerRadius, double outerRadius);
61  void LoadTablePoints(std::string tableName, std::string tableIndex);
62 
63  enum { MULTIPOINT_TABLE, MULTIPOINT_UNIFORM } MultipointTypeList;
64  int fType;
67  std::string fTableName;
68  std::string fTableIndex;
69 
70  double fInnerRadius, fOuterRadius;
71 
72  std::vector<G4ThreeVector> fPos;
73  int fNextPosIndex;
74 };
75 
76 } // namespace RAT
77 
78 #endif
Definition: GLG4PosGen.hh:18
Definition: PosGen_Multipoint.hh:22
PosGen_Multipoint(const char *arg_dbname="multipoint")
Definition: PosGen_Multipoint.cc:12
std::string fTableName
Definition: PosGen_Multipoint.hh:67
virtual void GeneratePosition(G4ThreeVector &argResult)
Definition: PosGen_Multipoint.cc:15
void SetState(G4String newValues)
Definition: PosGen_Multipoint.cc:22
G4String GetState() const
Definition: PosGen_Multipoint.cc:75
std::string fTableIndex
Definition: PosGen_Multipoint.hh:68
Definition: CCCrossSecMessenger.hh:29