switched PMusrT0 where possible to smart pointers.
This commit is contained in:
@@ -30,6 +30,8 @@
|
||||
#ifndef _PMUSRT0_H_
|
||||
#define _PMUSRT0_H_
|
||||
|
||||
#include <memory>
|
||||
|
||||
#include <TObject.h>
|
||||
#include <TQObject.h>
|
||||
#include <TStyle.h>
|
||||
@@ -122,8 +124,6 @@ class PMusrT0 : public TObject, public TQObject
|
||||
PMusrT0();
|
||||
PMusrT0(PMusrT0Data &data);
|
||||
|
||||
virtual ~PMusrT0();
|
||||
|
||||
virtual Bool_t IsValid() { return fValid; }
|
||||
|
||||
virtual void Done(Int_t status=0); // *SIGNAL*
|
||||
@@ -156,23 +156,23 @@ class PMusrT0 : public TObject, public TQObject
|
||||
Int_t fT0Estimated; ///< estimated t0 value (in bins)
|
||||
Bool_t fShowT0DataChannel;
|
||||
|
||||
TTimer *fTimeoutTimer; ///< timeout timer in order to terminate if no action is taking place for too long
|
||||
std::unique_ptr<TTimer> fTimeoutTimer; ///< timeout timer in order to terminate if no action is taking place for too long
|
||||
|
||||
// canvas related variables
|
||||
TCanvas *fMainCanvas; ///< main canvas for the graphical user interface
|
||||
std::unique_ptr<TCanvas> fMainCanvas; ///< main canvas for the graphical user interface
|
||||
|
||||
TH1F *fHisto; ///< full raw data histogram
|
||||
TH1F *fData; ///< ranged raw data histogram (first good bin, last good bin)
|
||||
TH1F *fBkg; ///< histogram starting from 'bkg start' up to 'bkg end'
|
||||
std::unique_ptr<TH1F> fHisto; ///< full raw data histogram
|
||||
std::unique_ptr<TH1F> fData; ///< ranged raw data histogram (first good bin, last good bin)
|
||||
std::unique_ptr<TH1F> fBkg; ///< histogram starting from 'bkg start' up to 'bkg end'
|
||||
|
||||
TLatex *fToDoInfo; ///< clear text user instruction string
|
||||
std::unique_ptr<TLatex> fToDoInfo; ///< clear text user instruction string
|
||||
|
||||
TLine *fT0Line; ///< line showing the position of t0
|
||||
TLine *fT0DataLine; ///< line showing the position of t0 found in the data file
|
||||
TLine *fFirstBkgLine; ///< line showing the start of the background
|
||||
TLine *fLastBkgLine; ///< line showing the end of the background
|
||||
TLine *fFirstDataLine; ///< line showing the start of the data (first good data bin)
|
||||
TLine *fLastDataLine; ///< line showing the end of the data (last good data bin)
|
||||
std::unique_ptr<TLine> fT0Line; ///< line showing the position of t0
|
||||
std::unique_ptr<TLine> fT0DataLine; ///< line showing the position of t0 found in the data file
|
||||
std::unique_ptr<TLine> fFirstBkgLine; ///< line showing the start of the background
|
||||
std::unique_ptr<TLine> fLastBkgLine; ///< line showing the end of the background
|
||||
std::unique_ptr<TLine> fFirstDataLine; ///< line showing the start of the data (first good data bin)
|
||||
std::unique_ptr<TLine> fLastDataLine; ///< line showing the end of the data (last good data bin)
|
||||
|
||||
Int_t fPx; ///< x-position of the cursor
|
||||
Int_t fPy; ///< y-position of the cursor
|
||||
|
||||
Reference in New Issue
Block a user