Go from pointer to ifstream to ifstream.
[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
e215621d 35 void Plot(const char* dcsname=0x0, Bool_t withPatch=kFALSE, Bool_t plotIntermediate=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
e215621d 43 TGraph* Combine(TObjArray& graphs);
44
45 TMultiGraph* CombineMulti(TObjArray& graphs);
46
084cc733 47private:
48
49 void ReadIntegers(const char* filename, std::vector<int>& integers);
50
49d622ec 51 TGraph* GraphValues(TMap* m, const char* name);
084cc733 52
53 Int_t CheckMap(TMap* hvMap, Int_t runNumber, Bool_t verbose);
54
084cc733 55 void TimeAxis(TMultiGraph* g);
56
49d622ec 57 TMultiGraph* GraphHV(TMap* m, const char* dcsname);
084cc733 58
49d622ec 59 AliMpDCSNamer* DCSNamer() const;
60
3bf21661 61 AliMUONTrackerHV(const AliMUONTrackerHV& rhs); // not implemented on purpose
62 AliMUONTrackerHV& operator=(const AliMUONTrackerHV& rhs); // not implemented on purpose
63
084cc733 64private:
65 std::vector<int> fRunList; // input run list
66 TString fOCDBPath; // ocdb path (raw:// by default)
49d622ec 67 mutable AliMpDCSNamer* fDCSNamer; // helper to name things
084cc733 68
49d622ec 69 ClassDef(AliMUONTrackerHV,2) // Utility class to inspect MUON Tracker HV values
084cc733 70};
71
72#endif