Geant4
10.03.p01
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
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
//_____________________________________________________________________________
39
G4ToolsAnalysisReader::G4ToolsAnalysisReader
(
const
G4String
& type,
G4bool
isMaster)
40
:
G4VAnalysisReader
(type, isMaster),
41
fH1Manager(nullptr),
42
fH2Manager(nullptr),
43
fH3Manager(nullptr),
44
fP1Manager(nullptr),
45
fP2Manager(nullptr)
46
{
47
// Create managers
48
fH1Manager
=
new
G4H1ToolsManager
(
fState
);
49
fH2Manager
=
new
G4H2ToolsManager
(
fState
);
50
fH3Manager
=
new
G4H3ToolsManager
(
fState
);
51
fP1Manager
=
new
G4P1ToolsManager
(
fState
);
52
fP2Manager
=
new
G4P2ToolsManager
(
fState
);
53
// The managers will be deleted by the base class
54
55
// Set managers to base class which takes then their ownership
56
SetH1Manager
(
fH1Manager
);
57
SetH2Manager
(
fH2Manager
);
58
SetH3Manager
(
fH3Manager
);
59
SetP1Manager
(
fP1Manager
);
60
SetP2Manager
(
fP2Manager
);
61
}
62
63
//_____________________________________________________________________________
64
G4ToolsAnalysisReader::~G4ToolsAnalysisReader
()
65
{}
66
67
//
68
// protected methods
69
//
70
71
//_____________________________________________________________________________
72
G4bool
G4ToolsAnalysisReader::Reset
()
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
}
result
G4double G4ParticleHPJENDLHEData::G4double result
Definition:
G4ParticleHPJENDLHEData.cc:257
G4VAnalysisReader::SetP1Manager
void SetP1Manager(G4VP1Manager *p1Manager)
Definition:
G4VAnalysisReader.cc:84
G4MPIToolsManager.hh
G4VAnalysisReader::SetP2Manager
void SetP2Manager(G4VP2Manager *p2Manager)
Definition:
G4VAnalysisReader.cc:90
G4ToolsAnalysisReader::fP1Manager
G4P1ToolsManager * fP1Manager
Definition:
G4ToolsAnalysisReader.hh:78
G4H1ToolsManager.hh
G4ToolsAnalysisReader::fH1Manager
G4H1ToolsManager * fH1Manager
Definition:
G4ToolsAnalysisReader.hh:75
G4ToolsAnalysisReader::~G4ToolsAnalysisReader
virtual ~G4ToolsAnalysisReader()
Definition:
G4ToolsAnalysisReader.cc:64
G4ToolsAnalysisReader.hh
G4VAnalysisReader::fState
G4AnalysisManagerState fState
Definition:
G4VAnalysisReader.hh:251
G4ToolsAnalysisReader::fH3Manager
G4H3ToolsManager * fH3Manager
Definition:
G4ToolsAnalysisReader.hh:77
G4P2ToolsManager.hh
G4THnManager::Reset
G4bool Reset()
G4VAnalysisReader::SetH3Manager
void SetH3Manager(G4VH3Manager *h3Manager)
Definition:
G4VAnalysisReader.cc:78
G4ToolsAnalysisReader::fH2Manager
G4H2ToolsManager * fH2Manager
Definition:
G4ToolsAnalysisReader.hh:76
G4bool
bool G4bool
Definition:
G4Types.hh:79
G4ToolsAnalysisReader::Reset
G4bool Reset()
Definition:
G4ToolsAnalysisReader.cc:72
G4P1ToolsManager.hh
G4H3ToolsManager.hh
G4ToolsAnalysisReader::fP2Manager
G4P2ToolsManager * fP2Manager
Definition:
G4ToolsAnalysisReader.hh:79
G4VAnalysisReader::SetH1Manager
void SetH1Manager(G4VH1Manager *h1Manager)
Definition:
G4VAnalysisReader.cc:66
G4ToolsAnalysisReader::G4ToolsAnalysisReader
G4ToolsAnalysisReader(const G4String &type, G4bool isMaster=true)
Definition:
G4ToolsAnalysisReader.cc:39
G4P1ToolsManager
Definition:
G4P1ToolsManager.hh:53
G4P2ToolsManager
Definition:
G4P2ToolsManager.hh:52
G4H1ToolsManager
Definition:
G4H1ToolsManager.hh:52
G4VAnalysisReader::SetH2Manager
void SetH2Manager(G4VH2Manager *h2Manager)
Definition:
G4VAnalysisReader.cc:72
G4H3ToolsManager
Definition:
G4H3ToolsManager.hh:53
G4H2ToolsManager
Definition:
G4H2ToolsManager.hh:52
G4VAnalysisReader
Definition:
G4VAnalysisReader.hh:56
G4H2ToolsManager.hh
G4String
Definition:
G4String.hh:60
geant4.10.03.p01
source
analysis
hntools
src
G4ToolsAnalysisReader.cc
Generated on Thu Mar 16 2017 22:37:50 for Geant4 by
1.8.5