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

#include <Doxymodules_runAndEvent.h>

Inheritance diagram for RE05StackingActionMessenger:
G4UImessenger

Public Member Functions

 RE05StackingActionMessenger (RE05StackingAction *msa)
 
virtual ~RE05StackingActionMessenger ()
 
virtual void SetNewValue (G4UIcommand *command, G4String newValues)
 
virtual G4String GetCurrentValue (G4UIcommand *command)
 

Private Attributes

RE05StackingActionfMyAction
 
G4UIcmdWithAnIntegerfMuonCmd
 
G4UIcmdWithAnIntegerfIsoMuonCmd
 
G4UIcmdWithAnIntegerfIsoCmd
 
G4UIcmdWithADoubleAndUnitfRoiCmd
 

Detailed Description

Definition at line 118 of file Doxymodules_runAndEvent.h.

Constructor & Destructor Documentation

◆ RE05StackingActionMessenger()

RE05StackingActionMessenger::RE05StackingActionMessenger ( RE05StackingAction msa)

Definition at line 39 of file RE05StackingActionMessenger.cc.

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

◆ ~RE05StackingActionMessenger()

RE05StackingActionMessenger::~RE05StackingActionMessenger ( )
virtual

Definition at line 71 of file RE05StackingActionMessenger.cc.

72{
73 delete fMuonCmd;
74 delete fIsoMuonCmd;
75 delete fIsoCmd;
76 delete fRoiCmd;
77}

Member Function Documentation

◆ SetNewValue()

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

Definition at line 81 of file RE05StackingActionMessenger.cc.

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

◆ GetCurrentValue()

G4String RE05StackingActionMessenger::GetCurrentValue ( G4UIcommand command)
virtual

Definition at line 95 of file RE05StackingActionMessenger.cc.

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

Member Data Documentation

◆ fMyAction

RE05StackingAction* RE05StackingActionMessenger::fMyAction
private

Definition at line 52 of file RE05StackingActionMessenger.hh.

◆ fMuonCmd

G4UIcmdWithAnInteger* RE05StackingActionMessenger::fMuonCmd
private

Definition at line 55 of file RE05StackingActionMessenger.hh.

◆ fIsoMuonCmd

G4UIcmdWithAnInteger* RE05StackingActionMessenger::fIsoMuonCmd
private

Definition at line 56 of file RE05StackingActionMessenger.hh.

◆ fIsoCmd

G4UIcmdWithAnInteger* RE05StackingActionMessenger::fIsoCmd
private

Definition at line 57 of file RE05StackingActionMessenger.hh.

◆ fRoiCmd

G4UIcmdWithADoubleAndUnit* RE05StackingActionMessenger::fRoiCmd
private

Definition at line 58 of file RE05StackingActionMessenger.hh.


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

Applications | User Support | Publications | Collaboration