Files
geant4/source/digits_hits/utils/include/G4ScoringMessenger.hh
2024-12-06 11:11:40 +01:00

136 lines
4.4 KiB
C++

//
// ********************************************************************
// * 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. *
// ********************************************************************
//
// G4ScoringMessenger
//
// Class description:
//
// This is a concrete class of G4UImessenger which handles the
// commands for G4ScoringManager.
//
// Author: Tsukasa Aso (KEK), September 2007
// --------------------------------------------------------------------
#ifndef G4ScoringMessenger_h
#define G4ScoringMessenger_h 1
#include "G4String.hh"
#include "G4UImessenger.hh"
#include <vector>
class G4ScoringManager;
class G4VScoringMesh;
class G4UIdirectory;
class G4UIcmdWithoutParameter;
class G4UIcmdWithAString;
class G4UIcmdWithABool;
class G4UIcmdWithAnInteger;
class G4UIcmdWithADoubleAndUnit;
class G4UIcmdWith3VectorAndUnit;
class G4UIcommand;
using G4TokenVec = std::vector<G4String>;
class G4ScoringMessenger : public G4UImessenger
{
public:
G4ScoringMessenger(G4ScoringManager* SManager);
~G4ScoringMessenger() override;
void SetNewValue(G4UIcommand* command, G4String newValues) override;
G4String GetCurrentValue(G4UIcommand* command) override;
protected:
void FillTokenVec(const G4String& newValues, G4TokenVec& token);
void MeshBinCommand(G4VScoringMesh* mesh, G4TokenVec& token);
void Fill1D(G4UIcommand* cmd, const G4String& newValues);
private:
G4ScoringManager* fSMan;
G4UIdirectory* scoreDir;
G4UIcmdWithoutParameter* listCmd;
G4UIcmdWithoutParameter* dumpCmd;
G4UIcmdWithAnInteger* verboseCmd;
//
G4UIdirectory* meshCreateDir;
G4UIcmdWithAString* meshBoxCreateCmd;
G4UIcmdWithAString* meshCylinderCreateCmd;
G4UIcommand* meshRWLogVolCreateCmd;
G4UIcommand* probeCreateCmd;
//
// Mesh commands
G4UIdirectory* meshDir;
G4UIcmdWithAString* meshOpnCmd;
//
G4UIcmdWithoutParameter* meshClsCmd;
//
// Size commands
G4UIcmdWith3VectorAndUnit* mBoxSizeCmd;
G4UIcommand* mCylinderSizeCmd;
G4UIcmdWithADoubleAndUnit* mCylinderRMinCmd;
G4UIcommand* mCylinderAngleCmd;
//
// Division command
G4UIcommand* mBinCmd;
//
// Placement command
G4UIdirectory* mTransDir;
G4UIcmdWithoutParameter* mTResetCmd;
G4UIcmdWith3VectorAndUnit* mTXyzCmd;
G4UIdirectory* mRotDir;
G4UIcmdWithADoubleAndUnit* mRotXCmd;
G4UIcmdWithADoubleAndUnit* mRotYCmd;
G4UIcmdWithADoubleAndUnit* mRotZCmd;
//
// Probe commands
G4UIdirectory* probeDir;
G4UIcmdWithAString* probeMatCmd;
G4UIcmdWith3VectorAndUnit* probeLocateCmd;
//
// Draw Command
G4UIcommand* drawCmd;
G4UIcommand* drawColumnCmd;
G4UIdirectory* colorMapDir;
G4UIcmdWithoutParameter* listColorMapCmd;
G4UIcmdWithAString* floatMinMaxCmd;
G4UIcommand* colorMapMinMaxCmd;
//
// Dump scoring result to file
G4UIcommand* dumpQtyToFileCmd;
G4UIcommand* dumpAllQtsToFileCmd;
G4UIcommand* dumpQtyWithFactorCmd;
G4UIcommand* dumpAllQtsWithFactorCmd;
//
// Command for direcly plotting to a histogram
G4UIcommand* fill1DCmd;
};
#endif