source: trunk/source/processes/electromagnetic/lowenergy/test/fluoTest/src/XrayFluoDetectorMessenger.cc @ 1250

Last change on this file since 1250 was 1199, checked in by garnier, 15 years ago

nvx fichiers dans CVS

File size: 3.2 KB
Line 
1//
2// ********************************************************************
3// * License and Disclaimer                                           *
4// *                                                                  *
5// * The  Geant4 software  is  copyright of the Copyright Holders  of *
6// * the Geant4 Collaboration.  It is provided  under  the terms  and *
7// * conditions of the Geant4 Software License,  included in the file *
8// * LICENSE and available at  http://cern.ch/geant4/license .  These *
9// * include a list of copyright holders.                             *
10// *                                                                  *
11// * Neither the authors of this software system, nor their employing *
12// * institutes,nor the agencies providing financial support for this *
13// * work  make  any representation or  warranty, express or implied, *
14// * regarding  this  software system or assume any liability for its *
15// * use.  Please see the license in the file  LICENSE  and URL above *
16// * for the full disclaimer and the limitation of liability.         *
17// *                                                                  *
18// * This  code  implementation is the result of  the  scientific and *
19// * technical work of the GEANT4 collaboration.                      *
20// * By using,  copying,  modifying or  distributing the software (or *
21// * any work based  on the software)  you  agree  to acknowledge its *
22// * use  in  resulting  scientific  publications,  and indicate your *
23// * acceptance of all terms of the Geant4 Software license.          *
24// ********************************************************************
25//
26//
27// $Id: XrayFluoDetectorMessenger.cc
28// GEANT4 tag $Name: xray_fluo-V03-02-00
29//
30// Author: Elena Guardincerri (Elena.Guardincerri@ge.infn.it)
31//
32// History:
33// -----------
34// 28 Nov 2001 Elena Guardincerri     Created
35//
36// -------------------------------------------------------------------
37
38#include "XrayFluoDetectorMessenger.hh"
39#include "XrayFluoDetectorConstruction.hh"
40#include "G4UIdirectory.hh"
41#include "G4UIcmdWithAString.hh"
42#include "G4UIcmdWithADoubleAndUnit.hh"
43#include "G4UIcmdWithoutParameter.hh"
44
45//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
46
47XrayFluoDetectorMessenger::XrayFluoDetectorMessenger(XrayFluoDetectorConstruction * Det)
48:Detector(Det)
49{ 
50   detDir = new G4UIdirectory("/apparate/");
51  detDir->SetGuidance("detector control.");
52
53  UpdateCmd = new G4UIcmdWithoutParameter("/apparate/update",this);
54  UpdateCmd->SetGuidance("Update apparate geometry.");
55  UpdateCmd->SetGuidance("This command MUST be applied before \"beamOn\" ");
56  UpdateCmd->SetGuidance("if you changed geometrical value(s).");
57  UpdateCmd->AvailableForStates(G4State_Idle);
58 
59}
60
61//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
62
63 XrayFluoDetectorMessenger::~XrayFluoDetectorMessenger()
64{
65  delete UpdateCmd;
66  delete detDir;
67}
68
69//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
70
71void XrayFluoDetectorMessenger::SetNewValue(G4UIcommand* command,G4String newValue)
72{
73 if( command == UpdateCmd )
74   { Detector->UpdateGeometry(); }
75 }
76
77//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
78
79
Note: See TracBrowser for help on using the repository browser.