Geant4  10.02.p01
ExG4HbookBaseHnManager.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 
30 
31 // Author: Ivana Hrivnacova, 03/11/2014 (ivana@ipno.in2p3.fr)
32 
33 #ifndef ExG4HbookBaseHnManager_h
34 #define ExG4HbookBaseHnManager_h 1
35 
36 #include "globals.hh"
37 
38 #include "tools/hbook/base_histo"
39 #include "tools/hbook/axis"
40 
44 
45 class ExG4HbookBaseHnManager //: public G4VH1Manager
46 {
47  public:
48  ExG4HbookBaseHnManager(const G4String& hnType);
49  virtual ~ExG4HbookBaseHnManager();
50 
51  friend class ExG4HbookH1Manager;
52  friend class ExG4HbookH2Manager;
53  friend class ExG4HbookP1Manager;
54 
55  protected:
56  typedef tools::hbook::base_histo G4HbookBaseHisto;
57 
58  // Access to datA parameters
59  G4int GetNbins(const tools::hbook::axis& axis) const;
60  G4double GetMin(const tools::hbook::axis& axis) const;
61  G4double GetMax(const tools::hbook::axis& axis) const;
62  G4double GetWidth(const tools::hbook::axis& axis) const;
63 
64  // Attributes for plotting
65  //
66 
67  // Setters
68  //G4bool SetTitle(G4HbookBaseHisto& baseHisto, const G4String& title);
69  G4bool SetAxisTitle(G4HbookBaseHisto& baseHisto, G4int dimension, const G4String& title);
70 
71  // Accessors
72  //G4String GetTitle(const G4HbookBaseHisto& baseHisto) const;
73  G4String GetAxisTitle(const G4HbookBaseHisto& baseHisto, G4int dimension) const;
74 
75  // Static data members
76  static const G4int kX;
77  static const G4int kY;
78  static const G4int kZ;
79 
80  private:
81  // Data members
83 };
84 
85 #endif
86 
G4double GetMin(const tools::hbook::axis &axis) const
tools::hbook::base_histo G4HbookBaseHisto
G4String GetAxisTitle(const G4HbookBaseHisto &baseHisto, G4int dimension) const
int G4int
Definition: G4Types.hh:78
ExG4HbookBaseHnManager(const G4String &hnType)
G4bool SetAxisTitle(G4HbookBaseHisto &baseHisto, G4int dimension, const G4String &title)
bool G4bool
Definition: G4Types.hh:79
G4double GetWidth(const tools::hbook::axis &axis) const
G4double GetMax(const tools::hbook::axis &axis) const
Manager class for tools::hbook::base_histo functions.
G4int GetNbins(const tools::hbook::axis &axis) const
double G4double
Definition: G4Types.hh:76