43 using namespace G4Analysis;
47 : fState(type, isMaster),
53 fVNtupleManager(nullptr),
68 fVH1Manager.reset(h1Manager);
74 fVH2Manager.reset(h2Manager);
80 fVH3Manager.reset(h3Manager);
86 fVP1Manager.reset(p1Manager);
92 fVP2Manager.reset(p2Manager);
98 fVNtupleManager.reset(ntupleManager);
104 fFileManager.reset(fileManager);
114 fFileManager->SetFileName(fileName);
120 return fFileManager->GetFileName();
127 if ( fileName !=
"" ) {
131 if ( fFileManager->GetFileName() ==
"" ) {
134 <<
"Cannot get H1. File name has to be set first.";
139 return ReadH1Impl(h1Name, fFileManager->GetFileName(),
false);
147 if ( fileName !=
"" ) {
151 if ( fFileManager->GetFileName() ==
"" ) {
154 <<
"Cannot get H2. File name has to be set first.";
159 return ReadH2Impl(h2Name, fFileManager->GetFileName(),
false);
167 if ( fileName !=
"" ) {
171 if ( fFileManager->GetFileName() ==
"" ) {
174 <<
"Cannot get H3. File name has to be set first.";
179 return ReadH3Impl(h3Name, fFileManager->GetFileName(),
false);
187 if ( fileName !=
"" ) {
191 if ( fFileManager->GetFileName() ==
"" ) {
194 <<
"Cannot get P1. File name has to be set first.";
199 return ReadP1Impl(p1Name, fFileManager->GetFileName(),
false);
207 if ( fileName !=
"" ) {
211 if ( fFileManager->GetFileName() ==
"" ) {
214 <<
"Cannot get P2. File name has to be set first.";
219 return ReadP2Impl(p2Name, fFileManager->GetFileName(),
false);
226 G4bool finalResult =
true;
229 finalResult = finalResult &&
result;
232 finalResult = finalResult &&
result;
235 finalResult = finalResult &&
result;
243 return fVH1Manager->GetHnManager()->SetFirstId(firstId);
249 return fVH2Manager->GetHnManager()->SetFirstId(firstId);
255 return fVH3Manager->GetHnManager()->SetFirstId(firstId);
261 G4bool finalResult =
true;
264 finalResult = finalResult &&
result;
267 finalResult = finalResult &&
result;
275 return fVP1Manager->GetHnManager()->SetFirstId(firstId);
281 return fVP2Manager->GetHnManager()->SetFirstId(firstId);
287 return fVNtupleManager->SetFirstId(firstId);
294 if ( fileName !=
"" ) {
298 if ( fFileManager->GetFileName() ==
"" ) {
301 <<
"Cannot get Ntuple. File name has to be set first.";
306 return ReadNtupleImpl(ntupleName, fFileManager->GetFileName(),
false);
314 return fVNtupleManager->SetNtupleIColumn(columnName, value);
321 return fVNtupleManager->SetNtupleFColumn(columnName, value);
328 return fVNtupleManager->SetNtupleDColumn(columnName, value);
335 return fVNtupleManager->SetNtupleSColumn(columnName, value);
340 std::vector<int>& vector)
342 return fVNtupleManager->SetNtupleIColumn(columnName, vector);
347 std::vector<float>& vector)
349 return fVNtupleManager->SetNtupleFColumn(columnName, vector);
354 std::vector<double>& vector)
356 return fVNtupleManager->SetNtupleDColumn(columnName, vector);
364 return fVNtupleManager->SetNtupleIColumn(ntupleId, columnName, value);
372 return fVNtupleManager->SetNtupleFColumn(ntupleId, columnName, value);
380 return fVNtupleManager->SetNtupleDColumn(ntupleId, columnName, value);
388 return fVNtupleManager->SetNtupleSColumn(ntupleId, columnName, value);
394 std::vector<int>& vector)
396 return fVNtupleManager->SetNtupleIColumn(ntupleId, columnName, vector);
402 std::vector<float>& vector)
404 return fVNtupleManager->SetNtupleFColumn(ntupleId, columnName, vector);
410 std::vector<double>& vector)
412 return fVNtupleManager->SetNtupleDColumn(ntupleId, columnName, vector);
418 return fVNtupleManager->GetNtupleRow();
425 return fVNtupleManager->GetNtupleRow(ntupleId);
431 return fVH1Manager->GetHnManager()->GetNofHns();
437 return fVH2Manager->GetHnManager()->GetNofHns();
443 return fVH3Manager->GetHnManager()->GetNofHns();
449 return fVP1Manager->GetHnManager()->GetNofHns();
455 return fVP2Manager->GetHnManager()->GetNofHns();
461 return fVNtupleManager->GetNofNtuples();
471 fState.SetVerboseLevel(verboseLevel);
G4double G4ParticleHPJENDLHEData::G4double result
void SetP1Manager(G4VP1Manager *p1Manager)
void SetP2Manager(G4VP2Manager *p2Manager)
std::ostringstream G4ExceptionDescription
G4int ReadP1(const G4String &h1Name, const G4String &fileName="")
G4bool SetFirstProfileId(G4int firstId)
virtual ~G4VAnalysisReader()
virtual G4int ReadH3Impl(const G4String &h3Name, const G4String &fileName, G4bool isUserFileName)=0
G4bool SetNtupleDColumn(const G4String &columnName, G4double &value)
G4VAnalysisReader(const G4String &type, G4bool isMaster)
G4int ReadH2(const G4String &h2Name, const G4String &fileName="")
virtual G4int ReadH1Impl(const G4String &h1Name, const G4String &fileName, G4bool isUserFileName)=0
G4String GetFileName() const
virtual G4int ReadP2Impl(const G4String &p2Name, const G4String &fileName, G4bool isUserFileName)=0
G4AnalysisManagerState fState
virtual G4int ReadNtupleImpl(const G4String &ntupleName, const G4String &fileName, G4bool isUserFileName)=0
virtual G4int ReadP1Impl(const G4String &p1Name, const G4String &fileName, G4bool isUserFileName)=0
G4bool SetNtupleSColumn(const G4String &columnName, G4String &value)
void SetH3Manager(G4VH3Manager *h3Manager)
G4bool SetNtupleIColumn(const G4String &columnName, G4int &value)
G4bool SetNtupleFColumn(const G4String &columnName, G4float &value)
void SetFileName(const G4String &fileName)
const XML_Char int const XML_Char * value
G4int ReadH3(const G4String &h3Name, const G4String &fileName="")
virtual G4int ReadH2Impl(const G4String &h2Name, const G4String &fileName, G4bool isUserFileName)=0
G4int ReadP2(const G4String &h2Name, const G4String &fileName="")
void SetNtupleManager(G4VRNtupleManager *ntupleManager)
G4int ReadH1(const G4String &h1Name, const G4String &fileName="")
G4bool SetFirstHistoId(G4int firstId)
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *comments)
G4bool SetFirstNtupleId(G4int firstId)
void SetH1Manager(G4VH1Manager *h1Manager)
G4bool SetFirstH1Id(G4int firstId)
G4bool SetFirstH2Id(G4int firstId)
G4bool SetFirstP2Id(G4int firstId)
void SetVerboseLevel(G4int verboseLevel)
G4bool SetFirstH3Id(G4int firstId)
G4int GetNtuple(const G4String &ntupleName, const G4String &fileName="")
G4bool SetFirstP1Id(G4int firstId)
void SetH2Manager(G4VH2Manager *h2Manager)
void SetFileManager(G4BaseFileManager *fileManager)
G4int GetNofNtuples() const