37 #include "Em10PrimaryGeneratorMessenger.hh" 50 RndmCmd->SetGuidance(
"Shoot randomly the incident particle.");
51 RndmCmd->SetGuidance(
" Choice : on, off(default)");
52 RndmCmd->SetParameterName(
"choice",
true);
53 RndmCmd->SetDefaultValue(
"off");
54 RndmCmd->SetCandidates(
"on off");
58 setxvertexCmd->SetGuidance(
" Set x coord. of the primary vertex.");
59 setxvertexCmd->SetParameterName(
"xv",
true);
60 setxvertexCmd->SetDefaultValue(0.0*
mm) ;
63 setyvertexCmd->SetGuidance(
" Set y coord. of the primary vertex.");
64 setyvertexCmd->SetParameterName(
"yv",
true);
65 setyvertexCmd->SetDefaultValue(0.0*
mm) ;
68 setzvertexCmd->SetGuidance(
" Set z coord. of the primary vertex.");
69 setzvertexCmd->SetParameterName(
"zv",
true);
70 setzvertexCmd->SetDefaultValue(0.0*
mm) ;
76 Em10PrimaryGeneratorMessenger::~Em10PrimaryGeneratorMessenger()
88 if( command == RndmCmd )
89 { Em10Action->SetRndmFlag(newValue);}
90 if( command == setxvertexCmd)
91 { Em10Action->Setxvertex(setxvertexCmd->GetNewDoubleValue(newValue));}
92 if( command == setyvertexCmd)
93 { Em10Action->Setyvertex(setyvertexCmd->GetNewDoubleValue(newValue));}
94 if( command == setzvertexCmd)
95 { Em10Action->Setzvertex(setzvertexCmd->GetNewDoubleValue(newValue));}
Definition of the Em10PrimaryGeneratorAction class.