00001
00002
00004 #ifndef __SearchTune__
00005 #define __SearchTune__
00006
00007 #include "SearchRead.h"
00008
00009 using namespace std;
00010
00015 class SearchTune: public GwollumPlot {
00016
00017 public:
00018
00030 SearchTune(const string aBgFilePattern, const string aInjFilePattern);
00031
00035 virtual ~SearchTune(void);
00040 inline Long64_t DrawBg(const string varexp, const string selection="", string option=""){
00041 Wpad->cd();
00042 return Sbg->TChain::Draw(varexp.c_str(), selection.c_str(), option.c_str());
00043 };
00044
00045 inline Long64_t DrawInj(const string varexp, const string selection="", string option=""){
00046 Wpad->cd();
00047 return Sinj->TChain::Draw(varexp.c_str(), selection.c_str(), option.c_str());
00048 };
00049
00050 inline Long64_t ScanBg(const char* varexp = "", const char* selection = "", Option_t* option = "", Long64_t nentries = 1000000000, Long64_t firstentry = 0){
00051 return Sbg->Scan(varexp,selection,option,nentries,firstentry);
00052 }
00053
00054 inline Long64_t ScanInj(const char* varexp = "", const char* selection = "", Option_t* option = "", Long64_t nentries = 1000000000, Long64_t firstentry = 0){
00055 return Sinj->Scan(varexp,selection,option,nentries,firstentry);
00056 }
00057
00058 private:
00059
00060
00061 string BgFilePattern;
00062 string InjFilePattern;
00063
00064 SearchRead *Sbg;
00065 SearchRead *Sinj;
00066
00067 TH1I *bg_leg;
00068 TH1I *inj_leg;
00069
00070 ClassDef(SearchTune,0)
00071 };
00072
00073 #endif
00074
00075