Public Member Functions | Private Attributes | List of all members
EDepSim::RooTrackerKinematicsFactory Class Reference

#include <EDepSimRooTrackerKinematicsFactory.hh>

Inheritance diagram for EDepSim::RooTrackerKinematicsFactory:
EDepSim::VKinematicsFactory EDepSim::VPrimaryFactory

Public Member Functions

 RooTrackerKinematicsFactory (EDepSim::UserPrimaryGeneratorMessenger *fParent)
 
virtual ~RooTrackerKinematicsFactory ()
 
virtual EDepSim::VKinematicsGeneratorGetGenerator ()
 
virtual void SetInputFile (const G4String &name)
 Set the input file to read. More...
 
virtual const G4String & GetInputFile () const
 Get the input file to read. More...
 
virtual void SetGeneratorName (const G4String &name)
 
virtual const G4String & GetGeneratorName () const
 Get the generator name. More...
 
virtual const G4String & GetTreeName () const
 Get the tree name. More...
 
virtual void SetTreeName (const G4String &name)
 
virtual void SetOrder (const G4String &order)
 Set the order that events in the input file will be used. More...
 
virtual G4String GetOrder ()
 Get the order that events in the input file will be used. More...
 
virtual void SetFirstEvent (int f)
 Set the first event to read. More...
 
virtual int GetFirstEvent () const
 Get the first event to read. More...
 
virtual void SetNewValue (G4UIcommand *command, G4String newValue)
 Handle messages from the UI processor. More...
 
- Public Member Functions inherited from EDepSim::VKinematicsFactory
 VKinematicsFactory (G4String name, EDepSim::UserPrimaryGeneratorMessenger *fParent, bool makeDirectory=true)
 
virtual ~VKinematicsFactory ()
 
- Public Member Functions inherited from EDepSim::VPrimaryFactory
 VPrimaryFactory (G4String subdir, G4String name, EDepSim::UserPrimaryGeneratorMessenger *parent, bool makeDirectory)
 
virtual ~VPrimaryFactory ()
 
G4String GetPath () const
 
G4String GetName () const
 
G4String GetSubDir () const
 

Private Attributes

G4String fInputFile
 The root file with the RooTracker tree. More...
 
G4String fTreeName
 The path to the tree in the root file. More...
 
G4String fGeneratorName
 
G4String fOrder
 The order that events in the input file will be used. More...
 
int fFirstEvent
 The first event to read in the file. More...
 
G4UIcmdWithAString * fInputFileCMD
 
G4UIcmdWithAString * fTreeNameCMD
 
G4UIcmdWithAString * fGeneratorNameCMD
 
G4UIcmdWithAString * fOrderCMD
 
G4UIcmdWithAnInteger * fFirstEventCMD
 

Additional Inherited Members

- Protected Member Functions inherited from EDepSim::VPrimaryFactory
G4String CommandName (G4String cmd)
 Build a command name with the directory prefix. More...
 

Detailed Description

Definition at line 10 of file EDepSimRooTrackerKinematicsFactory.hh.

Constructor & Destructor Documentation

EDepSim::RooTrackerKinematicsFactory::RooTrackerKinematicsFactory ( EDepSim::UserPrimaryGeneratorMessenger fParent)

Definition at line 9 of file EDepSimRooTrackerKinematicsFactory.cc.

11  : EDepSim::VKinematicsFactory("rooTracker",parent),
12  fInputFile("not-open"), fTreeName("gRooTracker"),
13  fGeneratorName("GENIE"), fOrder("consecutive"), fFirstEvent(0) {
14 
15  fInputFileCMD = new G4UIcmdWithAString(CommandName("input"),this);
16  fInputFileCMD->SetGuidance("Set the input file.");
17  fInputFileCMD->SetParameterName("name",false);
18 
19  fTreeNameCMD = new G4UIcmdWithAString(CommandName("tree"),this);
20  fTreeNameCMD->SetGuidance("Set the tree path in the input file.");
21  fTreeNameCMD->SetParameterName("tree",false);
22 
23  fGeneratorNameCMD = new G4UIcmdWithAString(CommandName("generator"),this);
24  fGeneratorNameCMD->SetGuidance("Set the name of the kinematics source.");
25  fGeneratorNameCMD->SetParameterName("generator",false);
26 
27  fOrderCMD = new G4UIcmdWithAString(CommandName("order"),this);
28  fOrderCMD->SetGuidance("Set order that events in the file are used.");
29  fOrderCMD->SetParameterName("order",false);
30  fOrderCMD->SetCandidates("consecutive stride random");
31 
32  fFirstEventCMD = new G4UIcmdWithAnInteger(CommandName("first"),this);
33  fFirstEventCMD->SetGuidance("Set the first event to generate.");
34  fFirstEventCMD->SetParameterName("number",false);
35 }
G4String fOrder
The order that events in the input file will be used.
G4String fInputFile
The root file with the RooTracker tree.
G4String fTreeName
The path to the tree in the root file.
int fFirstEvent
The first event to read in the file.
G4String CommandName(G4String cmd)
Build a command name with the directory prefix.
def parent(G, child, parent_type)
Definition: graph.py:67
EDepSim::RooTrackerKinematicsFactory::~RooTrackerKinematicsFactory ( )
virtual

Member Function Documentation

virtual int EDepSim::RooTrackerKinematicsFactory::GetFirstEvent ( ) const
inlinevirtual

Get the first event to read.

Definition at line 51 of file EDepSimRooTrackerKinematicsFactory.hh.

51 {return fFirstEvent;}
int fFirstEvent
The first event to read in the file.
EDepSim::VKinematicsGenerator * EDepSim::RooTrackerKinematicsFactory::GetGenerator ( )
virtual

Return a new generator enclosing the current factory state. The new generator method is pure virtual so it must be implemented by derived classes.

Implements EDepSim::VKinematicsFactory.

Definition at line 64 of file EDepSimRooTrackerKinematicsFactory.cc.

64  {
67  GetInputFile(),
68  GetTreeName(),
69  GetOrder(),
70  GetFirstEvent());
71  return kine;
72 }
virtual const G4String & GetInputFile() const
Get the input file to read.
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 G4String GetOrder()
Get the order that events in the input file will be used.
virtual const G4String& EDepSim::RooTrackerKinematicsFactory::GetGeneratorName ( ) const
inlinevirtual

Get the generator name.

Definition at line 32 of file EDepSimRooTrackerKinematicsFactory.hh.

virtual const G4String& EDepSim::RooTrackerKinematicsFactory::GetInputFile ( ) const
inlinevirtual

Get the input file to read.

Definition at line 24 of file EDepSimRooTrackerKinematicsFactory.hh.

24 {return fInputFile;}
G4String fInputFile
The root file with the RooTracker tree.
virtual G4String EDepSim::RooTrackerKinematicsFactory::GetOrder ( )
inlinevirtual

Get the order that events in the input file will be used.

Definition at line 45 of file EDepSimRooTrackerKinematicsFactory.hh.

45 {return fOrder;}
G4String fOrder
The order that events in the input file will be used.
virtual const G4String& EDepSim::RooTrackerKinematicsFactory::GetTreeName ( ) const
inlinevirtual

Get the tree name.

Definition at line 35 of file EDepSimRooTrackerKinematicsFactory.hh.

35 {return fTreeName;}
G4String fTreeName
The path to the tree in the root file.
virtual void EDepSim::RooTrackerKinematicsFactory::SetFirstEvent ( int  f)
inlinevirtual

Set the first event to read.

Definition at line 48 of file EDepSimRooTrackerKinematicsFactory.hh.

virtual void EDepSim::RooTrackerKinematicsFactory::SetGeneratorName ( const G4String &  name)
inlinevirtual

Set the generator name. This is the name of the program that generated the rooTracker tree, and will be saved as documentation in the output file.

Definition at line 29 of file EDepSimRooTrackerKinematicsFactory.hh.

virtual void EDepSim::RooTrackerKinematicsFactory::SetInputFile ( const G4String &  name)
inlinevirtual

Set the input file to read.

Definition at line 21 of file EDepSimRooTrackerKinematicsFactory.hh.

static QCString name
Definition: declinfo.cpp:673
G4String fInputFile
The root file with the RooTracker tree.
void EDepSim::RooTrackerKinematicsFactory::SetNewValue ( G4UIcommand *  ,
G4String   
)
virtual

Handle messages from the UI processor.

Reimplemented from EDepSim::VPrimaryFactory.

Definition at line 45 of file EDepSimRooTrackerKinematicsFactory.cc.

46  {
47  if (command == fInputFileCMD) {
48  SetInputFile(newValue);
49  }
50  else if (command == fTreeNameCMD) {
51  SetTreeName(newValue);
52  }
53  else if (command == fGeneratorNameCMD) {
54  SetGeneratorName(newValue);
55  }
56  else if (command == fOrderCMD) {
57  SetOrder(newValue);
58  }
59  else if (command == fFirstEventCMD) {
60  SetFirstEvent(fFirstEventCMD->GetNewIntValue(newValue));
61  }
62 }
int command
virtual void SetInputFile(const G4String &name)
Set the input file to read.
virtual void SetFirstEvent(int f)
Set the first event to read.
virtual void SetGeneratorName(const G4String &name)
virtual void SetOrder(const G4String &order)
Set the order that events in the input file will be used.
virtual void EDepSim::RooTrackerKinematicsFactory::SetOrder ( const G4String &  order)
inlinevirtual

Set the order that events in the input file will be used.

Definition at line 42 of file EDepSimRooTrackerKinematicsFactory.hh.

42 {fOrder = order;}
G4String fOrder
The order that events in the input file will be used.
virtual void EDepSim::RooTrackerKinematicsFactory::SetTreeName ( const G4String &  name)
inlinevirtual

Set the tree name. This is the path of the rooTracker tree in the input root file.

Definition at line 39 of file EDepSimRooTrackerKinematicsFactory.hh.

39 {fTreeName = name;}
static QCString name
Definition: declinfo.cpp:673
G4String fTreeName
The path to the tree in the root file.

Member Data Documentation

int EDepSim::RooTrackerKinematicsFactory::fFirstEvent
private

The first event to read in the file.

Definition at line 70 of file EDepSimRooTrackerKinematicsFactory.hh.

G4UIcmdWithAnInteger* EDepSim::RooTrackerKinematicsFactory::fFirstEventCMD
private

Definition at line 76 of file EDepSimRooTrackerKinematicsFactory.hh.

G4String EDepSim::RooTrackerKinematicsFactory::fGeneratorName
private

The name of the generater that created the rooTracker tree (eg GENIE, NEUT, &c).

Definition at line 64 of file EDepSimRooTrackerKinematicsFactory.hh.

G4UIcmdWithAString* EDepSim::RooTrackerKinematicsFactory::fGeneratorNameCMD
private

Definition at line 74 of file EDepSimRooTrackerKinematicsFactory.hh.

G4String EDepSim::RooTrackerKinematicsFactory::fInputFile
private

The root file with the RooTracker tree.

Definition at line 57 of file EDepSimRooTrackerKinematicsFactory.hh.

G4UIcmdWithAString* EDepSim::RooTrackerKinematicsFactory::fInputFileCMD
private

Definition at line 72 of file EDepSimRooTrackerKinematicsFactory.hh.

G4String EDepSim::RooTrackerKinematicsFactory::fOrder
private

The order that events in the input file will be used.

Definition at line 67 of file EDepSimRooTrackerKinematicsFactory.hh.

G4UIcmdWithAString* EDepSim::RooTrackerKinematicsFactory::fOrderCMD
private

Definition at line 75 of file EDepSimRooTrackerKinematicsFactory.hh.

G4String EDepSim::RooTrackerKinematicsFactory::fTreeName
private

The path to the tree in the root file.

Definition at line 60 of file EDepSimRooTrackerKinematicsFactory.hh.

G4UIcmdWithAString* EDepSim::RooTrackerKinematicsFactory::fTreeNameCMD
private

Definition at line 73 of file EDepSimRooTrackerKinematicsFactory.hh.


The documentation for this class was generated from the following files: