BOSS 8.0.0
BESIII Offline Software System
Loading...
Searching...
No Matches
AutoHistoCompare.h
Go to the documentation of this file.
1#pragma once
2
3#include <TDirectory.h>
4#include <TFile.h>
5#include <TH1F.h>
6#include <TH2.h>
7#include <TLegend.h>
8#include <TProfile.h>
9#include <TText.h>
10// #include <TObject.h>
11
13public:
14 AutoHistoCompare( TH1F* h1, const char* oldfn, const char* newfn, int method = 2, bool norm = false );
16
17 void isNorm( bool isnorm ) { norm = isnorm; }
18
19 void ComparisonH1();
20 void ComparisonH2();
21 void ComparisonProfile();
22
23 void DoCompare();
24 void FolderMatch();
25 void MatchH1( TObject* obj );
26 void FolderMatchH1( TObject* obj );
27
28private:
29 Double_t mypv;
30
31 TH1* myoldHisto1;
32 TH1* mynewHisto1;
33
34 TH2* myoldHisto2;
35 TH2* mynewHisto2;
36
37 TProfile* myoldProfile;
38 TProfile* mynewProfile;
39
40 TText* myte;
41 TH1F* PvHisto;
42
43 TFile* oldfile;
44 TFile* newfile;
45
46 TList* oldlist;
47 TList* newlist;
48
49 TDirectory* olddir;
50 TDirectory* newdir;
51
52 TList* oldlistfolder;
53 TList* newlistfolder;
54
55 TText* te;
56 TLegend* leg;
57
58 Int_t method;
59 Bool_t norm; // normalize
60};
61
void MatchH1(TObject *obj)
AutoHistoCompare(TH1F *h1, const char *oldfn, const char *newfn, int method=2, bool norm=false)
void FolderMatchH1(TObject *obj)
void isNorm(bool isnorm)