]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Added to PHOS AliCaloPhoton.h, functionality for having it remember originating cluster.
authorhqvigsta <hqvigsta@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 9 Apr 2013 15:17:27 +0000 (15:17 +0000)
committerhqvigsta <hqvigsta@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 9 Apr 2013 15:17:27 +0000 (15:17 +0000)
PWGGA/PHOSTasks/PHOS_pp_pi0/AliCaloPhoton.h

index 41e012d7062d1e70967f8a4c07f999b77becb678..cd9f7db789b92b8c054ec27828f11b2428429768 100644 (file)
@@ -13,6 +13,7 @@
 // calculate invarint mass distr for pi0
 // and for tagging and isolation analysis
 
+class AliVCluster;
 
 #include "TLorentzVector.h"
 
@@ -85,6 +86,9 @@ class AliCaloPhoton :public TLorentzVector{
    void SetUnfolded(Bool_t wasNotUnfolded){fUnfolded=wasNotUnfolded;} 
    void SetWeight(Double_t w){fWeight=w;}
 
+   void SetCluster(AliVCluster* cluster) { fCluster = cluster; }
+   AliVCluster* GetCluster() { return fCluster; }
+
    void SetLambdas(Double_t l1,Double_t l2){fLambda0=l1; fLambda1=l2;}
    Double_t GetLambda1(void){return fLambda0;}
    Double_t GetLambda2(void){return fLambda1;}
@@ -120,8 +124,9 @@ private:
   Double_t  fPartnerPt;
   Double_t  fWeight ;   //Weight of parent particle
   Int_t     fPrimary;   //Primary label
+  AliVCluster* fCluster; //! Originating Cluster the Photon Candidate is based on
 
-  ClassDef(AliCaloPhoton,3)
+  ClassDef(AliCaloPhoton,4);
 
 };