Loading...
Searching...
No Matches
Public Member Functions | Private Attributes | List of all members
ExN04StackingActionMessenger Class Reference

#include <Doxymodules_eventgenerator.h>

Inheritance diagram for ExN04StackingActionMessenger:
G4UImessenger

Public Member Functions

 ExN04StackingActionMessenger (ExN04StackingAction *msa)
 
 ~ExN04StackingActionMessenger ()
 
virtual void SetNewValue (G4UIcommand *command, G4String newValues)
 
virtual G4String GetCurrentValue (G4UIcommand *command)
 

Private Attributes

ExN04StackingActionfMyAction
 
G4UIcmdWithAnIntegerfMuonCmd
 
G4UIcmdWithAnIntegerfIsoMuonCmd
 
G4UIcmdWithAnIntegerfIsoCmd
 
G4UIcmdWithADoubleAndUnitfRoiCmd
 

Detailed Description

Definition at line 49 of file Doxymodules_eventgenerator.h.

Constructor & Destructor Documentation

◆ ExN04StackingActionMessenger()

ExN04StackingActionMessenger::ExN04StackingActionMessenger ( ExN04StackingAction msa)

Definition at line 38 of file ExN04StackingActionMessenger.cc.

40 : G4UImessenger(),
41 fMyAction(msa)
42{
43 fMuonCmd = new G4UIcmdWithAnInteger("/mydet/reqmuon",this);
44 fMuonCmd->SetGuidance("Number of muon for the trigger.");
45 fMuonCmd->SetParameterName("N",true);
46 fMuonCmd->SetDefaultValue(2);
47 fMuonCmd->SetRange("N>=0");
48
49 fIsoMuonCmd = new G4UIcmdWithAnInteger("/mydet/isomuon",this);
50 fIsoMuonCmd->SetGuidance("Number of isolated muon for the trigger.");
51 fIsoMuonCmd->SetParameterName("N",true);
52 fIsoMuonCmd->SetDefaultValue(2);
53 fIsoMuonCmd->SetRange("N>=0");
54
55 fIsoCmd = new G4UIcmdWithAnInteger("/mydet/isolation",this);
56 fIsoCmd->SetGuidance("Maximum allowed number of hits in tracker");
57 fIsoCmd->SetGuidance(" for an isolated muon track (includes hits by muon)");
58 fIsoCmd->SetParameterName("N",true);
59 fIsoCmd->SetDefaultValue(10);
60 fIsoCmd->SetRange("N>=0");
61
62 fRoiCmd = new G4UIcmdWithADoubleAndUnit("/mydet/RoIangle",this);
63 fRoiCmd->SetGuidance("Define RoI angle");
64 fRoiCmd->SetParameterName("theta",true,true);
65 fRoiCmd->SetDefaultUnit("deg");
66}

◆ ~ExN04StackingActionMessenger()

ExN04StackingActionMessenger::~ExN04StackingActionMessenger ( )

Definition at line 69 of file ExN04StackingActionMessenger.cc.

70{
71 delete fMuonCmd;
72 delete fIsoMuonCmd;
73 delete fIsoCmd;
74 delete fRoiCmd;
75}

Member Function Documentation

◆ SetNewValue()

void ExN04StackingActionMessenger::SetNewValue ( G4UIcommand command,
G4String  newValues 
)
virtual

Definition at line 78 of file ExN04StackingActionMessenger.cc.

80{
81 if( command==fMuonCmd )
82 { fMyAction->SetNRequestMuon(fMuonCmd->GetNewIntValue(newValue)); }
83 else if( command==fIsoMuonCmd )
84 { fMyAction->SetNRequestIsoMuon(fIsoMuonCmd->GetNewIntValue(newValue)); }
85 else if( command==fIsoCmd )
86 { fMyAction->SetNIsolation(fIsoCmd->GetNewIntValue(newValue)); }
87 else if( command==fRoiCmd )
88 { fMyAction->SetRoIAngle(fRoiCmd->GetNewDoubleValue(newValue)); }
89}
void SetRoIAngle(G4double val)
void SetNRequestMuon(G4int val)
void SetNIsolation(G4int val)
void SetNRequestIsoMuon(G4int val)

◆ GetCurrentValue()

G4String ExN04StackingActionMessenger::GetCurrentValue ( G4UIcommand command)
virtual

Definition at line 92 of file ExN04StackingActionMessenger.cc.

93{
94 G4String cv;
95
96 if( command==fMuonCmd )
97 { cv = fMuonCmd->ConvertToString(fMyAction->GetNRequestMuon()); }
98 else if( command==fIsoMuonCmd )
99 { cv = fIsoMuonCmd->ConvertToString(fMyAction->GetNRequestIsoMuon()); }
100 else if( command==fIsoCmd )
101 { cv = fIsoCmd->ConvertToString(fMyAction->GetNIsolation()); }
102 else if( command==fRoiCmd )
103 { cv = fRoiCmd->ConvertToString(fMyAction->GetRoIAngle(),"deg"); }
104
105 return cv;
106}
G4int GetNRequestIsoMuon() const
G4double GetRoIAngle() const

Member Data Documentation

◆ fMyAction

ExN04StackingAction* ExN04StackingActionMessenger::fMyAction
private

Definition at line 50 of file ExN04StackingActionMessenger.hh.

◆ fMuonCmd

G4UIcmdWithAnInteger* ExN04StackingActionMessenger::fMuonCmd
private

Definition at line 52 of file ExN04StackingActionMessenger.hh.

◆ fIsoMuonCmd

G4UIcmdWithAnInteger* ExN04StackingActionMessenger::fIsoMuonCmd
private

Definition at line 53 of file ExN04StackingActionMessenger.hh.

◆ fIsoCmd

G4UIcmdWithAnInteger* ExN04StackingActionMessenger::fIsoCmd
private

Definition at line 54 of file ExN04StackingActionMessenger.hh.

◆ fRoiCmd

G4UIcmdWithADoubleAndUnit* ExN04StackingActionMessenger::fRoiCmd
private

Definition at line 55 of file ExN04StackingActionMessenger.hh.


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

Applications | User Support | Publications | Collaboration