Geant4  10.01.p03
G4BaseToolsManager.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$
27 
28 // Manager class for tools::histo::base_histo functions.
29 // It implements functions common to all histograms and profiles.
30 //
31 // Author: Ivana Hrivnacova, 24/07/2014 (ivana@ipno.in2p3.fr)
32 
33 #ifndef G4BaseToolsManager_h
34 #define G4BaseToolsManager_h 1
35 
36 #include "globals.hh"
37 
38 #include "tools/histo/base_histo"
39 
40 class G4BaseToolsManager //: public G4VH1Manager
41 {
42  public:
43  G4BaseToolsManager(const G4String& hnType);
44  virtual ~G4BaseToolsManager();
45 
46  friend class G4H1ToolsManager;
47  friend class G4H2ToolsManager;
48  friend class G4H3ToolsManager;
49  friend class G4P1ToolsManager;
50  friend class G4P2ToolsManager;
51 
52  protected:
53  typedef tools::histo::base_histo<double, unsigned int, unsigned int, double, double>
55 
56  // Access to datA parameters
57  G4int GetNbins(const G4ToolsBaseHisto& baseHisto, G4int dimension) const;
58  G4double GetMin(const G4ToolsBaseHisto& baseHisto, G4int dimension) const;
59  G4double GetMax(const G4ToolsBaseHisto& baseHisto, G4int dimension) const;
60  G4double GetWidth(const G4ToolsBaseHisto& baseHisto, G4int dimension) const;
61 
62  // Attributes for plotting
63  //
64 
65  // Setters
66  G4bool SetTitle(G4ToolsBaseHisto& baseHisto, const G4String& title);
67  G4bool SetAxisTitle(G4ToolsBaseHisto& baseHisto, G4int dimension, const G4String& title);
68 
69  // Accessors
70  G4String GetTitle(const G4ToolsBaseHisto& baseHisto) const;
71  G4String GetAxisTitle(const G4ToolsBaseHisto& baseHisto, G4int dimension) const;
72 
73  // Static data members
74  static const G4int kX;
75  static const G4int kY;
76  static const G4int kZ;
77 
78  private:
79  // Data members
81 };
82 
83 #endif
84 
G4bool SetTitle(G4ToolsBaseHisto &baseHisto, const G4String &title)
G4String GetTitle(const G4ToolsBaseHisto &baseHisto) const
static const G4int kY
static const G4int kZ
int G4int
Definition: G4Types.hh:78
G4String GetAxisTitle(const G4ToolsBaseHisto &baseHisto, G4int dimension) const
G4BaseToolsManager(const G4String &hnType)
G4int GetNbins(const G4ToolsBaseHisto &baseHisto, G4int dimension) const
bool G4bool
Definition: G4Types.hh:79
G4double GetWidth(const G4ToolsBaseHisto &baseHisto, G4int dimension) const
tools::histo::base_histo< double, unsigned int, unsigned int, double, double > G4ToolsBaseHisto
G4double GetMax(const G4ToolsBaseHisto &baseHisto, G4int dimension) const
double G4double
Definition: G4Types.hh:76
G4double GetMin(const G4ToolsBaseHisto &baseHisto, G4int dimension) const
G4bool SetAxisTitle(G4ToolsBaseHisto &baseHisto, G4int dimension, const G4String &title)
static const G4int kX