//bb0nubb0nubb0nubb0nubb0nubb0nubb0nubb0nubb0nubb0nubb0nubb0nubb0nubb0nubb0nu// // // // // // MaGe Simulation // // // // This code implementation is the intellectual property of the // // MAJORANA and Gerda Collaborations. It is based on Geant4, an // // intellectual property of the RD44 GEANT4 collaboration. // // // // ********************* // // // // Neither the authors of this software system, nor their employing // // institutes, nor the agencies providing financial support for this // // work make any representation or warranty, express or implied, // // regarding this software system or assume any liability for its use. // // By copying, distributing or modifying the Program (or any work based // // on on the Program) you indicate your acceptance of this statement, // // and all its terms. // // // //bb0nubb0nubb0nubb0nubb0nubb0nubb0nubb0nubb0nubb0nubb0nubb0nubb0nubb0nubb0nu// //---------------------------------------------------------------------------// // // $Id: MGEMIDetectorMessenger.cc,v 1.0 2010-02-26 18:06:00 matthiasl Exp $ // // CLASS IMPLEMENTATION: MGEMIDetectorMessenger.cc // to be used for GsOr, GePV and GePaolo // /** * SPECIAL NOTES: */ // //---------------------------------------------------------------------------// /** * AUTHOR: Matthias Laubenstein * CONTACT: * FIRST SUBMISSION: * * REVISION: * 03-08-2010, Added in MaGe, Luciano */ // --------------------------------------------------------------------------- #include "G4UIdirectory.hh" #include "G4UIcmdWithAString.hh" #include "G4UIcmdWithAnInteger.hh" #include "G4UIcmdWithADoubleAndUnit.hh" #include "MGEMIDetectorMessenger.hh" #include "B1DetectorConstruction.hh" // --------------------------------------------------------------------------- //MGEMIDetectorMessenger::MGEMIDetectorMessenger(MGEMIDetector *dete) : MGEMIDetectorMessenger::MGEMIDetectorMessenger(B1DetectorConstruction *dete) : fDetectorPointer(dete) { // directories fSampleMaterialCmd = new G4UIcmdWithAString("/MG/geometry/mgemi/samplematerial", this); fSampleMaterialCmd -> SetGuidance("Select the material of the sample"); fSampleMaterialCmd -> SetParameterName("SampleMaterial", true); fSampleMaterialCmd -> SetDefaultValue("NitrogenGas"); } // --------------------------------------------------------------------------- MGEMIDetectorMessenger::~MGEMIDetectorMessenger() { delete fSampleMaterialCmd; } // --------------------------------------------------------------------------- void MGEMIDetectorMessenger::SetNewValue(G4UIcommand *cmd, G4String newvalue) { if (cmd == fSampleMaterialCmd) { fDetectorPointer->SetSampleMaterial(newvalue); } } // ---------------------------------------------------------------------------