47 : fState(type, isMaster),
53 fVNtupleManager(nullptr),
127 if ( fileName !=
"" ) {
134 <<
"Cannot get H1. File name has to be set first.";
147 if ( fileName !=
"" ) {
154 <<
"Cannot get H2. File name has to be set first.";
167 if ( fileName !=
"" ) {
174 <<
"Cannot get H3. File name has to be set first.";
187 if ( fileName !=
"" ) {
194 <<
"Cannot get P1. File name has to be set first.";
207 if ( fileName !=
"" ) {
214 <<
"Cannot get P2. File name has to be set first.";
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);
294 if ( fileName !=
"" ) {
301 <<
"Cannot get Ntuple. File name has to be set first.";
340 std::vector<int>& vector)
347 std::vector<float>& vector)
354 std::vector<double>& vector)
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);
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
std::unique_ptr< G4VH1Manager > fVH1Manager
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)
std::unique_ptr< G4VP1Manager > fVP1Manager
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)
std::unique_ptr< G4VP2Manager > fVP2Manager
std::unique_ptr< G4VRNtupleManager > fVNtupleManager
G4bool SetFirstH1Id(G4int firstId)
G4bool SetFirstH2Id(G4int firstId)
G4bool SetFirstP2Id(G4int firstId)
std::unique_ptr< G4VH3Manager > fVH3Manager
void SetVerboseLevel(G4int verboseLevel)
G4bool SetFirstH3Id(G4int firstId)
G4int GetNtuple(const G4String &ntupleName, const G4String &fileName="")
std::unique_ptr< G4BaseFileManager > fFileManager
G4bool SetFirstP1Id(G4int firstId)
std::unique_ptr< G4VH2Manager > fVH2Manager
void SetH2Manager(G4VH2Manager *h2Manager)
void SetVerboseLevel(G4int verboseLevel)
void SetFileManager(G4BaseFileManager *fileManager)
G4int GetNofNtuples() const