46 : fState(type, isMaster),
52 fVNtupleManager(nullptr),
67 fVH1Manager.reset(h1Manager);
73 fVH2Manager.reset(h2Manager);
79 fVH3Manager.reset(h3Manager);
85 fVP1Manager.reset(p1Manager);
91 fVP2Manager.reset(p2Manager);
97 fVNtupleManager.reset(ntupleManager);
103 fFileManager.reset(fileManager);
113 fFileManager->SetFileName(fileName);
119 return fFileManager->GetFileName();
127 if ( fileName !=
"" ) {
128 return ReadH1Impl(h1Name, fileName, dirName,
true);
131 if ( fFileManager->GetFileName() ==
"" ) {
134 <<
"Cannot get H1. File name has to be set first.";
139 return ReadH1Impl(h1Name, fFileManager->GetFileName(), dirName,
false);
148 if ( fileName !=
"" ) {
149 return ReadH2Impl(h2Name, fileName, dirName,
true);
152 if ( fFileManager->GetFileName() ==
"" ) {
155 <<
"Cannot get H2. File name has to be set first.";
160 return ReadH2Impl(h2Name, fFileManager->GetFileName(), dirName,
false);
169 if ( fileName !=
"" ) {
170 return ReadH3Impl(h3Name, fileName, dirName,
true);
173 if ( fFileManager->GetFileName() ==
"" ) {
176 <<
"Cannot get H3. File name has to be set first.";
181 return ReadH3Impl(h3Name, fFileManager->GetFileName(), dirName,
false);
190 if ( fileName !=
"" ) {
191 return ReadP1Impl(p1Name, fileName, dirName,
true);
194 if ( fFileManager->GetFileName() ==
"" ) {
197 <<
"Cannot get P1. File name has to be set first.";
202 return ReadP1Impl(p1Name, fFileManager->GetFileName(), dirName,
false);
211 if ( fileName !=
"" ) {
212 return ReadP2Impl(p2Name, fileName, dirName,
true);
215 if ( fFileManager->GetFileName() ==
"" ) {
218 <<
"Cannot get P2. File name has to be set first.";
223 return ReadP2Impl(p2Name, fFileManager->GetFileName(), dirName,
false);
230 G4bool finalResult =
true;
233 finalResult = finalResult && result;
236 finalResult = finalResult && result;
239 finalResult = finalResult && result;
247 return fVH1Manager->GetHnManager()->SetFirstId(firstId);
253 return fVH2Manager->GetHnManager()->SetFirstId(firstId);
259 return fVH3Manager->GetHnManager()->SetFirstId(firstId);
265 G4bool finalResult =
true;
268 finalResult = finalResult && result;
271 finalResult = finalResult && result;
279 return fVP1Manager->GetHnManager()->SetFirstId(firstId);
285 return fVP2Manager->GetHnManager()->SetFirstId(firstId);
291 return fVNtupleManager->SetFirstId(firstId);
299 if ( fileName !=
"" ) {
304 if ( fFileManager->GetFileName() ==
"" ) {
307 <<
"Cannot get Ntuple. File name has to be set first.";
312 return ReadNtupleImpl(ntupleName, fFileManager->GetFileName(), dirName,
false);
320 return fVNtupleManager->SetNtupleIColumn(columnName, value);
327 return fVNtupleManager->SetNtupleFColumn(columnName, value);
334 return fVNtupleManager->SetNtupleDColumn(columnName, value);
341 return fVNtupleManager->SetNtupleSColumn(columnName, value);
346 std::vector<int>& vector)
348 return fVNtupleManager->SetNtupleIColumn(columnName, vector);
353 std::vector<float>& vector)
355 return fVNtupleManager->SetNtupleFColumn(columnName, vector);
360 std::vector<double>& vector)
362 return fVNtupleManager->SetNtupleDColumn(columnName, vector);
370 return fVNtupleManager->SetNtupleIColumn(ntupleId, columnName, value);
378 return fVNtupleManager->SetNtupleFColumn(ntupleId, columnName, value);
386 return fVNtupleManager->SetNtupleDColumn(ntupleId, columnName, value);
394 return fVNtupleManager->SetNtupleSColumn(ntupleId, columnName, value);
400 std::vector<int>& vector)
402 return fVNtupleManager->SetNtupleIColumn(ntupleId, columnName, vector);
408 std::vector<float>& vector)
410 return fVNtupleManager->SetNtupleFColumn(ntupleId, columnName, vector);
416 std::vector<double>& vector)
418 return fVNtupleManager->SetNtupleDColumn(ntupleId, columnName, vector);
424 return fVNtupleManager->GetNtupleRow();
431 return fVNtupleManager->GetNtupleRow(ntupleId);
437 return fVH1Manager->GetHnManager()->GetNofHns();
443 return fVH2Manager->GetHnManager()->GetNofHns();
449 return fVH3Manager->GetHnManager()->GetNofHns();
455 return fVP1Manager->GetHnManager()->GetNofHns();
461 return fVP2Manager->GetHnManager()->GetNofHns();
467 return fVNtupleManager->GetNofNtuples();
477 fState.SetVerboseLevel(verboseLevel);
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *description)
std::ostringstream G4ExceptionDescription
G4bool SetFirstH3Id(G4int firstId)
G4int ReadP2(const G4String &h2Name, const G4String &fileName="", const G4String &dirName="")
G4bool SetNtupleFColumn(const G4String &columnName, G4float &value)
G4bool SetFirstP1Id(G4int firstId)
virtual G4int ReadH3Impl(const G4String &h3Name, const G4String &fileName, const G4String &dirName, G4bool isUserFileName)=0
void SetFileManager(G4BaseFileManager *fileManager)
void SetP1Manager(G4VP1Manager *p1Manager)
G4bool SetNtupleSColumn(const G4String &columnName, G4String &value)
G4bool SetNtupleDColumn(const G4String &columnName, G4double &value)
G4bool SetFirstHistoId(G4int firstId)
void SetP2Manager(G4VP2Manager *p2Manager)
G4String GetFileName() const
void SetNtupleManager(G4VRNtupleManager *ntupleManager)
G4VAnalysisReader(const G4String &type, G4bool isMaster)
G4bool SetFirstH1Id(G4int firstId)
G4AnalysisManagerState fState
virtual G4int ReadNtupleImpl(const G4String &ntupleName, const G4String &fileName, const G4String &dirName, G4bool isUserFileName)=0
virtual G4int ReadP1Impl(const G4String &p1Name, const G4String &fileName, const G4String &dirName, G4bool isUserFileName)=0
G4int ReadH3(const G4String &h3Name, const G4String &fileName="", const G4String &dirName="")
void SetFileName(const G4String &fileName)
virtual G4int ReadH2Impl(const G4String &h2Name, const G4String &fileName, const G4String &dirName, G4bool isUserFileName)=0
G4bool SetFirstNtupleId(G4int firstId)
virtual G4int ReadH1Impl(const G4String &h1Name, const G4String &fileName, const G4String &dirName, G4bool isUserFileName)=0
G4int GetNofNtuples() const
void SetH2Manager(G4VH2Manager *h2Manager)
G4int ReadH2(const G4String &h2Name, const G4String &fileName="", const G4String &dirName="")
G4bool SetFirstH2Id(G4int firstId)
virtual ~G4VAnalysisReader()
G4bool SetFirstProfileId(G4int firstId)
void SetH1Manager(G4VH1Manager *h1Manager)
virtual G4int ReadP2Impl(const G4String &p2Name, const G4String &fileName, const G4String &dirName, G4bool isUserFileName)=0
G4int GetNtuple(const G4String &ntupleName, const G4String &fileName="", const G4String &dirName="")
G4bool SetNtupleIColumn(const G4String &columnName, G4int &value)
G4int ReadP1(const G4String &h1Name, const G4String &fileName="", const G4String &dirName="")
void SetVerboseLevel(G4int verboseLevel)
G4bool SetFirstP2Id(G4int firstId)
void SetH3Manager(G4VH3Manager *h3Manager)
G4int ReadH1(const G4String &h1Name, const G4String &fileName="", const G4String &dirName="")