add title to PRawRunDataSet.

This commit is contained in:
suter_a 2025-03-19 09:44:13 +01:00
parent c0b1071a27
commit bf75b5ef14
2 changed files with 4 additions and 0 deletions

View File

@ -260,6 +260,7 @@ PRawRunDataSet::PRawRunDataSet()
*/
void PRawRunDataSet::Clear()
{
fTitle = TString("n/a");
fName = TString("n/a");
fHistoNo = -1;
fTimeZeroBin = 0.0;

View File

@ -328,6 +328,7 @@ class PRawRunDataSet {
PRawRunDataSet();
virtual ~PRawRunDataSet() { fData.clear(); }
virtual TString GetTitle() { return fTitle; }
virtual TString GetName() { return fName; }
virtual Int_t GetHistoNo() { return fHistoNo; }
virtual Double_t GetTimeZeroBin() { return fTimeZeroBin; }
@ -339,6 +340,7 @@ class PRawRunDataSet {
virtual PDoubleVector *GetData() { return &fData; }
virtual void Clear();
virtual void SetTitle(TString str) { fTitle = str; }
virtual void SetName(TString str) { fName = str; }
virtual void SetHistoNo(Int_t no) { fHistoNo = no; }
virtual void SetTimeZeroBin(Double_t tzb) { fTimeZeroBin = tzb; }
@ -350,6 +352,7 @@ class PRawRunDataSet {
virtual void SetData(PDoubleVector data) { fData = data; }
private:
TString fTitle; ///< histogram title.
TString fName; ///< keeps the histogram name.
Int_t fHistoNo; ///< corresponds to the histogram number in the data file
Double_t fTimeZeroBin; ///< keeps the time zero bin