Main Page | Namespace List | Class Hierarchy | Class List | Directories | File List | Class Members | File Members

MaGeGeneratorCosmicRayMuonsMessenger.cc

Go to the documentation of this file.
00001 //
00002 // ********************************************************************
00003 // * DISCLAIMER                                                       *
00004 // *                                                                  *
00005 // * Neither the authors of this software system, nor their employing *
00006 // * institutes,nor the agencies providing financial support for this *
00007 // * work  make  any representation or  warranty, express or implied, *
00008 // * regarding  this  software system or assume any liability for its *
00009 // * use.                                                             *
00010 // *                                                                  *
00011 // ********************************************************************
00012 //
00013 // This is supposed to be the messenger for the cosmic ray muon geneator 
00014 // It is work in progress
00015 //
00016 // History:
00017 // --------
00018 // 28 Oct 2004   L.Pandola    First implementation (not working)
00019 
00020 #include "generators/MaGeGeneratorCosmicRayMuonsMessenger.hh"
00021 #include "generators/MaGeGeneratorCosmicRayMuons.hh"
00022 
00023 
00024 #include "G4ThreeVector.hh"
00025 #include "G4ParticleTable.hh"
00026 #include "G4UIdirectory.hh"
00027 #include "G4UIcmdWithoutParameter.hh"
00028 #include "G4UIcmdWithAString.hh"
00029 #include "G4UIcmdWithADoubleAndUnit.hh"
00030 #include "G4UIcmdWith3Vector.hh"
00031 #include "G4UIcmdWith3VectorAndUnit.hh"
00032 #include "G4UIcmdWithAnInteger.hh"
00033 #include "G4UIcmdWithADouble.hh"
00034 #include "G4UIcmdWithABool.hh"
00035 #include "G4ios.hh"
00036 #include <fstream>
00037 #include <iomanip>               
00038 #include "G4Tokenizer.hh"
00039 #include <strstream>
00040 
00041 MaGeGeneratorCosmicRayMuonsMessenger::MaGeGeneratorCosmicRayMuonsMessenger
00042 (MaGeGeneratorCosmicRayMuons *fPtclGun) : fParticleGun(fPtclGun) 
00043 {
00044   particleTable = G4ParticleTable::GetParticleTable();
00045 
00046 
00047   // verbosity
00048   verbosityCmd = new G4UIcmdWithAnInteger("/gun/verbose",this);
00049   verbosityCmd->SetGuidance("Set Verbose level for gun");
00050   verbosityCmd->SetGuidance(" 0 : Silent");
00051   verbosityCmd->SetGuidance(" 1 : Limited information");
00052   verbosityCmd->SetGuidance(" 2 : Detailed information");
00053   verbosityCmd->SetParameterName("level",false);
00054   verbosityCmd->SetRange("level>=0 && level <=2");
00055   
00056 }
00057 
00058 
00059 MaGeGeneratorCosmicRayMuonsMessenger::~MaGeGeneratorCosmicRayMuonsMessenger() {
00060   delete verbosityCmd;
00061 }
00062 
00063 void MaGeGeneratorCosmicRayMuonsMessenger::SetNewValue(G4UIcommand *command, 
00064                                                        G4String newValues) 
00065 {
00066 
00067   if(command == verbosityCmd)
00068     fParticleGun->SetVerbosity(verbosityCmd->GetNewIntValue(newValues));
00069 }
00070 
00071 
00072 
00073 

Generated on Mon Nov 29 16:58:50 2004 for Majorana Simulation by  doxygen 1.3.9.1