EDepSimRooTrackerKinematicsFactory.hh
Go to the documentation of this file.
1 #ifndef EDepSim_RooTrackerKinematicsFactory_hh_seen
2 #define EDepSim_RooTrackerKinematicsFactory_hh_seen
3 
5 
6 class G4VPrimaryGenerator;
7 namespace EDepSim {class RooTrackerKinematicsGenerator;}
8 
9 namespace EDepSim {class RooTrackerKinematicsFactory;}
11 public:
14 
15  /// Return a new generator enclosing the current factory state. The new
16  /// generator method is pure virtual so it must be implemented by derived
17  /// classes.
19 
20  /// Set the input file to read.
21  virtual void SetInputFile(const G4String& name) {fInputFile=name;}
22 
23  /// Get the input file to read.
24  virtual const G4String& GetInputFile() const {return fInputFile;}
25 
26  /// Set the generator name. This is the name of the program that
27  /// generated the rooTracker tree, and will be saved as documentation in
28  /// the output file.
29  virtual void SetGeneratorName(const G4String& name) {fGeneratorName = name;}
30 
31  /// Get the generator name.
32  virtual const G4String& GetGeneratorName() const {return fGeneratorName;}
33 
34  /// Get the tree name.
35  virtual const G4String& GetTreeName() const {return fTreeName;}
36 
37  /// Set the tree name. This is the path of the rooTracker tree in the
38  /// input root file.
39  virtual void SetTreeName(const G4String& name) {fTreeName = name;}
40 
41  /// Set the order that events in the input file will be used.
42  virtual void SetOrder(const G4String& order) {fOrder = order;}
43 
44  /// Get the order that events in the input file will be used.
45  virtual G4String GetOrder() {return fOrder;}
46 
47  /// Set the first event to read.
48  virtual void SetFirstEvent(int f) {fFirstEvent=f;}
49 
50  /// Get the first event to read.
51  virtual int GetFirstEvent() const {return fFirstEvent;}
52 
53  virtual void SetNewValue(G4UIcommand* command,G4String newValue);
54 
55 private:
56  /// The root file with the RooTracker tree.
57  G4String fInputFile;
58 
59  /// The path to the tree in the root file.
60  G4String fTreeName;
61 
62  /// The name of the generater that created the rooTracker tree (eg GENIE,
63  /// NEUT, &c).
64  G4String fGeneratorName;
65 
66  /// The order that events in the input file will be used.
67  G4String fOrder;
68 
69  /// The first event to read in the file.
71 
72  G4UIcmdWithAString* fInputFileCMD;
73  G4UIcmdWithAString* fTreeNameCMD;
74  G4UIcmdWithAString* fGeneratorNameCMD;
75  G4UIcmdWithAString* fOrderCMD;
76  G4UIcmdWithAnInteger* fFirstEventCMD;
77 };
78 #endif
static QCString name
Definition: declinfo.cpp:673
virtual void SetNewValue(G4UIcommand *command, G4String newValue)
Handle messages from the UI processor.
RooTrackerKinematicsFactory(EDepSim::UserPrimaryGeneratorMessenger *fParent)
G4String fOrder
The order that events in the input file will be used.
int command
virtual const G4String & GetInputFile() const
Get the input file to read.
G4String fInputFile
The root file with the RooTracker tree.
G4String fTreeName
The path to the tree in the root file.
EDepSim::UserPrimaryGeneratorMessenger * fParent
The messenger that is holding this set of sub-commands.
virtual void SetInputFile(const G4String &name)
Set the input file to read.
Construct a module from components.
Definition: TG4HitSegment.h:10
int fFirstEvent
The first event to read in the file.
virtual const G4String & GetGeneratorName() const
Get the generator name.
virtual const G4String & GetTreeName() const
Get the tree name.
virtual int GetFirstEvent() const
Get the first event to read.
virtual void SetFirstEvent(int f)
Set the first event to read.
virtual EDepSim::VKinematicsGenerator * GetGenerator()
virtual G4String GetOrder()
Get the order that events in the input file will be used.
virtual void SetGeneratorName(const G4String &name)
virtual void SetOrder(const G4String &order)
Set the order that events in the input file will be used.