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 // Base class for the analysis of gamma correlations
28 //*-- Author: Gustavo Conesa (LNF-INFN)
29 //////////////////////////////////////////////////////////////////////////////
32 // --- ROOT system ---
34 #include <TParticle.h>
37 //---- AliRoot system ----
38 #include "AliAnaGammaCorrelation.h"
39 #include "AliNeutralMesonSelection.h"
40 #include "Riostream.h"
43 ClassImp(AliAnaGammaCorrelation)
46 //____________________________________________________________________________
47 AliAnaGammaCorrelation::AliAnaGammaCorrelation() :
48 TObject(), fOutputContainer(0x0),
49 fNeutralMesonSelection(0x0), fCorrelationType(0),
52 fDeltaPhiMaxCut(0.), fDeltaPhiMinCut(0.),
53 fRatioMaxCut(0.), fRatioMinCut(0.)
57 //Initialize parameters
59 if(!fNeutralMesonSelection)
60 fNeutralMesonSelection = new AliNeutralMesonSelection();
62 //Initialize parameters
66 //____________________________________________________________________________
67 AliAnaGammaCorrelation::AliAnaGammaCorrelation(const AliAnaGammaCorrelation & g) :
68 TObject(), fOutputContainer(g.fOutputContainer),
69 fNeutralMesonSelection(g.fNeutralMesonSelection),
70 fCorrelationType(g.fCorrelationType),
71 fJetsOnlyInCTS(g.fJetsOnlyInCTS),
72 fMinPtHadron(g.fMinPtHadron),
73 fDeltaPhiMaxCut(g.fDeltaPhiMaxCut), fDeltaPhiMinCut(g.fDeltaPhiMinCut),
74 fRatioMaxCut(g.fRatioMaxCut), fRatioMinCut(g.fRatioMinCut)
80 //_________________________________________________________________________
81 AliAnaGammaCorrelation & AliAnaGammaCorrelation::operator = (const AliAnaGammaCorrelation & source)
83 // assignment operator
85 if(this == &source)return *this;
86 ((TObject *)this)->operator=(source);
88 fOutputContainer = source.fOutputContainer;
89 fNeutralMesonSelection = source.fNeutralMesonSelection ;
90 fCorrelationType = source.fCorrelationType;
91 fJetsOnlyInCTS = source.fJetsOnlyInCTS ;
93 fMinPtHadron = source.fMinPtHadron ;
94 fDeltaPhiMaxCut = source.fDeltaPhiMaxCut ; fDeltaPhiMinCut = source.fDeltaPhiMinCut ;
95 fRatioMaxCut = source.fRatioMaxCut ; fRatioMinCut = source.fRatioMinCut ;
103 //____________________________________________________________________________
104 AliAnaGammaCorrelation::~AliAnaGammaCorrelation()
106 // Remove all pointers
107 fOutputContainer->Clear();
108 delete fOutputContainer;
110 delete fNeutralMesonSelection ;
114 //____________________________________________________________________________
115 void AliAnaGammaCorrelation::InitParameters()
118 //Initialize the parameters of the analysis.
119 fCorrelationType = kHadron ;
120 //-----------kHadron----------------
122 //-----------kHadron & kJetLeadCone----------------
123 fJetsOnlyInCTS = kFALSE ;
124 fDeltaPhiMaxCut = 4.5;
125 fDeltaPhiMinCut = 1.5 ;
126 //-----------kJetLeadCone----------------
132 //__________________________________________________________________
133 void AliAnaGammaCorrelation::Print(const Option_t * opt) const
136 //Print some relevant parameters set for the analysis
140 Info("Print", "%s %s", GetName(), GetTitle() ) ;
141 printf("Correlation = %d\n", fCorrelationType) ;
143 printf("pT Hadron > %f\n", fMinPtHadron) ;
144 printf("Phi gamma-Hadron < %f\n", fDeltaPhiMaxCut) ;
145 printf("Phi gamma-Hadron > %f\n", fDeltaPhiMinCut) ;
146 printf("Ratio pt hadron/gamma < %f\n", fRatioMaxCut) ;
147 printf("Ratio pt hadron/gamma > %f\n", fRatioMinCut) ;