-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathHistogramManager.h
executable file
·68 lines (43 loc) · 1.43 KB
/
HistogramManager.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
#ifndef HistogramManager_h
#define HistogramManager_h
#include "TString.h"
#include "TFile.h"
#include "TPostScript.h"
#include "TH2F.h"
#include "TH2D.h"
#include "TH2C.h"
#include "TH2S.h"
#include "TH3F.h"
#include "TH3D.h"
#include "TH3C.h"
#include "TH3S.h"
#include "TProfile.h"
#include "TObjArray.h"
class HistogramManager : public TObject
{
private :
Bool_t HistogramManager_debug ;
// Rajouter un TFile* //
// une methode qui initialise ce TFile (on peut en ecrire plusiseurs)
//
TPostScript* postscriptfile ;
public:
// Accessible method //
HistogramManager();
virtual ~HistogramManager();
void SetDebug(Bool_t adebug) { HistogramManager_debug = adebug; }
void SetPostScriptFile(TPostScript & apsfile) { postscriptfile = &apsfile;}
void GetHistogramsInFile(TObjArray & table , TFile * afile = 0) ;
void WriteHistogram(TH1* anhisto = 0, TString option = "");
void WriteAllHistogramsInFile(TString filename = "result.root",
TString option = "recreate") ;
void DeleteAllHistograms();
void SaveHistogram(TH1* hist1, Char_t* title = "", Char_t* option = "",
Bool_t logy = 0, Bool_t logx = 0, Int_t color = 5,
Int_t stati = 111111, TString format = "ps");
void SetHistogramStyle(TString style = "seb");
void SetSebStyle(float W = 0.3, float H = 0.15,
float titleW = 0.48, float titleH = 0.05);
ClassDef(HistogramManager,1)// HistogramManager
};
#endif