From: cvetan Date: Thu, 10 Jun 2010 10:39:48 +0000 (+0000) Subject: Fixing the AliTriggerAnalysis in order to use the VZERO average times and the decisio... X-Git-Url: http://git.uio.no/git/?a=commitdiff_plain;h=988dd3a4ffbc307e35f79eeacd6db35f7d32f8aa;p=u%2Fmrichter%2FAliRoot.git Fixing the AliTriggerAnalysis in order to use the VZERO average times and the decisions stored already in ESD. The backward compatibility is fully preserved. For the moment the online trigger analysis is disabled (returning always b-b). It needs some work on the reconstruction side in order to add the b-b flags for simulated data into the ESD (for raw data they are already there). --- diff --git a/ANALYSIS/AliTriggerAnalysis.cxx b/ANALYSIS/AliTriggerAnalysis.cxx index 1a499fb4027..582a147d5f7 100644 --- a/ANALYSIS/AliTriggerAnalysis.cxx +++ b/ANALYSIS/AliTriggerAnalysis.cxx @@ -146,8 +146,8 @@ void AliTriggerAnalysis::EnableHistograms() fHistBitsSPD = new TH2F("fHistBitsSPD", "SPD GFO;number of fired chips (offline);number of fired chips (hardware)", 1202, -1.5, 1200.5, 1202, -1.5, 1200.5); fHistFiredBitsSPD = new TH1F("fHistFiredBitsSPD", "SPD GFO Hardware;chip number;events", 1200, -0.5, 1199.5); - fHistV0A = new TH1F("fHistV0A", "V0A;leading time (ns);events", 200, 0, 100); - fHistV0C = new TH1F("fHistV0C", "V0C;leading time (ns);events", 200, 0, 100); + fHistV0A = new TH1F("fHistV0A", "V0A;leading time (ns);events", 400, -100, 100); + fHistV0C = new TH1F("fHistV0C", "V0C;leading time (ns);events", 400, -100, 100); fHistZDC = new TH1F("fHistZDC", "ZDC;trigger bits;events", 8, -1.5, 6.5); // TODO check limits @@ -656,6 +656,26 @@ AliTriggerAnalysis::V0Decision AliTriggerAnalysis::V0Trigger(const AliESDEvent* return kV0Invalid; } + if (esdV0->TestBit(AliESDVZERO::kDecisionFilled)) { + if (online) { + AliWarning("V0 online trigger analysis is not yet available!"); + return kV0BB; + } + else { + + if (fillHists) { + if (side == kASide && fHistV0A) + fHistV0A->Fill(esdV0->GetV0ATime()); + if (side == kCSide && fHistV0C) + fHistV0C->Fill(esdV0->GetV0CTime()); + } + + if (side == kASide) return (V0Decision)esdV0->GetV0ADecision(); + else if (side == kCSide) return (V0Decision)esdV0->GetV0CDecision(); + else return kV0Invalid; + } + } + Int_t begin = -1; Int_t end = -1;