//
// ********************************************************************
// * 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: G4ScoreQuantityMessenger.hh,v 1.4 2007/11/06 17:17:14 asaim Exp $
// GEANT4 tag $Name: geant4-09-03 $
//
// (HISTORY)
//  03-Sep-2007  T.Aso Command definitions are introduced.
//  01-Nov-2007  M.Asai Class is splited into two.


#ifndef G4ScoreQuantityMessenger_h
#define G4ScoreQuantityMessenger_h 1

#include "G4UImessenger.hh"

#include <vector>
#include "G4String.hh"

class G4ScoringManager;
class G4VScoringMesh;
class G4UIdirectory;
class G4UIcmdWithAString;
class G4UIcommand;

typedef std::vector<G4String> G4TokenVec;

// class description:
//
//  This is a concrete class of G4UImessenger which handles the commands for
// G4ScoringManager. 
//

class G4ScoreQuantityMessenger: public G4UImessenger
{

  public:
    G4ScoreQuantityMessenger(G4ScoringManager * SManager);

    ~G4ScoreQuantityMessenger();

    void SetNewValue(G4UIcommand * command,G4String newValues);

    G4String GetCurrentValue(G4UIcommand * );

  protected:    

    void FillTokenVec(G4String newValues,G4TokenVec& token);

    void FParticleCommand(G4VScoringMesh* mesh,G4TokenVec& token); 
    void FParticleWithEnergyCommand(G4VScoringMesh* mesh,G4TokenVec& token); 
  
  private:
    void QuantityCommands();
    void FilterCommands();

  private:
    G4ScoringManager*        fSMan;
    //
    // Quantity commands
    G4UIdirectory*             quantityDir;
    G4UIcmdWithAString*        qTouchCmd;
    //
    G4UIcmdWithAString*   qCellChgCmd;
    G4UIcmdWithAString*   qCellFluxCmd;
    G4UIcmdWithAString*   qPassCellFluxCmd;
    G4UIcmdWithAString*   qeDepCmd;
    G4UIcmdWithAString*   qdoseDepCmd;
    G4UIcmdWithAString*   qnOfStepCmd;
    G4UIcmdWithAString*   qnOfSecondaryCmd;
    //
    G4UIcommand*          qTrackLengthCmd;
    G4UIcommand*          qPassCellCurrCmd;
    G4UIcommand*          qPassTrackLengthCmd;
    G4UIcommand*          qFlatSurfCurrCmd;
    G4UIcommand*          qFlatSurfFluxCmd;
//    G4UIcommand*          qSphereSurfCurrCmd;
//    G4UIcommand*          qSphereSurfFluxCmd;
//    G4UIcommand*          qCylSurfCurrCmd;
//    G4UIcommand*          qCylSurfFluxCmd;
    G4UIcommand*          qNofCollisionCmd;
    G4UIcommand*          qPopulationCmd;
    G4UIcommand*          qTrackCountCmd;
    G4UIcommand*          qTerminationCmd;

    //
    // Filter commands 
    G4UIdirectory*             filterDir;
    G4UIcmdWithAString*        fchargedCmd;
    G4UIcmdWithAString*        fneutralCmd;
    G4UIcommand*               fkinECmd;
    G4UIcommand*               fparticleCmd;
    G4UIcommand*               fparticleKinECmd;
    //


};




#endif

