StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
doEffPythia.C
1 void doEffPythia(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/pythia/");
10  TString command("mkdir ");
11  command.Append(out.Data());
12  gSystem->Exec(command.Data());
13  out.Append(PID);
14  out.Append(flag);
15 
16  Efficiency *eff=new Efficiency(in,out.Data(),"pp05");
17  eff->init();
18  eff->setMC(kTRUE);
19  eff->setUseWeight(kFALSE);
20  eff->setUseBbcSpread(kFALSE);
21  eff->setPythia(kTRUE);
22  eff->make(5000000);
23  eff->finish();
24 
25 
26 }