1 /**************************************************************************
2 * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 * Author: The ALICE Off-line Project. *
5 * Contributors are mentioned in the code where appropriate. *
7 * Permission to use, copy, modify and distribute this software and its *
8 * documentation strictly for non-commercial purposes is hereby granted *
9 * without fee, provided that the above copyright notice appears in all *
10 * copies and that both the copyright notice and this permission notice *
11 * appear in the supporting documentation. The authors make no claims *
12 * about the suitability of this software for any purpose. It is *
13 * provided "as is" without express or implied warranty. *
14 **************************************************************************/
17 /* History of cvs commits:
20 * Revision 1.1.2.1 2007/07/26 10:32:09 schutz
21 * new analysis classes in the the new analysis framework
26 //_________________________________________________________________________
27 // Class for the analysis of gamma-jet (standard jet finder) correlations
28 //*-- Author: Gustavo Conesa (LNF-INFN)
29 //////////////////////////////////////////////////////////////////////////////
32 // --- ROOT system ---
33 #include "Riostream.h"
35 //---- AliRoot system ----
36 #include "AliAnaGammaJetFinder.h"
39 ClassImp(AliAnaGammaJetFinder)
42 //____________________________________________________________________________
43 AliAnaGammaJetFinder::AliAnaGammaJetFinder() :
44 AliAnaGammaCorrelation(),
45 fhDeltaEtaJet(0), fhDeltaPhiJet(0),
46 fhDeltaPtJet(0), fhPtRatJet(0)
50 SetCorrelationType(kJetFinder);
51 //Initialize parameters
55 //____________________________________________________________________________
56 AliAnaGammaJetFinder::AliAnaGammaJetFinder(const AliAnaGammaJetFinder & g) :
57 AliAnaGammaCorrelation(g),
58 fhDeltaEtaJet(g.fhDeltaEtaJet), fhDeltaPhiJet(g.fhDeltaPhiJet),
59 fhDeltaPtJet(g.fhDeltaPtJet), fhPtRatJet(g.fhPtRatJet)
65 //_________________________________________________________________________
66 AliAnaGammaJetFinder & AliAnaGammaJetFinder::operator = (const AliAnaGammaJetFinder & source)
68 // assignment operator
70 if(this == &source)return *this;
71 ((AliAnaGammaCorrelation *)this)->operator=(source);
72 fhDeltaEtaJet = source.fhDeltaEtaJet;
73 fhDeltaPhiJet = source.fhDeltaPhiJet;
74 fhDeltaPtJet = source.fhDeltaPtJet;
75 fhPtRatJet = source.fhPtRatJet;
81 //____________________________________________________________________________
82 AliAnaGammaJetFinder::~AliAnaGammaJetFinder()
85 delete fhDeltaEtaJet ;
86 delete fhDeltaPhiJet ;
93 //________________________________________________________________________
94 TList * AliAnaGammaJetFinder::GetCreateOutputObjects()
96 // Create histograms to be saved in output file and
97 // store them in fOutputContainer
99 AliDebug(1,"Init jet histograms");
101 TList * outputContainer = new TList() ;
102 outputContainer->SetName("GammaJetHistos") ;
105 fhDeltaPhiJet = new TH2F
106 ("DeltaPhiJet","#phi_{#gamma} - #phi_{jet} vs p_{T #gamma}",
107 200,0,120,200,0,6.4);
108 fhDeltaPhiJet->SetYTitle("#Delta #phi");
109 fhDeltaPhiJet->SetXTitle("p_{T #gamma} (GeV/c)");
110 outputContainer->Add(fhDeltaPhiJet);
112 fhDeltaEtaJet = new TH2F
113 ("DeltaEtaJet","#eta_{#gamma} - #eta_{jet} vs p_{T #gamma}",
115 fhDeltaEtaJet->SetYTitle("#Delta #eta");
116 fhDeltaEtaJet->SetXTitle("p_{T #gamma} (GeV/c)");
117 outputContainer->Add(fhDeltaEtaJet);
119 fhDeltaPtJet = new TH2F
120 ("DeltaPtJet","#p_{T #gamma} - #p_{T jet} vs p_{T #gamma}",
121 200,0,120,100,-10,10);
122 fhDeltaPtJet->SetYTitle("#Delta #p_{T}");
123 fhDeltaPtJet->SetXTitle("p_{T #gamma} (GeV/c)");
124 outputContainer->Add(fhDeltaPtJet);
126 fhPtRatJet = new TH2F
127 ("PtRatJet","#p_{T jet} / #p_{T #gamma} vs p_{T #gamma}",
129 fhPtRatJet->SetYTitle("ratio");
130 fhPtRatJet->SetXTitle("p_{T #gamma} (GeV/c)");
131 outputContainer->Add(fhPtRatJet);
133 SetOutputContainer(outputContainer);
135 return outputContainer;
138 //____________________________________________________________________________
139 void AliAnaGammaJetFinder::InitParameters()
142 //Initialize the parameters of the analysis.
148 //__________________________________________________________________
149 void AliAnaGammaJetFinder::Print(const Option_t * opt) const
152 //Print some relevant parameters set for the analysis
158 //__________________________________________________________________
159 void AliAnaGammaJetFinder::MakeGammaCorrelation(TParticle * pGamma, TClonesArray *pl, TClonesArray *)
161 //Gamma -Jet Correlation Analysis
162 AliDebug(2, "Begin jet analysis");
163 AliInfo("Not implemented");