- AliLatexTable table(2,"cc");
- // table.InsertCustomRow("\\multicolumn{c}{2}{Integrated efficiency}");
- table.InsertCustomRow(Form("Trigger Name & Efficiency (%s)\\\\",trigger.Data()));
- table.InsertHline();
- TList * l = gDirectory->GetListOfKeys();
- TIterator * iter = l->MakeIterator();
- TKey * key = 0;
- TH1F * hall = (TH1F*) gDirectory->Get("hTracklets_all"); // FIXME: get the normalization for a given trigger?
- while (key = (TKey*) iter->Next()){
- TString name = key->GetName();
- if(!name.Contains("Tracklets")) continue;
- if(!name.Contains(trigger)) continue;
- if(name.Contains("all")) continue;
- TH1F * h = (TH1F*) gDirectory->Get(name);
- TString label = name(name.Index("_")+1, name.Index("_",name.Index("_")+1)-name.Index("_")-1);
- table.SetNextCol(label);
- table.SetNextCol(h->GetEntries()/hall->GetEntries());
- table.InsertRow();
- }
- cout << "Integrated trigger efficiency" << endl;
+ // AliLatexTable table(2,"cc");
+ // // table.InsertCustomRow("\\multicolumn{c}{2}{Integrated efficiency}");
+ // table.InsertCustomRow(Form("Trigger Name & Efficiency (%s)\\\\",trigger.Data()));
+ // table.InsertHline();
+ // TList * l = gDirectory->GetListOfKeys();
+ // TIterator * iter = l->MakeIterator();
+ // TKey * key = 0;
+ // TH1F * hall = (TH1F*) gDirectory->Get("hTracklets_all"); // FIXME: get the normalization for a given trigger?
+ // while (key = (TKey*) iter->Next()){
+ // TString name = key->GetName();
+ // if(!name.Contains("Tracklets")) continue;
+ // if(!name.Contains(trigger)) continue;
+ // if(name.Contains("all")) continue;
+ // TH1F * h = (TH1F*) gDirectory->Get(name);
+ // TString label = name(name.Index("_")+1, name.Index("_",name.Index("_")+1)-name.Index("_")-1);
+ // table.SetNextCol(label);
+ // table.SetNextCol(h->GetEntries()/hall->GetEntries());
+ // table.InsertRow();
+ // }
+ // cout << "Integrated trigger efficiency" << endl;
+ // table.PrintTable("ASCII");
+
+ Int_t v0ANDOnline = GetNumberOfEventsWithBit(hVenn,0x1 <<AliAnalysisTaskTriggerStudy::kVDV0ANDOnline) ;
+ Int_t v0ANDOffline = GetNumberOfEventsWithBit(hVenn,0x1 <<AliAnalysisTaskTriggerStudy::kVDV0ANDOffline | 0x1 << AliAnalysisTaskTriggerStudy::kVDPhysSel);
+ Int_t recCandle = GetNumberOfEventsWithBit(hVenn,0x1 <<AliAnalysisTaskTriggerStudy::kVDRecCandle | 0x1 << AliAnalysisTaskTriggerStudy::kVDPhysSel| 0x1 << AliAnalysisTaskTriggerStudy::kVDV0ANDOffline) ;
+ // Int_t recCandlePS = GetNumberOfEventsWithBit(hVenn,0x1 <<AliAnalysisTaskTriggerStudy::kVDRecCandle, 0x1 << AliAnalysisTaskTriggerStudy::kVDPhysSel) ;
+ Int_t genCandle = GetNumberOfEventsWithBit(hVenn,0x1 <<AliAnalysisTaskTriggerStudy::kVDGenCandle) ;
+ Int_t genCandleAndV0 = GetNumberOfEventsWithBit(hVenn,0x1 <<AliAnalysisTaskTriggerStudy::kVDGenCandle | 0x1 << AliAnalysisTaskTriggerStudy::kVDV0ANDOffline) ;
+
+ Int_t physSel = GetNumberOfEventsWithBit(hVenn,0x1 <<AliAnalysisTaskTriggerStudy::kVDPhysSel) ;
+
+ cout << "V0AND Online " << v0ANDOnline << endl;
+ cout << "V0AND Offline " << v0ANDOffline << endl;
+ cout << "REC CANDLE " << recCandle <<endl;
+ cout << "GEN CANDLE " << genCandle << endl;
+ cout << "REC/GEN CANDLE " << (genCandle>0 ? Float_t(recCandle)/genCandle : genCandle) << endl;
+ cout << "REC/GEN CANDLEV0 " << (genCandleAndV0>0 ? Float_t(recCandle)/genCandleAndV0 : genCandleAndV0) << endl;
+ cout << "Phys Sel CINT1B " << physSel << endl;
+ // cout << "Dummy " << GetNumberOfEventsWithBit(hVenn,0x1 <<AliAnalysisTaskTriggerStudy::kVDRecCandle, 0x1 << AliAnalysisTaskTriggerStudy::kVDV0ANDOffline) << endl;
+
+ AliLatexTable table(5,"cc");
+ table.InsertCustomRow("V0AND online/offline & V0AND offline / after PS & V0AND online / after PS & candle / after PS & Candle / v0AND offline\\\\");
+ table.SetNextCol(Float_t(v0ANDOnline)/v0ANDOffline,-3);
+ table.SetNextCol(Float_t(v0ANDOffline)/physSel ,-3);
+ table.SetNextCol(Float_t(v0ANDOnline)/physSel ,-3);
+ table.SetNextCol(Float_t(recCandle)/physSel ,-3);
+ table.SetNextCol(Float_t(recCandle)/v0ANDOffline ,-3);
+ table.InsertRow();