]> git.uio.no Git - u/mrichter/AliRoot.git/blob - MUON/AliMUONTrackerHV.h
Make the Scan method public
[u/mrichter/AliRoot.git] / MUON / AliMUONTrackerHV.h
1 #ifndef ALIMUONTRACKERHV_H
2 #define ALIMUONTRACKERHV_H
3
4 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
5 * See cxx source for full Copyright notice                               */
6
7 #ifndef ROOT_TObject
8 #  include "TObject.h"
9 #endif
10 #ifndef ROOT_TString
11 #  include "TString.h"
12 #endif
13
14 #include <vector>
15
16 class TMultiGraph;
17 class TMap;
18 class TGraph;
19
20 class AliMUONTrackerHV : public TObject
21 {
22 public:
23   
24   AliMUONTrackerHV(const char* runlist, const char* ocdbPath="raw://");
25   AliMUONTrackerHV(Int_t runNumber, const char* ocdbPath="raw://");
26   virtual ~AliMUONTrackerHV();
27
28   void SetOCDB(const char* ocdbPath="raw://") { fOCDBPath = ocdbPath; }
29   void SetRunList(Int_t runNumber);
30   void SetRunList(const char* runlist);
31
32   void HVoff(const char* logfile="lhc11de.log", const char* outputBaseName="hvoff");
33
34   void Plot(const char* dcsname=0x0, Bool_t withPatch=kFALSE);
35   
36   void ReportTrips();
37   
38   void Scan(Int_t verbose=0);
39   
40 private:
41
42   void ReadIntegers(const char* filename, std::vector<int>& integers);
43
44   TGraph* ShowValues(TMap* m, const char* name);
45   
46   Int_t CheckMap(TMap* hvMap, Int_t runNumber, Bool_t verbose);
47   
48   void TimeAxis(TMultiGraph* g);
49   
50   TMultiGraph* ShowHV(TMap* m, const char* dcsname);
51   
52 private:
53   std::vector<int> fRunList; // input run list
54   TString fOCDBPath; // ocdb path (raw:// by default)
55   
56   ClassDef(AliMUONTrackerHV,1) // Utility class to inspect MUON Tracker HV values
57 };
58
59 #endif