From: pavlinov Date: Wed, 7 May 2008 14:50:40 +0000 (+0000) Subject: Put trigger jet information to ESD X-Git-Url: http://git.uio.no/git/?p=u%2Fmrichter%2FAliRoot.git;a=commitdiff_plain;h=60d8ad943bd77b9fcdd6381f735e790ce3d8b1de Put trigger jet information to ESD --- 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