30 #ifndef _PRUNDATAHANDLER_H_ 31 #define _PRUNDATAHANDLER_H_ 56 virtual Bool_t
WriteData(TString fileName=
"");
76 virtual void Init(
const Int_t tag=0);
80 virtual void TestFileName(TString &runName,
const TString &ext);
104 virtual Double_t
ToDouble(TString &str, Bool_t &ok);
105 virtual Int_t
ToInt(TString &str, Bool_t &ok);
109 virtual TString
GetFileName(
const TString extension, Bool_t &ok);
110 virtual TString
FileNameFromTemplate(TString &fileNameTemplate, Int_t run, TString &year, Bool_t &ok);
111 virtual bool DateToISO8601(std::string inDate, std::string &iso8601Date);
112 virtual void SplitTimeDate(TString timeDate, TString &time, TString &date, Bool_t &ok);
113 virtual TString
GetMonth(Int_t month);
114 virtual TString
GetYear(Int_t month);
117 #endif // _PRUNDATAHANDLER_H_ virtual Bool_t StripWhitespace(TString &str)
std::vector< PRawRunData > PRawRunDataList
virtual ~PRunDataHandler()
virtual Double_t ToDouble(TString &str, Bool_t &ok)
virtual Bool_t ReadWkmFile()
PRawRunDataList fData
keeping all the raw data
virtual void Init(const Int_t tag=0)
virtual Bool_t ReadRootFile()
virtual void TestFileName(TString &runName, const TString &ext)
virtual TString GetYear(Int_t month)
virtual Bool_t WriteMudFile(TString fln="")
virtual TString GenerateOutputFileName(const TString fileName, const TString extension, Bool_t &ok)
virtual TString GetFileName(const TString extension, Bool_t &ok)
virtual Bool_t WriteMusrRootFile(TString fln="")
TString fRunPathName
current path file name
virtual Bool_t ReadFilesMsr()
virtual void SplitTimeDate(TString timeDate, TString &time, TString &date, Bool_t &ok)
TString fRunName
current run name
virtual PRawRunData * GetRunData(const TString &runName)
virtual Bool_t WritePsiBinFile(TString fln="")
virtual Bool_t FileExistsCheck(PMsrRunBlock &runInfo, const UInt_t idx)
virtual TString GetMonth(Int_t month)
virtual Bool_t WriteNexusFile(TString fln="")
Bool_t fAllDataAvailable
flag indicating if all data sets could be read
PAny2ManyInfo * fAny2ManyInfo
pointer to the any2many data structure
virtual Bool_t ReadDatFile()
PStringVector fDataPath
vector containing all the search paths where to look for data files
virtual Bool_t SetRunData(PRawRunData *data, UInt_t idx=0)
virtual bool DateToISO8601(std::string inDate, std::string &iso8601Date)
virtual Bool_t WriteAsciiFile(TString fln="")
virtual Bool_t IsWhitespace(const Char_t *str)
virtual Bool_t ReadMduAsciiFile()
virtual Bool_t WriteData(TString fileName="")
virtual Int_t ToInt(TString &str, Bool_t &ok)
virtual Bool_t ReadAsciiFile()
TString fFileFormat
keeps the file format if explicitly given
virtual Int_t GetNoOfRunData()
virtual Bool_t ReadNexusFile()
virtual Bool_t WriteRootFile(TString fln="")
virtual Bool_t ReadMudFile()
virtual Bool_t ReadPsiBinFile()
virtual Bool_t ReadDBFile()
virtual Bool_t WriteWkmFile(TString fln="")
virtual TString FileNameFromTemplate(TString &fileNameTemplate, Int_t run, TString &year, Bool_t &ok)
virtual Int_t GetDataTagIndex(TString &str, const PStringVector *fLabels)
std::vector< TString > PStringVector
virtual Bool_t ReadWriteFilesList()
PMsrHandler * fMsrInfo
pointer to the msr-file handler
virtual Bool_t IsAllDataAvailable() const
virtual void ConvertData()
virtual Bool_t FileAlreadyRead(TString runName)