ROOTPWA
doPlotWEvts.C
Go to the documentation of this file.
1 void doPlotWEvts(TString evtfile, TString mcfile,
2  TString outfile, TString mass, UInt_t samples=1){
3 
4  gROOT->ProcessLine(".L $ROOTPWA/generators/plotWeightedEvts.C+");
5  //gROOT->ProcessLine(".L $ROOTPWA/generators/plotWeightedEvts_3pin.C+");
6 
7  TFile* file1=TFile::Open(evtfile,"READ");
8  TFile* file2=TFile::Open(mcfile,"READ");
9  TTree* data=(TTree*)file1->Get("events");
10  TTree* mc=(TTree*)file2->Get("pwevents");
11 
12  plotWeightedEvts(mc,data,outfile,mass,samples);
13 
14  file1->Close();
15  file2->Close();
16 
17 }