From: pavlinov Date: Wed, 7 May 2008 19:17:31 +0000 (+0000) Subject: Tune hists for jet trigger X-Git-Url: http://git.uio.no/git/?a=commitdiff_plain;h=f544eec524399ae8176b762b510204d46ad8def9;p=u%2Fmrichter%2FAliRoot.git Tune hists for jet trigger --- diff --git a/EMCAL/AliEMCALHistoUtilities.cxx b/EMCAL/AliEMCALHistoUtilities.cxx index e8e537f149f..176b9bf342f 100644 --- a/EMCAL/AliEMCALHistoUtilities.cxx +++ b/EMCAL/AliEMCALHistoUtilities.cxx @@ -627,7 +627,7 @@ Double_t AliEMCALHistoUtilities::GetCorrectedEnergyForGamma1(const Double_t eRec } // Trigger -TList* AliEMCALHistoUtilities::GetTriggersListOfHists(const Int_t scale, const Bool_t toBrowser) +TList* AliEMCALHistoUtilities::GetTriggersListOfHists(const Int_t scale, const Int_t nTrig, const Bool_t toBrowser) { // Oct 22, 2007 - trigger technical assurance gROOT->cd(); @@ -639,21 +639,30 @@ TList* AliEMCALHistoUtilities::GetTriggersListOfHists(const Int_t scale, const B new TH1F("03_hXposnxn", "X coord. of max Amp NXN",100, -500., +500.); new TH1F("04_hYposnxn", "Y coord. of max Amp NXN",100, -500., +500.); new TH1F("05_hZposnxn", "Z coord. of max Amp NXN",100, -500., +500.); + // May 7, 2008 - jet trigger + new TH1F("06_hJetTriggerPhi", "%phi of COG of jet trigger patch", 110, 80., 190.); + new TH1F("07_hJetTriggerEta", "%eta of COG of jet trigger patch", 70, -0.7, +0.7); // - new TH1F("06_hMaxAmp2x2", "max Amp 2x2", 1000, 0.0, pow(2.,14.)); - new TH1F("07_hAmpOutOf2x2", "Amp out of patch 2x2", 1000, 0.0, pow(2.,14.)); - new TH1F("08_hMaxAmpnxn", "max Amp NXN", 1000, 0.0, pow(2.,14.)); - new TH1F("09_hAmpOutOfnxn", "Amp out of patch nxn", 1000, 0.0, pow(2.,14.)); + new TH1F("08_hMaxAmp2x2", "max Amp 2x2", 1000, 0.0, pow(2.,14.)); + new TH1F("09_hAmpOutOf2x2", "Amp out of patch 2x2", 1000, 0.0, pow(2.,14.)); + new TH1F("10_hMaxAmpnxn", "max Amp NXN", 1000, 0.0, pow(2.,14.)); + new TH1F("11_hAmpOutOfnxn", "Amp out of patch nxn", 1000, 0.0, pow(2.,14.)); + // May 7, 2008 - jet trigger + for(Int_t i=0; i FillTriggersListOfHists() : list of hists undefined. \n"); return; } - if(triggerPosition && triggerPosition->GetSize() == 6) { - for(int i=0; i<6; i++) { - FillH1(l, i, double(triggerPosition->At(i))); - } + for(int i=0; iGetSize(); i++) { + FillH1(l, i, double(triggerPosition->At(i))); } - if(triggerAmplitudes && triggerAmplitudes->GetSize() == 4) { - for(int i=0; i<4; i++) { - FillH1(l, 6+i, double(triggerAmplitudes->At(i)) ); - } + + for(int i=0; iGetSize(); i++) { + FillH1(l, triggerPosition->GetSize() + i, double(triggerAmplitudes->At(i)) ); } } diff --git a/EMCAL/AliEMCALHistoUtilities.h b/EMCAL/AliEMCALHistoUtilities.h index bd7861650cb..36992bfab81 100644 --- a/EMCAL/AliEMCALHistoUtilities.h +++ b/EMCAL/AliEMCALHistoUtilities.h @@ -85,8 +85,8 @@ class AliEMCALHistoUtilities: public TNamed { // Analysis // // Trigger - static TList* GetTriggersListOfHists(const Int_t scale=0, const Bool_t toBrowser=kFALSE); - static void FillTriggersListOfHists(TList *l, TArrayF *triggerPosition, TArrayF *triggerAmplitudes); + static TList* GetTriggersListOfHists(const Int_t scale=0, const Int_t nTrig=5, const Bool_t toBrowser=kFALSE); + static void FillTriggersListOfHists(TList *l=0, TArrayF *triggerPosition=0, TArrayF *triggerAmplitudes=0); // Jet(s) kinematics static TList* GetJetsListOfHists(Int_t njet=2, Bool_t toBrowser=kFALSE); static void FillJetKineListOfHists(TList *l, AliRunLoader* rl, TLorentzVector &goodJet);