Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:29:34

0001 #ifndef ROOT_PREFS_H
0002 #define ROOT_PREFS_H
0003 
0004 #include <string>
0005 #include <map>
0006 #include <iostream>
0007 #include <fstream>
0008 #include <iomanip>
0009 #include <string>
0010 #include "TMath.h"
0011 #include "TROOT.h"
0012 #include "TFile.h"
0013 #include "TTree.h"
0014 #include "TH1F.h"
0015 #include "TH2F.h"
0016 #include "TCanvas.h"
0017 #include "TPad.h"
0018 #include "TString.h"
0019 #include "TCut.h"
0020 #include "TClonesArray.h"
0021 #include "TProfile.h"
0022 #include "TF1.h"
0023 #include "TStyle.h"
0024 #include "Rtypes.h"
0025 #include "TText.h"
0026 #include "TLine.h"
0027 
0028 void initStyle(TStyle *sty);
0029 
0030 void SetupTowerDisplay(TH2F *hist);
0031 
0032 void SetStatus(TH1F* hist, string status);
0033 
0034 void SetupTitle(TH1F* hist, char* xtitle, char* ytitle);
0035 
0036 void SetupTitle(TProfile* hist, char* xtitle, char* ytitle);
0037 
0038 void SetupTitle(TH2F* hist, char* xtitle, char* ytitle);
0039 
0040 class index_map{
0041  public:
0042   index_map();
0043   typedef map<int,int> i2i;
0044   ~index_map();
0045 
0046   int ntpg(int index) const
0047     {
0048       return nvec2ntpg.find(index)->second;
0049     }
0050 
0051   int nvec(int index) const
0052     {
0053       return ntpg2nvec.find(index)->second;
0054     }
0055 
0056  private:
0057   i2i ntpg2nvec;
0058   i2i nvec2ntpg;
0059 };
0060 
0061 
0062 #endif //ROOT_PREFS_H