1 /**************************************************************************
2 * This file is property of and copyright by the ALICE HLT Project *
3 * ALICE Experiment at CERN, All rights reserved. *
5 * Primary Author: Svein Lindal <slindal@fys.uio.no> *
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 **************************************************************************/
16 /// @file AliAnaConvCorrPhoton.cxx
17 /// @author Svein Lindal
18 /// @brief Class used to fill calculate correlation between photons - jets
20 #include "AliAnaConvCorrPhotonJet.h"
21 #include "AliAODTrack.h"
22 #include "TClonesArray.h"
23 #include "AliAODConversionParticle.h"
24 #include "AliAODJet.h"
27 // Gamma - jet correlation analysis task
28 // Authors: Svein Lindal
32 ClassImp(AliAnaConvCorrPhotonJet)
34 //________________________________________________________________________________
35 AliAnaConvCorrPhotonJet::AliAnaConvCorrPhotonJet() :
36 AliAnaConvCorrBase("photonJet") {
39 //________________________________________________________________________________
40 AliAnaConvCorrPhotonJet::AliAnaConvCorrPhotonJet(TString name) :
41 AliAnaConvCorrBase(name) {
46 //________________________________________________________________________________
47 AliAnaConvCorrPhotonJet::~AliAnaConvCorrPhotonJet() {
51 ///_______________________________________________________________________________
52 void AliAnaConvCorrPhotonJet::CorrelateWithHadrons(const AliAODConversionParticle * const photon, const TClonesArray * const tracks, const Bool_t isolated) {
54 //See header file for documentation
57 for(int ij = 0; ij < tracks->GetEntriesFast(); ij++) {
58 AliAODJet * jet = dynamic_cast<AliAODJet*>(tracks->At(ij));
60 FillHistograms(photon->Pt(), jet->Pt(), GetDPhi(photon->Phi() - jet->Phi()), photon->Eta() - jet->Eta(), isolated);