Geant4 11.2.2
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
G4VAnalysisReader Class Referenceabstract

#include <G4VAnalysisReader.hh>

+ Inheritance diagram for G4VAnalysisReader:

Public Member Functions

virtual ~G4VAnalysisReader ()
 
G4bool CloseFiles (G4bool reset=true)
 
void SetFileName (const G4String &fileName)
 
G4String GetFileName () const
 
G4int ReadH1 (const G4String &h1Name, const G4String &fileName="", const G4String &dirName="")
 
G4int ReadH2 (const G4String &h2Name, const G4String &fileName="", const G4String &dirName="")
 
G4int ReadH3 (const G4String &h3Name, const G4String &fileName="", const G4String &dirName="")
 
G4int ReadP1 (const G4String &h1Name, const G4String &fileName="", const G4String &dirName="")
 
G4int ReadP2 (const G4String &h2Name, const G4String &fileName="", const G4String &dirName="")
 
G4bool SetFirstHistoId (G4int firstId)
 
G4bool SetFirstH1Id (G4int firstId)
 
G4bool SetFirstH2Id (G4int firstId)
 
G4bool SetFirstH3Id (G4int firstId)
 
G4bool SetFirstProfileId (G4int firstId)
 
G4bool SetFirstP1Id (G4int firstId)
 
G4bool SetFirstP2Id (G4int firstId)
 
G4bool SetFirstNtupleId (G4int firstId)
 
G4int GetNtuple (const G4String &ntupleName, const G4String &fileName="", const G4String &dirName="")
 
G4bool SetNtupleIColumn (const G4String &columnName, G4int &value)
 
G4bool SetNtupleFColumn (const G4String &columnName, G4float &value)
 
G4bool SetNtupleDColumn (const G4String &columnName, G4double &value)
 
G4bool SetNtupleSColumn (const G4String &columnName, G4String &value)
 
G4bool SetNtupleIColumn (const G4String &columnName, std::vector< int > &vector)
 
G4bool SetNtupleFColumn (const G4String &columnName, std::vector< float > &vector)
 
G4bool SetNtupleDColumn (const G4String &columnName, std::vector< double > &vector)
 
G4bool SetNtupleSColumn (const G4String &columnName, std::vector< std::string > &vector)
 
G4bool SetNtupleIColumn (G4int ntupleId, const G4String &columnName, G4int &value)
 
G4bool SetNtupleFColumn (G4int ntupleId, const G4String &columnName, G4float &value)
 
G4bool SetNtupleDColumn (G4int ntupleId, const G4String &columnName, G4double &value)
 
G4bool SetNtupleSColumn (G4int ntupleId, const G4String &columnName, G4String &value)
 
G4bool SetNtupleIColumn (G4int ntupleId, const G4String &columnName, std::vector< int > &vector)
 
G4bool SetNtupleFColumn (G4int ntupleId, const G4String &columnName, std::vector< float > &vector)
 
G4bool SetNtupleDColumn (G4int ntupleId, const G4String &columnName, std::vector< double > &vector)
 
G4bool SetNtupleSColumn (G4int ntupleId, const G4String &columnName, std::vector< std::string > &vector)
 
G4bool GetNtupleRow ()
 
G4bool GetNtupleRow (G4int ntupleId)
 
G4bool IsAscii () const
 
G4int GetNofH1s (G4bool onlyIfExist=false) const
 
G4int GetNofH2s (G4bool onlyIfExist=false) const
 
G4int GetNofH3s (G4bool onlyIfExist=false) const
 
G4int GetNofP1s (G4bool onlyIfExist=false) const
 
G4int GetNofP2s (G4bool onlyIfExist=false) const
 
G4int GetNofNtuples () const
 
G4int GetH1Id (const G4String &name, G4bool warn=true) const
 
G4int GetH2Id (const G4String &name, G4bool warn=true) const
 
G4int GetH3Id (const G4String &name, G4bool warn=true) const
 
G4int GetP1Id (const G4String &name, G4bool warn=true) const
 
G4int GetP2Id (const G4String &name, G4bool warn=true) const
 
G4int GetH1Nbins (G4int id) const
 
G4double GetH1Xmin (G4int id) const
 
G4double GetH1Xmax (G4int id) const
 
G4double GetH1Width (G4int id) const
 
G4int GetH2Nxbins (G4int id) const
 
G4double GetH2Xmin (G4int id) const
 
G4double GetH2Xmax (G4int id) const
 
G4double GetH2XWidth (G4int id) const
 
G4int GetH2Nybins (G4int id) const
 
G4double GetH2Ymin (G4int id) const
 
G4double GetH2Ymax (G4int id) const
 
G4double GetH2YWidth (G4int id) const
 
G4int GetH3Nxbins (G4int id) const
 
G4double GetH3Xmin (G4int id) const
 
G4double GetH3Xmax (G4int id) const
 
G4double GetH3XWidth (G4int id) const
 
G4int GetH3Nybins (G4int id) const
 
G4double GetH3Ymin (G4int id) const
 
G4double GetH3Ymax (G4int id) const
 
G4double GetH3YWidth (G4int id) const
 
G4int GetH3Nzbins (G4int id) const
 
G4double GetH3Zmin (G4int id) const
 
G4double GetH3Zmax (G4int id) const
 
G4double GetH3ZWidth (G4int id) const
 
G4int GetP1Nbins (G4int id) const
 
G4double GetP1Xmin (G4int id) const
 
G4double GetP1Xmax (G4int id) const
 
G4double GetP1XWidth (G4int id) const
 
G4double GetP1Ymin (G4int id) const
 
G4double GetP1Ymax (G4int id) const
 
G4int GetP2Nxbins (G4int id) const
 
G4double GetP2Xmin (G4int id) const
 
G4double GetP2Xmax (G4int id) const
 
G4double GetP2XWidth (G4int id) const
 
G4int GetP2Nybins (G4int id) const
 
G4double GetP2Ymin (G4int id) const
 
G4double GetP2Ymax (G4int id) const
 
G4double GetP2YWidth (G4int id) const
 
G4double GetP2Zmin (G4int id) const
 
G4double GetP2Zmax (G4int id) const
 
G4String GetH1Title (G4int id) const
 
G4String GetH1XAxisTitle (G4int id) const
 
G4String GetH1YAxisTitle (G4int id) const
 
G4String GetH2Title (G4int id) const
 
G4String GetH2XAxisTitle (G4int id) const
 
G4String GetH2YAxisTitle (G4int id) const
 
G4String GetH2ZAxisTitle (G4int id) const
 
G4String GetH3Title (G4int id) const
 
G4String GetH3XAxisTitle (G4int id) const
 
G4String GetH3YAxisTitle (G4int id) const
 
G4String GetH3ZAxisTitle (G4int id) const
 
G4String GetP1Title (G4int id) const
 
G4String GetP1XAxisTitle (G4int id) const
 
G4String GetP1YAxisTitle (G4int id) const
 
G4String GetP1ZAxisTitle (G4int id) const
 
G4String GetP2Title (G4int id) const
 
G4String GetP2XAxisTitle (G4int id) const
 
G4String GetP2YAxisTitle (G4int id) const
 
G4String GetP2ZAxisTitle (G4int id) const
 
void SetVerboseLevel (G4int verboseLevel)
 
G4int GetVerboseLevel () const
 
G4String GetType () const
 
G4String GetFileType () const
 

Protected Member Functions

 G4VAnalysisReader (const G4String &type)
 
virtual G4int ReadH1Impl (const G4String &h1Name, const G4String &fileName, const G4String &dirName, G4bool isUserFileName)=0
 
virtual G4int ReadH2Impl (const G4String &h2Name, const G4String &fileName, const G4String &dirName, G4bool isUserFileName)=0
 
virtual G4int ReadH3Impl (const G4String &h3Name, const G4String &fileName, const G4String &dirName, G4bool isUserFileName)=0
 
virtual G4int ReadP1Impl (const G4String &p1Name, const G4String &fileName, const G4String &dirName, G4bool isUserFileName)=0
 
virtual G4int ReadP2Impl (const G4String &p2Name, const G4String &fileName, const G4String &dirName, G4bool isUserFileName)=0
 
virtual G4bool CloseFilesImpl (G4bool reset)=0
 
void Message (G4int level, const G4String &action, const G4String &objectType, const G4String &objectName="", G4bool success=true) const
 
void SetH1Manager (G4VTBaseHnManager< kDim1 > *h1Manager)
 
void SetH2Manager (G4VTBaseHnManager< kDim2 > *h2Manager)
 
void SetH3Manager (G4VTBaseHnManager< kDim3 > *h3Manager)
 
void SetP1Manager (G4VTBaseHnManager< kDim2 > *p1Manager)
 
void SetP2Manager (G4VTBaseHnManager< kDim3 > *p2Manager)
 
void SetNtupleManager (std::shared_ptr< G4VRNtupleManager > ntupleManager)
 
void SetFileManager (std::shared_ptr< G4VRFileManager > fileManager)
 

Protected Attributes

G4AnalysisManagerState fState
 
std::shared_ptr< G4VRFileManagerfVFileManager { nullptr }
 

Detailed Description

Definition at line 58 of file G4VAnalysisReader.hh.

Constructor & Destructor Documentation

◆ ~G4VAnalysisReader()

G4VAnalysisReader::~G4VAnalysisReader ( )
virtualdefault

◆ G4VAnalysisReader()

G4VAnalysisReader::G4VAnalysisReader ( const G4String & type)
explicitprotected

Definition at line 39 of file G4VAnalysisReader.cc.

41{}
G4AnalysisManagerState fState
G4bool IsWorkerThread()

Member Function Documentation

◆ CloseFiles()

G4bool G4VAnalysisReader::CloseFiles ( G4bool reset = true)

Definition at line 97 of file G4VAnalysisReader.cc.

98{
99 return CloseFilesImpl(reset);
100}
virtual G4bool CloseFilesImpl(G4bool reset)=0

◆ CloseFilesImpl()

virtual G4bool G4VAnalysisReader::CloseFilesImpl ( G4bool reset)
protectedpure virtual

◆ GetFileName()

G4String G4VAnalysisReader::GetFileName ( ) const

Definition at line 109 of file G4VAnalysisReader.cc.

110{
111 return fVFileManager->GetFileName();
112}
std::shared_ptr< G4VRFileManager > fVFileManager

◆ GetFileType()

G4String G4VAnalysisReader::GetFileType ( ) const

◆ GetH1Id()

G4int G4VAnalysisReader::GetH1Id ( const G4String & name,
G4bool warn = true ) const

◆ GetH1Nbins()

G4int G4VAnalysisReader::GetH1Nbins ( G4int id) const

◆ GetH1Title()

G4String G4VAnalysisReader::GetH1Title ( G4int id) const

◆ GetH1Width()

G4double G4VAnalysisReader::GetH1Width ( G4int id) const

◆ GetH1XAxisTitle()

G4String G4VAnalysisReader::GetH1XAxisTitle ( G4int id) const

◆ GetH1Xmax()

G4double G4VAnalysisReader::GetH1Xmax ( G4int id) const

◆ GetH1Xmin()

G4double G4VAnalysisReader::GetH1Xmin ( G4int id) const

◆ GetH1YAxisTitle()

G4String G4VAnalysisReader::GetH1YAxisTitle ( G4int id) const

◆ GetH2Id()

G4int G4VAnalysisReader::GetH2Id ( const G4String & name,
G4bool warn = true ) const

◆ GetH2Nxbins()

G4int G4VAnalysisReader::GetH2Nxbins ( G4int id) const

◆ GetH2Nybins()

G4int G4VAnalysisReader::GetH2Nybins ( G4int id) const

◆ GetH2Title()

G4String G4VAnalysisReader::GetH2Title ( G4int id) const

◆ GetH2XAxisTitle()

G4String G4VAnalysisReader::GetH2XAxisTitle ( G4int id) const

◆ GetH2Xmax()

G4double G4VAnalysisReader::GetH2Xmax ( G4int id) const

◆ GetH2Xmin()

G4double G4VAnalysisReader::GetH2Xmin ( G4int id) const

◆ GetH2XWidth()

G4double G4VAnalysisReader::GetH2XWidth ( G4int id) const

◆ GetH2YAxisTitle()

G4String G4VAnalysisReader::GetH2YAxisTitle ( G4int id) const

◆ GetH2Ymax()

G4double G4VAnalysisReader::GetH2Ymax ( G4int id) const

◆ GetH2Ymin()

G4double G4VAnalysisReader::GetH2Ymin ( G4int id) const

◆ GetH2YWidth()

G4double G4VAnalysisReader::GetH2YWidth ( G4int id) const

◆ GetH2ZAxisTitle()

G4String G4VAnalysisReader::GetH2ZAxisTitle ( G4int id) const

◆ GetH3Id()

G4int G4VAnalysisReader::GetH3Id ( const G4String & name,
G4bool warn = true ) const

◆ GetH3Nxbins()

G4int G4VAnalysisReader::GetH3Nxbins ( G4int id) const

◆ GetH3Nybins()

G4int G4VAnalysisReader::GetH3Nybins ( G4int id) const

◆ GetH3Nzbins()

G4int G4VAnalysisReader::GetH3Nzbins ( G4int id) const

◆ GetH3Title()

G4String G4VAnalysisReader::GetH3Title ( G4int id) const

◆ GetH3XAxisTitle()

G4String G4VAnalysisReader::GetH3XAxisTitle ( G4int id) const

◆ GetH3Xmax()

G4double G4VAnalysisReader::GetH3Xmax ( G4int id) const

◆ GetH3Xmin()

G4double G4VAnalysisReader::GetH3Xmin ( G4int id) const

◆ GetH3XWidth()

G4double G4VAnalysisReader::GetH3XWidth ( G4int id) const

◆ GetH3YAxisTitle()

G4String G4VAnalysisReader::GetH3YAxisTitle ( G4int id) const

◆ GetH3Ymax()

G4double G4VAnalysisReader::GetH3Ymax ( G4int id) const

◆ GetH3Ymin()

G4double G4VAnalysisReader::GetH3Ymin ( G4int id) const

◆ GetH3YWidth()

G4double G4VAnalysisReader::GetH3YWidth ( G4int id) const

◆ GetH3ZAxisTitle()

G4String G4VAnalysisReader::GetH3ZAxisTitle ( G4int id) const

◆ GetH3Zmax()

G4double G4VAnalysisReader::GetH3Zmax ( G4int id) const

◆ GetH3Zmin()

G4double G4VAnalysisReader::GetH3Zmin ( G4int id) const

◆ GetH3ZWidth()

G4double G4VAnalysisReader::GetH3ZWidth ( G4int id) const

◆ GetNofH1s()

G4int G4VAnalysisReader::GetNofH1s ( G4bool onlyIfExist = false) const

Definition at line 399 of file G4VAnalysisReader.cc.

400{
401 return fVH1Manager->GetNofHns(onlyIfExist);
402}

◆ GetNofH2s()

G4int G4VAnalysisReader::GetNofH2s ( G4bool onlyIfExist = false) const

Definition at line 405 of file G4VAnalysisReader.cc.

406{
407 return fVH2Manager->GetNofHns(onlyIfExist);
408}

◆ GetNofH3s()

G4int G4VAnalysisReader::GetNofH3s ( G4bool onlyIfExist = false) const

Definition at line 411 of file G4VAnalysisReader.cc.

412{
413 return fVH3Manager->GetNofHns(onlyIfExist);
414}

◆ GetNofNtuples()

G4int G4VAnalysisReader::GetNofNtuples ( ) const

Definition at line 429 of file G4VAnalysisReader.cc.

430{
431 return fVNtupleManager->GetNofNtuples();
432}

◆ GetNofP1s()

G4int G4VAnalysisReader::GetNofP1s ( G4bool onlyIfExist = false) const

Definition at line 417 of file G4VAnalysisReader.cc.

418{
419 return fVP1Manager->GetNofHns(onlyIfExist);
420}

◆ GetNofP2s()

G4int G4VAnalysisReader::GetNofP2s ( G4bool onlyIfExist = false) const

Definition at line 423 of file G4VAnalysisReader.cc.

424{
425 return fVP2Manager->GetNofHns(onlyIfExist);
426}

◆ GetNtuple()

G4int G4VAnalysisReader::GetNtuple ( const G4String & ntupleName,
const G4String & fileName = "",
const G4String & dirName = "" )

Definition at line 249 of file G4VAnalysisReader.cc.

252{
253 if ( fileName != "" ) {
254 return fVNtupleManager->ReadNtupleImpl(ntupleName, fileName, dirName, true);
255 }
256 // Check if fileName was set
257 if (fVFileManager->GetFileName() == "") {
258 Warn("Cannot read Ntuple " + ntupleName += ". File name has to be set first.", fkClass,
259 "ReadNtuple");
260 return kInvalidId;
261 }
262 return fVNtupleManager->ReadNtupleImpl(ntupleName, fVFileManager->GetFileName(), dirName, false);
263}
constexpr G4int kInvalidId
void Warn(const G4String &message, const std::string_view inClass, const std::string_view inFunction)

◆ GetNtupleRow() [1/2]

G4bool G4VAnalysisReader::GetNtupleRow ( )

Definition at line 386 of file G4VAnalysisReader.cc.

387{
388 return fVNtupleManager->GetNtupleRow();
389}

◆ GetNtupleRow() [2/2]

G4bool G4VAnalysisReader::GetNtupleRow ( G4int ntupleId)

Definition at line 393 of file G4VAnalysisReader.cc.

394{
395 return fVNtupleManager->GetNtupleRow(ntupleId);
396}

◆ GetP1Id()

G4int G4VAnalysisReader::GetP1Id ( const G4String & name,
G4bool warn = true ) const

◆ GetP1Nbins()

G4int G4VAnalysisReader::GetP1Nbins ( G4int id) const

◆ GetP1Title()

G4String G4VAnalysisReader::GetP1Title ( G4int id) const

◆ GetP1XAxisTitle()

G4String G4VAnalysisReader::GetP1XAxisTitle ( G4int id) const

◆ GetP1Xmax()

G4double G4VAnalysisReader::GetP1Xmax ( G4int id) const

◆ GetP1Xmin()

G4double G4VAnalysisReader::GetP1Xmin ( G4int id) const

◆ GetP1XWidth()

G4double G4VAnalysisReader::GetP1XWidth ( G4int id) const

◆ GetP1YAxisTitle()

G4String G4VAnalysisReader::GetP1YAxisTitle ( G4int id) const

◆ GetP1Ymax()

G4double G4VAnalysisReader::GetP1Ymax ( G4int id) const

◆ GetP1Ymin()

G4double G4VAnalysisReader::GetP1Ymin ( G4int id) const

◆ GetP1ZAxisTitle()

G4String G4VAnalysisReader::GetP1ZAxisTitle ( G4int id) const

◆ GetP2Id()

G4int G4VAnalysisReader::GetP2Id ( const G4String & name,
G4bool warn = true ) const

◆ GetP2Nxbins()

G4int G4VAnalysisReader::GetP2Nxbins ( G4int id) const

◆ GetP2Nybins()

G4int G4VAnalysisReader::GetP2Nybins ( G4int id) const

◆ GetP2Title()

G4String G4VAnalysisReader::GetP2Title ( G4int id) const

◆ GetP2XAxisTitle()

G4String G4VAnalysisReader::GetP2XAxisTitle ( G4int id) const

◆ GetP2Xmax()

G4double G4VAnalysisReader::GetP2Xmax ( G4int id) const

◆ GetP2Xmin()

G4double G4VAnalysisReader::GetP2Xmin ( G4int id) const

◆ GetP2XWidth()

G4double G4VAnalysisReader::GetP2XWidth ( G4int id) const

◆ GetP2YAxisTitle()

G4String G4VAnalysisReader::GetP2YAxisTitle ( G4int id) const

◆ GetP2Ymax()

G4double G4VAnalysisReader::GetP2Ymax ( G4int id) const

◆ GetP2Ymin()

G4double G4VAnalysisReader::GetP2Ymin ( G4int id) const

◆ GetP2YWidth()

G4double G4VAnalysisReader::GetP2YWidth ( G4int id) const

◆ GetP2ZAxisTitle()

G4String G4VAnalysisReader::GetP2ZAxisTitle ( G4int id) const

◆ GetP2Zmax()

G4double G4VAnalysisReader::GetP2Zmax ( G4int id) const

◆ GetP2Zmin()

G4double G4VAnalysisReader::GetP2Zmin ( G4int id) const

◆ GetType()

G4String G4VAnalysisReader::GetType ( ) const

◆ GetVerboseLevel()

G4int G4VAnalysisReader::GetVerboseLevel ( ) const

◆ IsAscii()

G4bool G4VAnalysisReader::IsAscii ( ) const

◆ Message()

void G4VAnalysisReader::Message ( G4int level,
const G4String & action,
const G4String & objectType,
const G4String & objectName = "",
G4bool success = true ) const
protected

◆ ReadH1()

G4int G4VAnalysisReader::ReadH1 ( const G4String & h1Name,
const G4String & fileName = "",
const G4String & dirName = "" )

Definition at line 115 of file G4VAnalysisReader.cc.

118{
119 if ( fileName != "" ) {
120 return ReadH1Impl(h1Name, fileName, dirName, true);
121 }
122 if (fVFileManager->GetFileName() == "") {
123 Warn("Cannot get H1 " + h1Name + ". File name has to be set first.", fkClass, "ReadH1");
124 return kInvalidId;
125 }
126 return ReadH1Impl(h1Name, fVFileManager->GetFileName(), dirName, false);
127}
virtual G4int ReadH1Impl(const G4String &h1Name, const G4String &fileName, const G4String &dirName, G4bool isUserFileName)=0

◆ ReadH1Impl()

virtual G4int G4VAnalysisReader::ReadH1Impl ( const G4String & h1Name,
const G4String & fileName,
const G4String & dirName,
G4bool isUserFileName )
protectedpure virtual

Implemented in G4ToolsAnalysisReader.

Referenced by ReadH1().

◆ ReadH2()

G4int G4VAnalysisReader::ReadH2 ( const G4String & h2Name,
const G4String & fileName = "",
const G4String & dirName = "" )

Definition at line 130 of file G4VAnalysisReader.cc.

133{
134 if ( fileName != "" ) {
135 return ReadH2Impl(h2Name, fileName, dirName, true);
136 }
137 if (fVFileManager->GetFileName() == "") {
138 Warn("Cannot get H2 " + h2Name + ". File name has to be set first.", fkClass, "ReadH2");
139 return kInvalidId;
140 }
141 return ReadH2Impl(h2Name, fVFileManager->GetFileName(), dirName, false);
142}
virtual G4int ReadH2Impl(const G4String &h2Name, const G4String &fileName, const G4String &dirName, G4bool isUserFileName)=0

◆ ReadH2Impl()

virtual G4int G4VAnalysisReader::ReadH2Impl ( const G4String & h2Name,
const G4String & fileName,
const G4String & dirName,
G4bool isUserFileName )
protectedpure virtual

Implemented in G4ToolsAnalysisReader.

Referenced by ReadH2().

◆ ReadH3()

G4int G4VAnalysisReader::ReadH3 ( const G4String & h3Name,
const G4String & fileName = "",
const G4String & dirName = "" )

Definition at line 145 of file G4VAnalysisReader.cc.

148{
149 if ( fileName != "" ) {
150 return ReadH3Impl(h3Name, fileName, dirName, true);
151 }
152 if (fVFileManager->GetFileName() == "") {
153 Warn("Cannot get H3 " + h3Name + ". File name has to be set first.", fkClass, "ReadH3");
154 return kInvalidId;
155 }
156 return ReadH3Impl(h3Name, fVFileManager->GetFileName(), dirName, false);
157}
virtual G4int ReadH3Impl(const G4String &h3Name, const G4String &fileName, const G4String &dirName, G4bool isUserFileName)=0

◆ ReadH3Impl()

virtual G4int G4VAnalysisReader::ReadH3Impl ( const G4String & h3Name,
const G4String & fileName,
const G4String & dirName,
G4bool isUserFileName )
protectedpure virtual

Implemented in G4ToolsAnalysisReader.

Referenced by ReadH3().

◆ ReadP1()

G4int G4VAnalysisReader::ReadP1 ( const G4String & h1Name,
const G4String & fileName = "",
const G4String & dirName = "" )

Definition at line 160 of file G4VAnalysisReader.cc.

163{
164 if ( fileName != "" ) {
165 return ReadP1Impl(p1Name, fileName, dirName, true);
166 }
167 if (fVFileManager->GetFileName() == "") {
168 Warn("Cannot get P1 " + p1Name + ". File name has to be set first.", fkClass, "ReadP1");
169 return kInvalidId;
170 }
171 return ReadP1Impl(p1Name, fVFileManager->GetFileName(), dirName, false);
172}
virtual G4int ReadP1Impl(const G4String &p1Name, const G4String &fileName, const G4String &dirName, G4bool isUserFileName)=0

◆ ReadP1Impl()

virtual G4int G4VAnalysisReader::ReadP1Impl ( const G4String & p1Name,
const G4String & fileName,
const G4String & dirName,
G4bool isUserFileName )
protectedpure virtual

Implemented in G4ToolsAnalysisReader.

Referenced by ReadP1().

◆ ReadP2()

G4int G4VAnalysisReader::ReadP2 ( const G4String & h2Name,
const G4String & fileName = "",
const G4String & dirName = "" )

Definition at line 175 of file G4VAnalysisReader.cc.

178{
179 if ( fileName != "" ) {
180 return ReadP2Impl(p2Name, fileName, dirName, true);
181 }
182 if (fVFileManager->GetFileName() == "") {
183 Warn("Cannot get P2 " + p2Name + ". File name has to be set first.", fkClass, "ReadP2");
184 return kInvalidId;
185 }
186 return ReadP2Impl(p2Name, fVFileManager->GetFileName(), dirName, false);
187}
virtual G4int ReadP2Impl(const G4String &p2Name, const G4String &fileName, const G4String &dirName, G4bool isUserFileName)=0

◆ ReadP2Impl()

virtual G4int G4VAnalysisReader::ReadP2Impl ( const G4String & p2Name,
const G4String & fileName,
const G4String & dirName,
G4bool isUserFileName )
protectedpure virtual

Implemented in G4ToolsAnalysisReader.

Referenced by ReadP2().

◆ SetFileManager()

void G4VAnalysisReader::SetFileManager ( std::shared_ptr< G4VRFileManager > fileManager)
protected

Definition at line 87 of file G4VAnalysisReader.cc.

88{
89 fVFileManager = std::move(fileManager);
90}

Referenced by G4RootAnalysisReader::G4RootAnalysisReader(), and G4XmlAnalysisReader::G4XmlAnalysisReader().

◆ SetFileName()

void G4VAnalysisReader::SetFileName ( const G4String & fileName)

Definition at line 103 of file G4VAnalysisReader.cc.

104{
105 fVFileManager->SetFileName(fileName);
106}

◆ SetFirstH1Id()

G4bool G4VAnalysisReader::SetFirstH1Id ( G4int firstId)

Definition at line 202 of file G4VAnalysisReader.cc.

203{
204 return fVH1Manager->GetHnManager()->SetFirstId(firstId);
205}

Referenced by SetFirstHistoId().

◆ SetFirstH2Id()

G4bool G4VAnalysisReader::SetFirstH2Id ( G4int firstId)

Definition at line 208 of file G4VAnalysisReader.cc.

209{
210 return fVH2Manager->GetHnManager()->SetFirstId(firstId);
211}

Referenced by SetFirstHistoId().

◆ SetFirstH3Id()

G4bool G4VAnalysisReader::SetFirstH3Id ( G4int firstId)

Definition at line 214 of file G4VAnalysisReader.cc.

215{
216 return fVH3Manager->GetHnManager()->SetFirstId(firstId);
217}

Referenced by SetFirstHistoId().

◆ SetFirstHistoId()

G4bool G4VAnalysisReader::SetFirstHistoId ( G4int firstId)

Definition at line 190 of file G4VAnalysisReader.cc.

191{
192 auto result = true;
193
194 result &= SetFirstH1Id(firstId);
195 result &= SetFirstH2Id(firstId);
196 result &= SetFirstH3Id(firstId);
197
198 return result;
199}
G4bool SetFirstH3Id(G4int firstId)
G4bool SetFirstH1Id(G4int firstId)
G4bool SetFirstH2Id(G4int firstId)

◆ SetFirstNtupleId()

G4bool G4VAnalysisReader::SetFirstNtupleId ( G4int firstId)

Definition at line 243 of file G4VAnalysisReader.cc.

244{
245 return fVNtupleManager->SetFirstId(firstId);
246}

◆ SetFirstP1Id()

G4bool G4VAnalysisReader::SetFirstP1Id ( G4int firstId)

Definition at line 231 of file G4VAnalysisReader.cc.

232{
233 return fVP1Manager->GetHnManager()->SetFirstId(firstId);
234}

Referenced by SetFirstProfileId().

◆ SetFirstP2Id()

G4bool G4VAnalysisReader::SetFirstP2Id ( G4int firstId)

Definition at line 237 of file G4VAnalysisReader.cc.

238{
239 return fVP2Manager->GetHnManager()->SetFirstId(firstId);
240}

Referenced by SetFirstProfileId().

◆ SetFirstProfileId()

G4bool G4VAnalysisReader::SetFirstProfileId ( G4int firstId)

Definition at line 220 of file G4VAnalysisReader.cc.

221{
222 auto result = true;
223
224 result &= SetFirstP1Id(firstId);
225 result &= SetFirstP2Id(firstId);
226
227 return result;
228}
G4bool SetFirstP1Id(G4int firstId)
G4bool SetFirstP2Id(G4int firstId)

◆ SetH1Manager()

void G4VAnalysisReader::SetH1Manager ( G4VTBaseHnManager< kDim1 > * h1Manager)
protected

Definition at line 51 of file G4VAnalysisReader.cc.

52{
53 fVH1Manager.reset(h1Manager);
54}

Referenced by G4ToolsAnalysisReader::G4ToolsAnalysisReader().

◆ SetH2Manager()

void G4VAnalysisReader::SetH2Manager ( G4VTBaseHnManager< kDim2 > * h2Manager)
protected

Definition at line 57 of file G4VAnalysisReader.cc.

58{
59 fVH2Manager.reset(h2Manager);
60}

Referenced by G4ToolsAnalysisReader::G4ToolsAnalysisReader().

◆ SetH3Manager()

void G4VAnalysisReader::SetH3Manager ( G4VTBaseHnManager< kDim3 > * h3Manager)
protected

Definition at line 63 of file G4VAnalysisReader.cc.

64{
65 fVH3Manager.reset(h3Manager);
66}

Referenced by G4ToolsAnalysisReader::G4ToolsAnalysisReader().

◆ SetNtupleDColumn() [1/4]

G4bool G4VAnalysisReader::SetNtupleDColumn ( const G4String & columnName,
G4double & value )

Definition at line 280 of file G4VAnalysisReader.cc.

282{
283 return fVNtupleManager->SetNtupleDColumn(columnName, value);
284}

◆ SetNtupleDColumn() [2/4]

G4bool G4VAnalysisReader::SetNtupleDColumn ( const G4String & columnName,
std::vector< double > & vector )

Definition at line 308 of file G4VAnalysisReader.cc.

310{
311 return fVNtupleManager->SetNtupleDColumn(columnName, vector);
312}

◆ SetNtupleDColumn() [3/4]

G4bool G4VAnalysisReader::SetNtupleDColumn ( G4int ntupleId,
const G4String & columnName,
G4double & value )

Definition at line 338 of file G4VAnalysisReader.cc.

341{
342 return fVNtupleManager->SetNtupleDColumn(ntupleId, columnName, value);
343}

◆ SetNtupleDColumn() [4/4]

G4bool G4VAnalysisReader::SetNtupleDColumn ( G4int ntupleId,
const G4String & columnName,
std::vector< double > & vector )

Definition at line 370 of file G4VAnalysisReader.cc.

373{
374 return fVNtupleManager->SetNtupleDColumn(ntupleId, columnName, vector);
375}

◆ SetNtupleFColumn() [1/4]

G4bool G4VAnalysisReader::SetNtupleFColumn ( const G4String & columnName,
G4float & value )

Definition at line 273 of file G4VAnalysisReader.cc.

275{
276 return fVNtupleManager->SetNtupleFColumn(columnName, value);
277}

◆ SetNtupleFColumn() [2/4]

G4bool G4VAnalysisReader::SetNtupleFColumn ( const G4String & columnName,
std::vector< float > & vector )

Definition at line 301 of file G4VAnalysisReader.cc.

303{
304 return fVNtupleManager->SetNtupleFColumn(columnName, vector);
305}

◆ SetNtupleFColumn() [3/4]

G4bool G4VAnalysisReader::SetNtupleFColumn ( G4int ntupleId,
const G4String & columnName,
G4float & value )

Definition at line 330 of file G4VAnalysisReader.cc.

333{
334 return fVNtupleManager->SetNtupleFColumn(ntupleId, columnName, value);
335}

◆ SetNtupleFColumn() [4/4]

G4bool G4VAnalysisReader::SetNtupleFColumn ( G4int ntupleId,
const G4String & columnName,
std::vector< float > & vector )

Definition at line 362 of file G4VAnalysisReader.cc.

365{
366 return fVNtupleManager->SetNtupleFColumn(ntupleId, columnName, vector);
367}

◆ SetNtupleIColumn() [1/4]

G4bool G4VAnalysisReader::SetNtupleIColumn ( const G4String & columnName,
G4int & value )

Definition at line 266 of file G4VAnalysisReader.cc.

268{
269 return fVNtupleManager->SetNtupleIColumn(columnName, value);
270}

◆ SetNtupleIColumn() [2/4]

G4bool G4VAnalysisReader::SetNtupleIColumn ( const G4String & columnName,
std::vector< int > & vector )

Definition at line 294 of file G4VAnalysisReader.cc.

296{
297 return fVNtupleManager->SetNtupleIColumn(columnName, vector);
298}

◆ SetNtupleIColumn() [3/4]

G4bool G4VAnalysisReader::SetNtupleIColumn ( G4int ntupleId,
const G4String & columnName,
G4int & value )

Definition at line 322 of file G4VAnalysisReader.cc.

325{
326 return fVNtupleManager->SetNtupleIColumn(ntupleId, columnName, value);
327}

◆ SetNtupleIColumn() [4/4]

G4bool G4VAnalysisReader::SetNtupleIColumn ( G4int ntupleId,
const G4String & columnName,
std::vector< int > & vector )

Definition at line 354 of file G4VAnalysisReader.cc.

357{
358 return fVNtupleManager->SetNtupleIColumn(ntupleId, columnName, vector);
359}

◆ SetNtupleManager()

void G4VAnalysisReader::SetNtupleManager ( std::shared_ptr< G4VRNtupleManager > ntupleManager)
protected

Definition at line 81 of file G4VAnalysisReader.cc.

82{
83 fVNtupleManager = std::move(ntupleManager);
84}

Referenced by G4RootAnalysisReader::G4RootAnalysisReader(), and G4XmlAnalysisReader::G4XmlAnalysisReader().

◆ SetNtupleSColumn() [1/4]

G4bool G4VAnalysisReader::SetNtupleSColumn ( const G4String & columnName,
G4String & value )

Definition at line 287 of file G4VAnalysisReader.cc.

289{
290 return fVNtupleManager->SetNtupleSColumn(columnName, value);
291}

◆ SetNtupleSColumn() [2/4]

G4bool G4VAnalysisReader::SetNtupleSColumn ( const G4String & columnName,
std::vector< std::string > & vector )

Definition at line 315 of file G4VAnalysisReader.cc.

317{
318 return fVNtupleManager->SetNtupleSColumn(columnName, vector);
319}

◆ SetNtupleSColumn() [3/4]

G4bool G4VAnalysisReader::SetNtupleSColumn ( G4int ntupleId,
const G4String & columnName,
G4String & value )

Definition at line 346 of file G4VAnalysisReader.cc.

349{
350 return fVNtupleManager->SetNtupleSColumn(ntupleId, columnName, value);
351}

◆ SetNtupleSColumn() [4/4]

G4bool G4VAnalysisReader::SetNtupleSColumn ( G4int ntupleId,
const G4String & columnName,
std::vector< std::string > & vector )

Definition at line 378 of file G4VAnalysisReader.cc.

381{
382 return fVNtupleManager->SetNtupleSColumn(ntupleId, columnName, vector);
383}

◆ SetP1Manager()

void G4VAnalysisReader::SetP1Manager ( G4VTBaseHnManager< kDim2 > * p1Manager)
protected

Definition at line 69 of file G4VAnalysisReader.cc.

70{
71 fVP1Manager.reset(p1Manager);
72}

Referenced by G4ToolsAnalysisReader::G4ToolsAnalysisReader().

◆ SetP2Manager()

void G4VAnalysisReader::SetP2Manager ( G4VTBaseHnManager< kDim3 > * p2Manager)
protected

Definition at line 75 of file G4VAnalysisReader.cc.

76{
77 fVP2Manager.reset(p2Manager);
78}

Referenced by G4ToolsAnalysisReader::G4ToolsAnalysisReader().

◆ SetVerboseLevel()

void G4VAnalysisReader::SetVerboseLevel ( G4int verboseLevel)

Definition at line 439 of file G4VAnalysisReader.cc.

440{
441 fState.SetVerboseLevel(verboseLevel);
442}

Member Data Documentation

◆ fState

◆ fVFileManager

std::shared_ptr<G4VRFileManager> G4VAnalysisReader::fVFileManager { nullptr }
protected

Definition at line 267 of file G4VAnalysisReader.hh.

267{ nullptr };

Referenced by GetFileName(), GetNtuple(), ReadH1(), ReadH2(), ReadH3(), ReadP1(), ReadP2(), SetFileManager(), and SetFileName().


The documentation for this class was generated from the following files: