]> git.uio.no Git - u/mrichter/AliRoot.git/blob - PWGGA/GammaConv/ConvCorrelations/AliAnaConvCorrPionJet.cxx
Transition PWG4 --> PWGGA
[u/mrichter/AliRoot.git] / PWGGA / GammaConv / ConvCorrelations / AliAnaConvCorrPionJet.cxx
1 /**************************************************************************
2  * This file is property of and copyright by the ALICE HLT Project        *
3  * ALICE Experiment at CERN, All rights reserved.                         *
4  *                                                                        *
5  * Primary Author: Svein Lindal <slindal@fys.uio.no>                      *
6  *                                                                        *
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  **************************************************************************/
15
16 /// @file   AliAnaConvCorrPion.cxx
17 /// @author Svein Lindal
18 /// @brief  Class used to fill calculate correlation between photons - jets
19
20 #include "AliAnaConvCorrPionJet.h"
21 #include "AliAODTrack.h"
22 #include "TClonesArray.h"
23 #include "AliAODConversionParticle.h"
24 #include "AliAODJet.h"
25
26 #include <iostream>
27 // Gamma - jet correlation analysis task
28 // Authors: Svein Lindal
29
30
31 using namespace std;
32 ClassImp(AliAnaConvCorrPionJet)
33
34 //________________________________________________________________________________
35 AliAnaConvCorrPionJet::AliAnaConvCorrPionJet() :
36 AliAnaConvCorrBase("PionJet", "Pion Jet") {
37   //consctructor
38 }
39 //________________________________________________________________________________
40 AliAnaConvCorrPionJet::AliAnaConvCorrPionJet(TString name) :
41   AliAnaConvCorrBase(name, "Pion Jet") {
42   //consctructor
43 }
44
45
46 //________________________________________________________________________________
47 AliAnaConvCorrPionJet::~AliAnaConvCorrPionJet() {
48   //destructor
49 }
50
51 ///_______________________________________________________________________________
52 void AliAnaConvCorrPionJet::CorrelateWithHadrons(const AliAODConversionParticle * const pion, const TClonesArray * const jets, const Bool_t isolated) {
53
54   FillTriggerCounters(pion, isolated);
55
56   //See header file for documentation
57   if (jets) {
58       
59     for(int ij = 0; ij < jets->GetEntriesFast(); ij++) {
60       AliAODJet * jet = dynamic_cast<AliAODJet*>(jets->At(ij));
61       if(jet) {
62                 //FillHistograms(pion->Pt(), jet->Pt(), GetDPhi(pion->Phi() - jet->Phi()), pion->Eta() - jet->Eta(), isolated);
63       }
64     }
65   }
66 }