Geant4  10.00.p03
G4CsvAnalysisManager.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: G4CsvAnalysisManager.hh 74257 2013-10-02 14:24:55Z gcosmo $
27 
28 // The main manager for Csv analysis.
29 // It delegates most of functions to the object specific managers.
30 
31 // Author: Ivana Hrivnacova, 18/06/2013 (ivana@ipno.in2p3.fr)
32 
33 #ifndef G4CsvAnalysisManager_h
34 #define G4CsvAnalysisManager_h 1
35 
36 
37 #include "G4VAnalysisManager.hh"
39 #include "globals.hh"
40 
41 #include "tools/wcsv_ntuple"
42 
43 #include <fstream>
44 #include <vector>
45 #include <map>
46 
47 class G4H1DummyManager;
48 class G4H2DummyManager;
49 class G4CsvFileManager;
50 class G4CsvNtupleManager;
51 
53 {
54  public:
55  G4CsvAnalysisManager(G4bool isMaster = true);
57 
58  // static methods
60 
61  // Access methods
62  tools::wcsv::ntuple* GetNtuple() const;
63  tools::wcsv::ntuple* GetNtuple(G4int ntupleId) const;
64 
65  protected:
66  // virtual methods from base class
67  virtual G4bool OpenFileImpl(const G4String& fileName);
68  virtual G4bool WriteImpl();
69  virtual G4bool CloseFileImpl();
70 
71  private:
72  // static data members
73  //
76 
77  // methods
78  //
80 
81  // data members
82  //
87 };
88 
89 #include "G4CsvAnalysisManager.icc"
90 
91 #endif
92 
static G4ThreadLocal G4CsvAnalysisManager * fgInstance
G4CsvFileManager * fFileManager
virtual G4bool OpenFileImpl(const G4String &fileName)
G4CsvAnalysisManager(G4bool isMaster=true)
#define G4ThreadLocal
Definition: tls.hh:52
tools::wcsv::ntuple * GetNtuple() const
int G4int
Definition: G4Types.hh:78
static G4CsvAnalysisManager * Instance()
virtual G4bool CloseFileImpl()
bool G4bool
Definition: G4Types.hh:79
G4CsvNtupleManager * fNtupleManager
static G4CsvAnalysisManager * fgMasterInstance
G4H2DummyManager * fH2Manager
G4H1DummyManager * fH1Manager