From 60d8ad943bd77b9fcdd6381f735e790ce3d8b1de Mon Sep 17 00:00:00 2001 From: pavlinov Date: Wed, 7 May 2008 14:50:40 +0000 Subject: [PATCH] Put trigger jet information to ESD --- EMCAL/AliEMCALReconstructor.cxx | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/EMCAL/AliEMCALReconstructor.cxx b/EMCAL/AliEMCALReconstructor.cxx index 7708f9a432b..6f7795ae494 100644 --- a/EMCAL/AliEMCALReconstructor.cxx +++ b/EMCAL/AliEMCALReconstructor.cxx @@ -27,6 +27,7 @@ // --- ROOT system --- #include #include +#include // --- Standard library --- @@ -262,7 +263,23 @@ void AliEMCALReconstructor::FillESD(TTree* digitsTree, TTree* clustersTree, //for(int i=0; i<4; i++) printf(" %i %f : ", i, triggerAmplitudes[i]); //printf("\n"); tr.Print(""); - + // + // Trigger jet staff + // + if(tr.GetNJetThreshold()>0) { + // Jet phi/eta + Int_t n0 = triggerPosition.GetSize(); + const TH2F *hpatch = tr.GetJetMatrixE(); + triggerPosition.Set(n0 + 2); + for(Int_t i=0; i<2; i++) triggerPosition[n0+i] = hpatch->GetMean(i+1); + // Add jet ampitudes + n0 = triggerAmplitudes.GetSize(); + triggerAmplitudes.Set(n0 + tr.GetNJetThreshold()); + Double_t *ampJet = tr.GetL1JetThresholds(); + for(Int_t i=0; iAddEMCALTriggerPosition(triggerPosition); esd->AddEMCALTriggerAmplitudes(triggerAmplitudes); // Fill trigger hists -- 2.39.3