From e61ed4b120561026c33a72adebcb153088a6160f Mon Sep 17 00:00:00 2001 From: lietava Date: Tue, 16 Jun 2009 08:28:15 +0000 Subject: [PATCH] Trigger inputs are copied to esd header --- STEER/AliReconstruction.cxx | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/STEER/AliReconstruction.cxx b/STEER/AliReconstruction.cxx index c0c09c0cc9e..5216c077f71 100644 --- a/STEER/AliReconstruction.cxx +++ b/STEER/AliReconstruction.cxx @@ -2527,11 +2527,13 @@ Bool_t AliReconstruction::FillTriggerESD(AliESDEvent*& esd) if (esd->GetBunchCrossNumber() != input.GetBCID()) AliError(Form("Invalid bunch-crossing id found in CTP raw-data: %x %x", input.GetBCID(),esd->GetBunchCrossNumber())); + AliESDHeader* esdheader = esd->GetHeader(); + esdheader->SetL0TriggerInputs(input.GetL0Inputs()); + esdheader->SetL1TriggerInputs(input.GetL1Inputs()); + esdheader->SetL2TriggerInputs(input.GetL2Inputs()); } - // Here one has to add the filling of trigger inputs and - // interaction records - // ... + // Here one has to add the filling interaction records } return kTRUE; } @@ -3210,6 +3212,11 @@ Bool_t AliReconstruction::GetEventInfo() if (fRunLoader && (!fRunLoader->LoadTrigger())) { aCTP = fRunLoader->GetTrigger(); fEventInfo.SetTriggerMask(aCTP->GetClassMask()); + // get inputs from actp - just get + AliESDHeader* esdheader = fesd->GetHeader(); + esdheader->SetL0TriggerInputs(aCTP->GetL0TriggerInputs()); + esdheader->SetL1TriggerInputs(aCTP->GetL1TriggerInputs()); + esdheader->SetL2TriggerInputs(aCTP->GetL2TriggerInputs()); fEventInfo.SetTriggerCluster(AliDAQ::ListOfTriggeredDetectors(aCTP->GetClusterMask())); } else { @@ -3236,7 +3243,7 @@ Bool_t AliReconstruction::GetEventInfo() Int_t trindex = TMath::Nint(TMath::Log2(trclass->GetMask())); fesd->SetTriggerClass(trclass->GetName(),trindex); if (fRawReader) fRawReader->LoadTriggerClass(trclass->GetName(),trindex); - if (trmask & (1 << trindex)) { + if (trmask & (1ull << trindex)) { trclasses += " "; trclasses += trclass->GetName(); trclasses += " "; -- 2.43.0