00001 #ifndef JETCALIBUTILS_H
00002 #define JETCALIBUTILS_H
00003
00004 #include "TFile.h"
00005 #include "TTree.h"
00006 #include "TString.h"
00007 #include "TObjString.h"
00008 #include "TH1D.h"
00009 #include "TH2D.h"
00010 #include <cmath>
00011 #include <vector>
00012
00013 typedef std::vector<TString> StrV;
00014 typedef std::vector<double> VecD;
00015
00016 namespace JetCalibUtils {
00017
00018
00019 StrV Vectorize (TString str, TString sep=" ");
00020 VecD VectorizeD(TString str, TString sep=" ");
00021
00022 TH1 *GetHisto(TFile *file, TString hname);
00023 TH2 *GetHisto2(TFile *file, TString hname);
00024
00025 TTree *setTree(TTree *tree);
00026
00027 }
00028
00029 #endif