StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
doEff.C
1 void doEff(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/dAu/");
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(),"dAu");
19  eff->init();
20  eff->setUseWeight(kTRUE);
21  eff->make(5000000);
22  eff->finish();
23 }