]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - MONITOR/AliMonitorTrend.cxx
corrections to obey coding conventions
[u/mrichter/AliRoot.git] / MONITOR / AliMonitorTrend.cxx
index 2ae7263d45c121c5ca8316e8344adf5a6be0c860..f822591b12c903498c78cc89c83fbd05d8f3f0ae 100644 (file)
@@ -28,6 +28,7 @@
 
 
 #include "AliMonitorTrend.h"
+#include <TH1.h>
 #include <TVirtualPad.h>
 #include <TLine.h>
 
@@ -67,6 +68,26 @@ AliMonitorTrend::AliMonitorTrend(const AliMonitorTrend& trend) :
   fHistoCompare = NULL;
 }
 
+//_____________________________________________________________________________
+AliMonitorTrend& AliMonitorTrend::operator =(const AliMonitorTrend& trend)
+{
+// assignment operator
+
+  AliMonitorPlot::operator =(trend);
+
+  fLabel = trend.fLabel;
+  fMin = trend.fMin;
+  fMax = trend.fMax;
+  trend.fData.Copy(fData);
+
+  fHistoDraw = NULL;
+  fRefMean = trend.fRefMean;
+  fRefSigma = trend.fRefSigma;
+  fHistoCompare = NULL;
+
+  return *this;
+}
+
 //_____________________________________________________________________________
 AliMonitorTrend::AliMonitorTrend(const char* name, const char* title,
                  const char* label, Double_t min, Double_t max) :
@@ -345,7 +366,7 @@ TH1* AliMonitorTrend::CreateHisto(Int_t nBins)
 }
 
 //_____________________________________________________________________________
-Double_t AliMonitorTrend::GetMean()
+Double_t AliMonitorTrend::GetMean() const
 {
 // get the mean value
 
@@ -359,7 +380,7 @@ Double_t AliMonitorTrend::GetMean()
 }
 
 //_____________________________________________________________________________
-Double_t AliMonitorTrend::GetSigma()
+Double_t AliMonitorTrend::GetSigma() const
 {
 // get the rms value