AliRoot Core  v5-06-30 (35d6c57)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
AliMUONTrackerHV.h
Go to the documentation of this file.
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 class AliMpDCSNamer;
20 
21 class AliMUONTrackerHV : public TObject
22 {
23 public:
24 
25  AliMUONTrackerHV(const char* runlist, const char* ocdbPath="raw://");
26  AliMUONTrackerHV(Int_t runNumber, const char* ocdbPath="raw://");
27  virtual ~AliMUONTrackerHV();
28 
29  void SetOCDB(const char* ocdbPath="raw://") { fOCDBPath = ocdbPath; }
30  void SetRunList(Int_t runNumber);
31  void SetRunList(const char* runlist);
32 
33  void HVoff(const char* logfile="lhc11de.log", const char* outputBaseName="hvoff");
34 
35  void Plot(const char* dcsname=0x0, Bool_t withPatch=kFALSE, Bool_t plotIntermediate=kFALSE);
36 
37  void Print(Option_t* dcsname="") const;
38 
39  void ReportTrips(Bool_t includeLowOnes=kFALSE);
40 
41  void Scan(Int_t verbose=0);
42 
43  TGraph* Combine(TObjArray& graphs);
44 
45  TMultiGraph* CombineMulti(TObjArray& graphs);
46 
47 private:
48 
49  void ReadIntegers(const char* filename, std::vector<int>& integers);
50 
51  TGraph* GraphValues(TMap* m, const char* name);
52 
53  Int_t CheckMap(TMap* hvMap, Int_t runNumber, Bool_t verbose);
54 
55  void TimeAxis(TMultiGraph* g);
56 
57  TMultiGraph* GraphHV(TMap* m, const char* dcsname);
58 
59  AliMpDCSNamer* DCSNamer() const;
60 
61  AliMUONTrackerHV(const AliMUONTrackerHV& rhs); // not implemented on purpose
62  AliMUONTrackerHV& operator=(const AliMUONTrackerHV& rhs); // not implemented on purpose
63 
64 private:
65  std::vector<int> fRunList; // input run list
66  TString fOCDBPath; // ocdb path (raw:// by default)
67  mutable AliMpDCSNamer* fDCSNamer; // helper to name things
68 
69  ClassDef(AliMUONTrackerHV,2) // Utility class to inspect MUON Tracker HV values
70 };
71 
72 #endif
void Plot(const char *dcsname=0x0, Bool_t withPatch=kFALSE, Bool_t plotIntermediate=kFALSE)
AliMpDCSNamer * fDCSNamer
TMultiGraph * GraphHV(TMap *m, const char *dcsname)
AliMUONTrackerHV(const char *runlist, const char *ocdbPath="raw://")
#define TObjArray
void HVoff(const char *logfile="lhc11de.log", const char *outputBaseName="hvoff")
Collection of methods usefull to DCS handling for MUON TRK and TRG.
Definition: AliMpDCSNamer.h:21
Int_t CheckMap(TMap *hvMap, Int_t runNumber, Bool_t verbose)
TMultiGraph * CombineMulti(TObjArray &graphs)
AliMUONTrackerHV & operator=(const AliMUONTrackerHV &rhs)
void TimeAxis(TMultiGraph *g)
void ReportTrips(Bool_t includeLowOnes=kFALSE)
void SetOCDB(const char *ocdbPath="raw://")
std::vector< int > fRunList
TGraph * Combine(TObjArray &graphs)
TGraph * GraphValues(TMap *m, const char *name)
AliMpDCSNamer * DCSNamer() const
void ReadIntegers(const char *filename, std::vector< int > &integers)
TArrayI runlist(10000)
virtual ~AliMUONTrackerHV()
void Print(Option_t *dcsname="") const
void Scan(Int_t verbose=0)
void SetRunList(Int_t runNumber)