]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - VZERO/AliVZEROTrending.h
Time data monitoring (Raphael)
[u/mrichter/AliRoot.git] / VZERO / AliVZEROTrending.h
diff --git a/VZERO/AliVZEROTrending.h b/VZERO/AliVZEROTrending.h
new file mode 100644 (file)
index 0000000..cd5a3ce
--- /dev/null
@@ -0,0 +1,53 @@
+#ifndef ALIVZEROTRENDING_H\r
+#define ALIVZEROTRENDING_H\r
+/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights\r
+ * reserved. \r
+ *\r
+ * See cxx source for full Copyright notice                               \r
+ */\r
+\r
+\r
+// \r
+// Class AliVZEROTrending\r
+// ---------------------------\r
+// \r
+//  class used in QA to publish variables evolution versus time in AMORE. \r
+//  These histo are the one which will be looked at by QA Shifter\r
+// \r
+\r
+\r
+#include <TH1.h>\r
+\r
+class TGraph;\r
+\r
+class AliVZEROTrending  : public TH1 {\r
+public:\r
+       AliVZEROTrending();\r
+       AliVZEROTrending(const char* name, const char* title);\r
+       virtual ~AliVZEROTrending();\r
+       AliVZEROTrending(const AliVZEROTrending &trend);\r
+               \r
+       Double_t * GetTime(){return fTime;};\r
+       Double_t * GetChannel(Int_t i){return fData[i];};\r
+       Double_t  GetLastTime(){return fTime[fNEntries-1];};\r
+       Double_t  GetLastChannel(Int_t i){return fData[i][fNEntries];};\r
+       UInt_t GetNEntries(){return fNEntries;};\r
+       void AddEntry(Double_t * data, UInt_t time);\r
+       void PrintEntry(UInt_t entry);  \r
+\r
+private:\r
+       \r
+       AliVZEROTrending& operator= (const AliVZEROTrending & /*trend*/); // Not implemented\r
+       enum{kDataSize = 500};\r
+       Double_t fData[8][kDataSize];\r
+       Double_t fTime[kDataSize];\r
+       UInt_t fNEntries;\r
+       \r
+       \r
+       ClassDef( AliVZEROTrending, 1 )  \r
+       \r
+};\r
+\r
+#endif // ALIVZEROTRENDING_H\r
+\r
+\r