Geant4  10.02.p02
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 // $Id: G4AnalysisMessenger.hh 66310 2012-12-17 11:56:35Z ihrivnac $
27 
28 // The messenger class for G4VAnalysisManager.
29 // It implements commands:
30 // - /analysis/setActivation
31 // - /analysis/verbose
32 //
33 // Author: Ivana Hrivnacova, 24/06/2013 (ivana@ipno.in2p3.fr)
34 
35 #ifndef G4AnalysisMessenger_h
36 #define G4AnalysisMessenger_h 1
37 
38 #include "G4UImessenger.hh"
39 #include "globals.hh"
40 
41 #include <memory>
42 
43 class G4VAnalysisManager;
44 class G4HnManager;
45 class G4FileMessenger;
46 class G4H1Messenger;
47 class G4H2Messenger;
48 class G4H3Messenger;
49 class G4P1Messenger;
50 class G4P2Messenger;
51 class G4NtupleMessenger;
52 class G4HnMessenger;
53 
54 class G4UIdirectory;
55 class G4UIcmdWithABool;
57 
59 {
60  public:
61  explicit G4AnalysisMessenger(G4VAnalysisManager* manager);
62  virtual ~G4AnalysisMessenger();
63 
64  // methods
65  void SetH1HnManager(G4HnManager& h1HnManager);
66  void SetH2HnManager(G4HnManager& h2HnManager);
67  void SetH3HnManager(G4HnManager& h2HnManager);
68  void SetP1HnManager(G4HnManager& h1HnManager);
69  void SetP2HnManager(G4HnManager& h2HnManager);
70 
71  // methods
72  virtual void SetNewValue(G4UIcommand* command, G4String value) final;
73 
74  private:
75  // data members
77  std::unique_ptr<G4FileMessenger> fFileMessenger;
78  std::unique_ptr<G4H1Messenger> fH1Messenger;
79  std::unique_ptr<G4H2Messenger> fH2Messenger;
80  std::unique_ptr<G4H3Messenger> fH3Messenger;
81  std::unique_ptr<G4P1Messenger> fP1Messenger;
82  std::unique_ptr<G4P2Messenger> fP2Messenger;
83  std::unique_ptr<G4NtupleMessenger> fNtupleMessenger;
84  std::unique_ptr<G4HnMessenger> fH1HnMessenger;
85  std::unique_ptr<G4HnMessenger> fH2HnMessenger;
86  std::unique_ptr<G4HnMessenger> fH3HnMessenger;
87  std::unique_ptr<G4HnMessenger> fP1HnMessenger;
88  std::unique_ptr<G4HnMessenger> fP2HnMessenger;
89 
90  std::unique_ptr<G4UIdirectory> fAnalysisDir;
91  std::unique_ptr<G4UIcmdWithABool> fSetActivationCmd;
92  std::unique_ptr<G4UIcmdWithAnInteger> fVerboseCmd;
93  std::unique_ptr<G4UIcmdWithAnInteger> fCompressionCmd;
94 };
95 
96 #endif
97 
std::unique_ptr< G4HnMessenger > fP1HnMessenger
std::unique_ptr< G4HnMessenger > fH2HnMessenger
std::unique_ptr< G4HnMessenger > fH1HnMessenger
std::unique_ptr< G4UIcmdWithABool > fSetActivationCmd
std::unique_ptr< G4P2Messenger > fP2Messenger
std::unique_ptr< G4HnMessenger > fP2HnMessenger
void SetH3HnManager(G4HnManager &h2HnManager)
std::unique_ptr< G4HnMessenger > fH3HnMessenger
std::unique_ptr< G4UIdirectory > fAnalysisDir
std::unique_ptr< G4FileMessenger > fFileMessenger
void SetH1HnManager(G4HnManager &h1HnManager)
virtual void SetNewValue(G4UIcommand *command, G4String value) final
std::unique_ptr< G4P1Messenger > fP1Messenger
std::unique_ptr< G4H1Messenger > fH1Messenger
std::unique_ptr< G4UIcmdWithAnInteger > fCompressionCmd
void SetP2HnManager(G4HnManager &h2HnManager)
std::unique_ptr< G4UIcmdWithAnInteger > fVerboseCmd
G4AnalysisMessenger(G4VAnalysisManager *manager)
void SetP1HnManager(G4HnManager &h1HnManager)
std::unique_ptr< G4H3Messenger > fH3Messenger
G4VAnalysisManager * fManager
Associated class.
std::unique_ptr< G4H2Messenger > fH2Messenger
std::unique_ptr< G4NtupleMessenger > fNtupleMessenger
void SetH2HnManager(G4HnManager &h2HnManager)