//
// ********************************************************************
// * License and Disclaimer                                           *
// *                                                                  *
// * The  Geant4 software  is  copyright of the Copyright Holders  of *
// * the Geant4 Collaboration.  It is provided  under  the terms  and *
// * conditions of the Geant4 Software License,  included in the file *
// * LICENSE and available at  http://cern.ch/geant4/license .  These *
// * include a list of copyright holders.                             *
// *                                                                  *
// * 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.  Please see the license in the file  LICENSE  and URL above *
// * for the full disclaimer and the limitation of liability.         *
// *                                                                  *
// * This  code  implementation is the result of  the  scientific and *
// * technical work of the GEANT4 collaboration.                      *
// * By using,  copying,  modifying or  distributing the software (or *
// * any work based  on the software)  you  agree  to acknowledge its *
// * use  in  resulting  scientific  publications,  and indicate your *
// * acceptance of all terms of the Geant4 Software license.          *
// ********************************************************************
//
// $Id: ExErrorDetectorMessenger.hh 68019 2013-03-13 13:32:43Z gcosmo $
//
/// \file errorpropagation/include/ExErrorDetectorMessenger.hh
/// \brief Definition of the ExErrorDetectorMessenger class
//

#ifndef ExErrorDetectorMessenger_hh
#define ExErrorDetectorMessenger_hh 1

#include "globals.hh"
#include "G4UImessenger.hh"

class ExErrorDetectorConstruction;
class G4UIdirectory;
class G4UIcmdWithAString;
class G4UIcmdWithADoubleAndUnit;

/// Detector messenger class
///
/// Defines a G4UIcommand to set the value of the constant field
///
/// History:
/// Created:  May 2007
/// \author   P. Arce 
//------------------------------------------------------------------------

class ExErrorDetectorMessenger: public G4UImessenger
{
public:
  ExErrorDetectorMessenger(ExErrorDetectorConstruction*);
  ~ExErrorDetectorMessenger();
  
  virtual void SetNewValue(G4UIcommand*, G4String);
  
private:
  ExErrorDetectorConstruction* fMyDetector;
  
  G4UIdirectory*             fMydetDir;
  G4UIcmdWithADoubleAndUnit* fFieldCmd;
};

#endif

