53 fVH1Manager.reset(h1Manager);
59 fVH2Manager.reset(h2Manager);
65 fVH3Manager.reset(h3Manager);
71 fVP1Manager.reset(p1Manager);
77 fVP2Manager.reset(p2Manager);
83 fVNtupleManager = std::move(ntupleManager);
119 if ( fileName !=
"" ) {
120 return ReadH1Impl(h1Name, fileName, dirName,
true);
123 Warn(
"Cannot get H1 " + h1Name +
". File name has to be set first.", fkClass,
"ReadH1");
134 if ( fileName !=
"" ) {
135 return ReadH2Impl(h2Name, fileName, dirName,
true);
138 Warn(
"Cannot get H2 " + h2Name +
". File name has to be set first.", fkClass,
"ReadH2");
149 if ( fileName !=
"" ) {
150 return ReadH3Impl(h3Name, fileName, dirName,
true);
153 Warn(
"Cannot get H3 " + h3Name +
". File name has to be set first.", fkClass,
"ReadH3");
164 if ( fileName !=
"" ) {
165 return ReadP1Impl(p1Name, fileName, dirName,
true);
168 Warn(
"Cannot get P1 " + p1Name +
". File name has to be set first.", fkClass,
"ReadP1");
179 if ( fileName !=
"" ) {
180 return ReadP2Impl(p2Name, fileName, dirName,
true);
183 Warn(
"Cannot get P2 " + p2Name +
". File name has to be set first.", fkClass,
"ReadP2");
204 return fVH1Manager->GetHnManager()->SetFirstId(firstId);
210 return fVH2Manager->GetHnManager()->SetFirstId(firstId);
216 return fVH3Manager->GetHnManager()->SetFirstId(firstId);
233 return fVP1Manager->GetHnManager()->SetFirstId(firstId);
239 return fVP2Manager->GetHnManager()->SetFirstId(firstId);
245 return fVNtupleManager->SetFirstId(firstId);
253 if ( fileName !=
"" ) {
254 return fVNtupleManager->ReadNtupleImpl(ntupleName, fileName, dirName,
true);
258 Warn(
"Cannot read Ntuple " + ntupleName +=
". File name has to be set first.", fkClass,
262 return fVNtupleManager->ReadNtupleImpl(ntupleName,
fVFileManager->GetFileName(), dirName,
false);
269 return fVNtupleManager->SetNtupleIColumn(columnName, value);
276 return fVNtupleManager->SetNtupleFColumn(columnName, value);
283 return fVNtupleManager->SetNtupleDColumn(columnName, value);
290 return fVNtupleManager->SetNtupleSColumn(columnName, value);
295 std::vector<int>& vector)
297 return fVNtupleManager->SetNtupleIColumn(columnName, vector);
302 std::vector<float>& vector)
304 return fVNtupleManager->SetNtupleFColumn(columnName, vector);
309 std::vector<double>& vector)
311 return fVNtupleManager->SetNtupleDColumn(columnName, vector);
316 std::vector<std::string>& vector)
318 return fVNtupleManager->SetNtupleSColumn(columnName, vector);
326 return fVNtupleManager->SetNtupleIColumn(ntupleId, columnName, value);
334 return fVNtupleManager->SetNtupleFColumn(ntupleId, columnName, value);
342 return fVNtupleManager->SetNtupleDColumn(ntupleId, columnName, value);
350 return fVNtupleManager->SetNtupleSColumn(ntupleId, columnName, value);
356 std::vector<int>& vector)
358 return fVNtupleManager->SetNtupleIColumn(ntupleId, columnName, vector);
364 std::vector<float>& vector)
366 return fVNtupleManager->SetNtupleFColumn(ntupleId, columnName, vector);
372 std::vector<double>& vector)
374 return fVNtupleManager->SetNtupleDColumn(ntupleId, columnName, vector);
380 std::vector<std::string>& vector)
382 return fVNtupleManager->SetNtupleSColumn(ntupleId, columnName, vector);
388 return fVNtupleManager->GetNtupleRow();
395 return fVNtupleManager->GetNtupleRow(ntupleId);
401 return fVH1Manager->GetNofHns(onlyIfExist);
407 return fVH2Manager->GetNofHns(onlyIfExist);
413 return fVH3Manager->GetNofHns(onlyIfExist);
419 return fVP1Manager->GetNofHns(onlyIfExist);
425 return fVP2Manager->GetNofHns(onlyIfExist);
431 return fVNtupleManager->GetNofNtuples();
441 fState.SetVerboseLevel(verboseLevel);
G4bool SetFirstH3Id(G4int firstId)
void SetH2Manager(G4VTBaseHnManager< kDim2 > *h2Manager)
G4int ReadP2(const G4String &h2Name, const G4String &fileName="", const G4String &dirName="")
G4VAnalysisReader(const G4String &type)
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 SetNtupleManager(std::shared_ptr< G4VRNtupleManager > ntupleManager)
G4bool SetNtupleSColumn(const G4String &columnName, G4String &value)
std::shared_ptr< G4VRFileManager > fVFileManager
G4bool SetNtupleDColumn(const G4String &columnName, G4double &value)
void SetH1Manager(G4VTBaseHnManager< kDim1 > *h1Manager)
G4bool SetFirstHistoId(G4int firstId)
G4String GetFileName() const
G4int GetNofH3s(G4bool onlyIfExist=false) const
G4int GetNofP1s(G4bool onlyIfExist=false) const
G4bool SetFirstH1Id(G4int firstId)
G4AnalysisManagerState fState
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 GetNofH1s(G4bool onlyIfExist=false) const
G4int GetNofNtuples() const
void SetH3Manager(G4VTBaseHnManager< kDim3 > *h3Manager)
G4int ReadH2(const G4String &h2Name, const G4String &fileName="", const G4String &dirName="")
G4int GetNofP2s(G4bool onlyIfExist=false) const
G4bool SetFirstH2Id(G4int firstId)
G4bool CloseFiles(G4bool reset=true)
virtual ~G4VAnalysisReader()
G4bool SetFirstProfileId(G4int firstId)
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)
virtual G4bool CloseFilesImpl(G4bool reset)=0
G4int ReadP1(const G4String &h1Name, const G4String &fileName="", const G4String &dirName="")
void SetP1Manager(G4VTBaseHnManager< kDim2 > *p1Manager)
G4int GetNofH2s(G4bool onlyIfExist=false) const
void SetP2Manager(G4VTBaseHnManager< kDim3 > *p2Manager)
void SetVerboseLevel(G4int verboseLevel)
G4bool SetFirstP2Id(G4int firstId)
void SetFileManager(std::shared_ptr< G4VRFileManager > fileManager)
G4int ReadH1(const G4String &h1Name, const G4String &fileName="", const G4String &dirName="")
constexpr G4int kInvalidId
void Warn(const G4String &message, const std::string_view inClass, const std::string_view inFunction)