StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
doEffPP05.C
1 void doEffPP05(const char *in,const char *PID,const char *flag)
2 {
3  gSystem->Load("$HOME/MyEvent/MyEvent");
4  gSystem->Load("$HOME/gamma/analysis/lib/AnaCuts");
5  gSystem->Load("$HOME/gamma/analysis/lib/EventMixer");
6  gSystem->Load("$HOME/gamma/analysis/lib/Pi0Analysis");
7  gSystem->Load("$HOME/gamma/analysis/lib/Efficiency");
8 
9  TString out("/star/u/russcher/gamma/analysis/output/pp05/");
10  out.Append(PID);
11  TString command("mkdir ");
12  command.Append(out.Data());
13  gSystem->Exec(command.Data());
14  out.Append("/");
15  out.Append(PID);
16  out.Append(flag);
17 
18  Efficiency *eff=new Efficiency(in,out.Data(),"pp05");
19  eff->init();
20  eff->setUseWeight(kTRUE);
21  //eff->setUsePythiaWeight(kTRUE);
22  //eff->setUseBbcSpread(kFALSE); //set to true: default
23  eff->make(5000000);
24  eff->finish();
25 }