Coverity fix
[u/mrichter/AliRoot.git] / MUON / AliMUONTrackerHV.h
CommitLineData
084cc733 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
16class TMultiGraph;
17class TMap;
18class TGraph;
49d622ec 19class AliMpDCSNamer;
084cc733 20
21class AliMUONTrackerHV : public TObject
22{
23public:
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);
49d622ec 36
37 void Print(Option_t* dcsname="") const;
38
39 void ReportTrips(Bool_t includeLowOnes=kFALSE);
084cc733 40
f6571ea4 41 void Scan(Int_t verbose=0);
42
084cc733 43private:
44
45 void ReadIntegers(const char* filename, std::vector<int>& integers);
46
49d622ec 47 TGraph* GraphValues(TMap* m, const char* name);
084cc733 48
49 Int_t CheckMap(TMap* hvMap, Int_t runNumber, Bool_t verbose);
50
084cc733 51 void TimeAxis(TMultiGraph* g);
52
49d622ec 53 TMultiGraph* GraphHV(TMap* m, const char* dcsname);
084cc733 54
49d622ec 55 AliMpDCSNamer* DCSNamer() const;
56
3bf21661 57 AliMUONTrackerHV(const AliMUONTrackerHV& rhs); // not implemented on purpose
58 AliMUONTrackerHV& operator=(const AliMUONTrackerHV& rhs); // not implemented on purpose
59
084cc733 60private:
61 std::vector<int> fRunList; // input run list
62 TString fOCDBPath; // ocdb path (raw:// by default)
49d622ec 63 mutable AliMpDCSNamer* fDCSNamer; // helper to name things
084cc733 64
49d622ec 65 ClassDef(AliMUONTrackerHV,2) // Utility class to inspect MUON Tracker HV values
084cc733 66};
67
68#endif