add title to PRawRunDataSet.

This commit is contained in:
suter_a 2025-03-19 09:44:13 +01:00
parent 38d4ec1806
commit 4b6654ca2a
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

@ -321,6 +321,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; }
@ -332,6 +333,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; }
@ -343,6 +345,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