Geant4  10.03.p01
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
G4ToolsAnalysisReader.cc
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: G4ToolsAnalysisReader.cc 91116 2015-06-20 12:33:45Z ihrivnac $
27 
28 // Author: Ivana Hrivnacova, 20/07/2015 (ivana@ipno.in2p3.fr)
29 
30 #include "G4ToolsAnalysisReader.hh"
31 #include "G4H1ToolsManager.hh"
32 #include "G4H2ToolsManager.hh"
33 #include "G4H3ToolsManager.hh"
34 #include "G4P1ToolsManager.hh"
35 #include "G4P2ToolsManager.hh"
36 #include "G4MPIToolsManager.hh"
37 
38 //_____________________________________________________________________________
40  : G4VAnalysisReader(type, isMaster),
41  fH1Manager(nullptr),
42  fH2Manager(nullptr),
43  fH3Manager(nullptr),
44  fP1Manager(nullptr),
45  fP2Manager(nullptr)
46 {
47  // Create managers
53  // The managers will be deleted by the base class
54 
55  // Set managers to base class which takes then their ownership
61 }
62 
63 //_____________________________________________________________________________
65 {}
66 
67 //
68 // protected methods
69 //
70 
71 //_____________________________________________________________________________
73 {
74 // Reset histograms and profiles
75 
76  auto finalResult = true;
77 
78  auto result = fH1Manager->Reset();
79  finalResult = finalResult && result;
80 
81  result = fH2Manager->Reset();
82  finalResult = finalResult && result;
83 
84  result = fH3Manager->Reset();
85  finalResult = finalResult && result;
86 
87  result = fP1Manager->Reset();
88  finalResult = finalResult && result;
89 
90  result = fP2Manager->Reset();
91  finalResult = finalResult && result;
92 
93  return finalResult;
94 }
G4double G4ParticleHPJENDLHEData::G4double result
void SetP1Manager(G4VP1Manager *p1Manager)
void SetP2Manager(G4VP2Manager *p2Manager)
G4P1ToolsManager * fP1Manager
G4H1ToolsManager * fH1Manager
G4AnalysisManagerState fState
G4H3ToolsManager * fH3Manager
G4bool Reset()
void SetH3Manager(G4VH3Manager *h3Manager)
G4H2ToolsManager * fH2Manager
bool G4bool
Definition: G4Types.hh:79
G4P2ToolsManager * fP2Manager
void SetH1Manager(G4VH1Manager *h1Manager)
G4ToolsAnalysisReader(const G4String &type, G4bool isMaster=true)
void SetH2Manager(G4VH2Manager *h2Manager)