X-Git-Url: http://git.uio.no/git/?a=blobdiff_plain;f=EMCAL%2FAliEMCALHistoUtilities.cxx;h=37c30794c8333233f491f8779d6e69c906ea63bf;hb=4930f9f30e316e9f1ec5b8bb96e15b50f35a0588;hp=e8e537f149f29fc97dd59129eb3d621da7f1d847;hpb=c0e92bade0d888adc51033762cd7c82b77412a8e;p=u%2Fmrichter%2FAliRoot.git diff --git a/EMCAL/AliEMCALHistoUtilities.cxx b/EMCAL/AliEMCALHistoUtilities.cxx index e8e537f149f..37c30794c83 100644 --- a/EMCAL/AliEMCALHistoUtilities.cxx +++ b/EMCAL/AliEMCALHistoUtilities.cxx @@ -263,7 +263,7 @@ const char *optFit, const char *fun) TGraphErrors *AliEMCALHistoUtilities::DrawGraphErrors(const Int_t n,Double_t *x,Double_t *y,Double_t *ex, Double_t *ey, Int_t markerColor, Int_t markerStyle, const char* opt, const char* tit, -const char* xTit,char* yTit, Int_t ifun, const char *optFit, const char *fun) +const char* xTit,const char* yTit, Int_t ifun, const char *optFit, const char *fun) { // Oct 15, 2007 printf("AliEMCALHistoUtilities::drawGraphErrors started \n"); @@ -362,16 +362,16 @@ AliRunLoader* AliEMCALHistoUtilities::InitKinematics(const Int_t nev, const char static AliRunLoader *rl = 0; if((rl == 0 || nev==0) && galiceName) { - printf(" AliEMCALHistoUtilities::InitKinematics() : nev %i : rl %p : %s (IN)\n", - nev, rl, galiceName); + //printf(" AliEMCALHistoUtilities::InitKinematics() : nev %i : rl %p : %s (IN)\n", + // nev, rl, galiceName); if(rl) { rl->UnloadgAlice(); delete rl; } rl = AliRunLoader::Open(galiceName,AliConfig::GetDefaultEventFolderName(),"read"); rl->LoadgAlice(); // obligatory - printf(" AliEMCALHistoUtilities::InitKinematics() : nev %i : rl %p : %s (OUT)\n", - nev, rl, galiceName); + //printf(" AliEMCALHistoUtilities::InitKinematics() : nev %i : rl %p : %s (OUT)\n", + //nev, rl, galiceName); } if(rl) { rl->GetEvent(nev); @@ -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)) ); } }