Geant4 10.7.0
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
G4AnalysisMessenger.hh
Go to the documentation of this file.
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// The messenger class for G4VAnalysisManager.
28// It implements commands:
29// - /analysis/setActivation
30// - /analysis/verbose
31//
32// Author: Ivana Hrivnacova, 24/06/2013 ([email protected])
33
34#ifndef G4AnalysisMessenger_h
35#define G4AnalysisMessenger_h 1
36
37#include "G4UImessenger.hh"
38#include "globals.hh"
39
40#include <memory>
41
43class G4HnManager;
44class G4FileMessenger;
45class G4H1Messenger;
46class G4H2Messenger;
47class G4H3Messenger;
48class G4P1Messenger;
49class G4P2Messenger;
51class G4HnMessenger;
52
53class G4UIdirectory;
56
58{
59 public:
60 explicit G4AnalysisMessenger(G4VAnalysisManager* manager);
61 virtual ~G4AnalysisMessenger();
62
63 // methods
64 void SetH1HnManager(G4HnManager& h1HnManager);
65 void SetH2HnManager(G4HnManager& h2HnManager);
66 void SetH3HnManager(G4HnManager& h3HnManager);
67 void SetP1HnManager(G4HnManager& p1HnManager);
68 void SetP2HnManager(G4HnManager& p2HnManager);
69
70 // methods
71 virtual void SetNewValue(G4UIcommand* command, G4String value) final;
72
73 private:
74 // data members
75 G4VAnalysisManager* fManager; ///< Associated class
76 std::unique_ptr<G4FileMessenger> fFileMessenger;
77 std::unique_ptr<G4H1Messenger> fH1Messenger;
78 std::unique_ptr<G4H2Messenger> fH2Messenger;
79 std::unique_ptr<G4H3Messenger> fH3Messenger;
80 std::unique_ptr<G4P1Messenger> fP1Messenger;
81 std::unique_ptr<G4P2Messenger> fP2Messenger;
82 std::unique_ptr<G4NtupleMessenger> fNtupleMessenger;
83 std::unique_ptr<G4HnMessenger> fH1HnMessenger;
84 std::unique_ptr<G4HnMessenger> fH2HnMessenger;
85 std::unique_ptr<G4HnMessenger> fH3HnMessenger;
86 std::unique_ptr<G4HnMessenger> fP1HnMessenger;
87 std::unique_ptr<G4HnMessenger> fP2HnMessenger;
88
89 std::unique_ptr<G4UIdirectory> fAnalysisDir;
90 std::unique_ptr<G4UIcmdWithABool> fSetActivationCmd;
91 std::unique_ptr<G4UIcmdWithAnInteger> fVerboseCmd;
92 std::unique_ptr<G4UIcmdWithAnInteger> fCompressionCmd;
93};
94
95#endif
96
void SetP2HnManager(G4HnManager &p2HnManager)
void SetP1HnManager(G4HnManager &p1HnManager)
void SetH2HnManager(G4HnManager &h2HnManager)
void SetH3HnManager(G4HnManager &h3HnManager)
virtual void SetNewValue(G4UIcommand *command, G4String value) final
void SetH1HnManager(G4HnManager &h1HnManager)