Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 09:59:04

0001 //
0002 // ********************************************************************
0003 // * License and Disclaimer                                           *
0004 // *                                                                  *
0005 // * The  Geant4 software  is  copyright of the Copyright Holders  of *
0006 // * the Geant4 Collaboration.  It is provided  under  the terms  and *
0007 // * conditions of the Geant4 Software License,  included in the file *
0008 // * LICENSE and available at  http://cern.ch/geant4/license .  These *
0009 // * include a list of copyright holders.                             *
0010 // *                                                                  *
0011 // * Neither the authors of this software system, nor their employing *
0012 // * institutes,nor the agencies providing financial support for this *
0013 // * work  make  any representation or  warranty, express or implied, *
0014 // * regarding  this  software system or assume any liability for its *
0015 // * use.  Please see the license in the file  LICENSE  and URL above *
0016 // * for the full disclaimer and the limitation of liability.         *
0017 // *                                                                  *
0018 // * This  code  implementation is the result of  the  scientific and *
0019 // * technical work of the GEANT4 collaboration.                      *
0020 // * By using,  copying,  modifying or  distributing the software (or *
0021 // * any work based  on the software)  you  agree  to acknowledge its *
0022 // * use  in  resulting  scientific  publications,  and indicate your *
0023 // * acceptance of all terms of the Geant4 Software license.          *
0024 // ********************************************************************
0025 //
0026 //
0027 //
0028 // (HISTORY)
0029 //  03-Sep-2007  T.Aso Command definitions are introduced.
0030 //  01-Nov-2007  M.Asai Class is splited into two.
0031 //  20-Jul-2010  T.Aso  Specify unit for scorer
0032 //  24-Mar-2011  T.Aso  Add StepChecker for debugging.
0033 
0034 #ifndef G4ScoreQuantityMessenger_h
0035 #define G4ScoreQuantityMessenger_h 1
0036 
0037 #include "G4UImessenger.hh"
0038 
0039 #include <vector>
0040 #include "G4String.hh"
0041 
0042 class G4ScoringManager;
0043 class G4VScoringMesh;
0044 class G4UIdirectory;
0045 class G4UIcmdWithAString;
0046 class G4UIcmdWithoutParameter;
0047 class G4UIcommand;
0048 
0049 using G4TokenVec = std::vector<G4String>;
0050 
0051 // class description:
0052 //
0053 //  This is a concrete class of G4UImessenger which handles the commands for
0054 // G4ScoringManager.
0055 //
0056 
0057 class G4ScoreQuantityMessenger : public G4UImessenger
0058 {
0059  public:
0060   G4ScoreQuantityMessenger(G4ScoringManager* SManager);
0061 
0062   ~G4ScoreQuantityMessenger() override;
0063 
0064   void SetNewValue(G4UIcommand* command, G4String newValues) override;
0065 
0066   G4String GetCurrentValue(G4UIcommand*) override;
0067 
0068  protected:
0069   void FillTokenVec(G4String newValues, G4TokenVec& token);
0070 
0071   void FParticleCommand(G4VScoringMesh* mesh, G4TokenVec& token);
0072   void FParticleWithEnergyCommand(G4VScoringMesh* mesh, G4TokenVec& token);
0073 
0074   G4bool CheckMeshPS(G4VScoringMesh* mesh, G4String& psname,
0075                      G4UIcommand* command);
0076 
0077  private:
0078   void QuantityCommands();
0079   void FilterCommands();
0080 
0081  private:
0082   G4ScoringManager* fSMan;
0083   //
0084   // Quantity commands
0085   G4UIdirectory* quantityDir;
0086   G4UIcmdWithAString* qTouchCmd;
0087   G4UIcmdWithoutParameter* qGetUnitCmd;
0088   G4UIcmdWithAString* qSetUnitCmd;
0089   //
0090   G4UIcommand* qCellChgCmd;
0091   G4UIcommand* qCellFluxCmd;
0092   G4UIcommand* qPassCellFluxCmd;
0093   G4UIcommand* qeDepCmd;
0094   G4UIcommand* qdoseDepCmd;
0095   G4UIcommand* qnOfStepCmd;
0096   G4UIcommand* qnOfSecondaryCmd;
0097   //
0098   G4UIcommand* qTrackLengthCmd;
0099   G4UIcommand* qPassCellCurrCmd;
0100   G4UIcommand* qPassTrackLengthCmd;
0101   G4UIcommand* qFlatSurfCurrCmd;
0102   G4UIcommand* qFlatSurfFluxCmd;
0103   G4UIcommand* qVolFluxCmd;
0104   G4UIcommand* qNofCollisionCmd;
0105   G4UIcommand* qPopulationCmd;
0106   G4UIcommand* qTrackCountCmd;
0107   G4UIcommand* qTerminationCmd;
0108   G4UIcommand* qMinKinEAtGeneCmd;
0109   G4UIcommand* qStepCheckerCmd;
0110 
0111   //
0112   // Filter commands
0113   G4UIdirectory* filterDir;
0114   G4UIcmdWithAString* fchargedCmd;
0115   G4UIcmdWithAString* fneutralCmd;
0116   G4UIcommand* fkinECmd;
0117   G4UIcommand* fparticleCmd;
0118   G4UIcommand* fparticleKinECmd;
0119   //
0120 };
0121 
0122 #endif