]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
new SM not activate/masked (from Marta)
authorloizides <loizides@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 24 Jun 2013 10:02:51 +0000 (10:02 +0000)
committerloizides <loizides@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 24 Jun 2013 10:02:51 +0000 (10:02 +0000)
PWGJE/EMCALJetTasks/UserTasks/AliAnalysisTaskEmcalJetTriggerQA.cxx
PWGJE/EMCALJetTasks/UserTasks/AliAnalysisTaskEmcalJetTriggerQA.h

index 7b0d0b11323698470b82451c40e50f9dd6fb995e..d8ace1ada2ce240611f725ae2ce51b11cfcd4187 100644 (file)
@@ -66,7 +66,8 @@ AliAnalysisTaskEmcalJetTriggerQA::AliAnalysisTaskEmcalJetTriggerQA() :
   fh3EEtaPhiCluster(0),
   fh3PtLeadJet1VsPatchEnergy(0),
   fh3PtLeadJet2VsPatchEnergy(0),
-  fh3PatchEnergyEtaPhiCenter(0)
+  fh3PatchEnergyEtaPhiCenter(0),
+  fh2CellEnergyVsTime(0)
 {
   // Default constructor.
 
@@ -113,7 +114,8 @@ AliAnalysisTaskEmcalJetTriggerQA::AliAnalysisTaskEmcalJetTriggerQA(const char *n
   fh3EEtaPhiCluster(0),
   fh3PtLeadJet1VsPatchEnergy(0),
   fh3PtLeadJet2VsPatchEnergy(0),
-  fh3PatchEnergyEtaPhiCenter(0)
+  fh3PatchEnergyEtaPhiCenter(0),
+  fh2CellEnergyVsTime(0)
 {
   // Standard constructor.
 
@@ -452,7 +454,7 @@ void AliAnalysisTaskEmcalJetTriggerQA::UserCreateOutputObjects()
   fh2PtLeadJet1VsLeadJet2 = new TH2F("fh2PtLeadJet1VsLeadJet2","fh2PtLeadJet1VsLeadJet2;#it{p}_{T}^{jet 1};#it{p}_{T}^{jet 2}",nBinsPt,minPt,maxPt,nBinsPt,minPt,maxPt);
   fOutput->Add(fh2PtLeadJet1VsLeadJet2);
 
-  fh3EEtaPhiCluster = new TH3F("fh3EEtaPhiCluster","fh3EEtaPhiCluster;E_{clus};#eta,#phi",nBinsECluster,minECluster,maxECluster,nBinsEta,minEta,maxEta,nBinsPhi,minPhi,maxPhi);
+  fh3EEtaPhiCluster = new TH3F("fh3EEtaPhiCluster","fh3EEtaPhiCluster;E_{clus};#eta;#phi",nBinsECluster,minECluster,maxECluster,nBinsEta,minEta,maxEta,nBinsPhi,minPhi,maxPhi);
   fOutput->Add(fh3EEtaPhiCluster);
 
   fh3PtLeadJet1VsPatchEnergy = new TH3F("fh3PtLeadJet1VsPatchEnergy","fh3PtLeadJet1VsPatchEnergy;#it{p}_{T}^{jet 1};Amplitude_{patch};trig type",nBinsPt,minPt,maxPt,nBinsPt,minPt,maxPt,2,-0.5,1.5);
@@ -463,6 +465,9 @@ void AliAnalysisTaskEmcalJetTriggerQA::UserCreateOutputObjects()
   fh3PatchEnergyEtaPhiCenter = new TH3F("fh3PatchEnergyEtaPhiCenter","fh3PatchEnergyEtaPhiCenter;E_{patch};#eta;#phi",nBinsPt,minPt,maxPt,nBinsEta,minEta,maxEta,nBinsPhi,minPhi,maxPhi);
   fOutput->Add(fh3PatchEnergyEtaPhiCenter);
 
+  fh2CellEnergyVsTime = new TH2F("fh2CellEnergyVsTime","fh2CellEnergyVsTime;E_{cell};time",100,0.,100.,700,-400,1000);
+  fOutput->Add(fh2CellEnergyVsTime);
+
 
   // =========== Switch on Sumw2 for all histos ===========
   for (Int_t i=0; i<fOutput->GetEntries(); ++i) {
@@ -516,6 +521,21 @@ Bool_t AliAnalysisTaskEmcalJetTriggerQA::FillHistograms()
     }
   }
 
+  if(fCaloCells) {
+    const Short_t nCells   = fCaloCells->GetNumberOfCells();
+
+    for(Int_t iCell=0; iCell<nCells; ++iCell) {
+      Short_t cellId = fCaloCells->GetCellNumber(iCell);
+      Double_t cellE = fCaloCells->GetCellAmplitude(cellId);
+      Double_t cellT = fCaloCells->GetCellTime(cellId);
+
+      AliDebug(2,Form("cell energy = %f  time = %f",cellE,cellT*1e9));
+      fh2CellEnergyVsTime->Fill(cellE,cellT*1e9);
+    
+    }
+
+  }
+
   Double_t ptLeadJet1 = 0.;
   Double_t ptLeadJet2 = 0.;
 
index 90aa09751fe3e53ffb886f0b56b5ad9fa4939854..2f69349cd435e52d9f62bb122251c54ae6e7d9b5 100644 (file)
@@ -96,7 +96,7 @@ class AliAnalysisTaskEmcalJetTriggerQA : public AliAnalysisTaskEmcalJet {
   TH3F  *fh3PtLeadJet1VsPatchEnergy;        //! leading jet energy vs leading patch energy vs jet trigger (J1/J2)
   TH3F  *fh3PtLeadJet2VsPatchEnergy;        //! leading jet energy vs leading patch energy vs jet trigger (J1/J2)
   TH3F  *fh3PatchEnergyEtaPhiCenter;        //! patch energy vs eta, phi at center of patch
-
+  TH2F  *fh2CellEnergyVsTime;               //! emcal cell energy vs time
 
 
   AliAnalysisTaskEmcalJetTriggerQA(const AliAnalysisTaskEmcalJetTriggerQA&);            // not implemented