New data member (Renaud)
authorhristov <hristov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 23 Mar 2011 08:37:08 +0000 (08:37 +0000)
committerhristov <hristov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 23 Mar 2011 08:37:08 +0000 (08:37 +0000)
STEER/AliAODPWG4ParticleCorrelation.cxx
STEER/AliAODPWG4ParticleCorrelation.h

index 3133d97..f387f5d 100755 (executable)
@@ -33,6 +33,7 @@ ClassImp(AliAODPWG4ParticleCorrelation)
 //______________________________________________________________________________
  AliAODPWG4ParticleCorrelation::AliAODPWG4ParticleCorrelation() :
    AliAODPWG4Particle(), fIsolated(kFALSE),
+   fLeadingParticle(kTRUE),
    fLeadingDetector(""), fLeading(), fCorrJet(),  fCorrBkg(), fRefJet(0),
    fListOfObjArrays(new TList)
 {
@@ -43,6 +44,7 @@ ClassImp(AliAODPWG4ParticleCorrelation)
 //______________________________________________________________________________
 AliAODPWG4ParticleCorrelation::AliAODPWG4ParticleCorrelation(Double_t px, Double_t py, Double_t pz, Double_t e):
   AliAODPWG4Particle(), fIsolated(kFALSE),
+  fLeadingParticle(kTRUE),
   fLeadingDetector(""),  fLeading(), fCorrJet(),
   fCorrBkg(), fRefJet(0),  fListOfObjArrays(new TList)
 {
@@ -55,6 +57,7 @@ AliAODPWG4ParticleCorrelation::AliAODPWG4ParticleCorrelation(Double_t px, Double
 //______________________________________________________________________________
 AliAODPWG4ParticleCorrelation::AliAODPWG4ParticleCorrelation(TLorentzVector & p):
   AliAODPWG4Particle(p), fIsolated(kFALSE),
+  fLeadingParticle(kTRUE),
   fLeadingDetector(""),  fLeading(), fCorrJet(), fCorrBkg(), fRefJet(0),  fListOfObjArrays(new TList)
 {
   // constructor
@@ -65,6 +68,7 @@ AliAODPWG4ParticleCorrelation::AliAODPWG4ParticleCorrelation(TLorentzVector & p)
 //______________________________________________________________________________
 AliAODPWG4ParticleCorrelation::AliAODPWG4ParticleCorrelation(AliAODPWG4Particle & p):
   AliAODPWG4Particle(p), fIsolated(kFALSE),
+  fLeadingParticle(kTRUE),
   fLeadingDetector(""),  fLeading(), fCorrJet(), fCorrBkg(),fRefJet(0),   fListOfObjArrays(new TList)
 {
   // constructor
@@ -99,6 +103,7 @@ void AliAODPWG4ParticleCorrelation::Clear(const Option_t* /*opt*/)
 //______________________________________________________________________________
 AliAODPWG4ParticleCorrelation::AliAODPWG4ParticleCorrelation(const AliAODPWG4ParticleCorrelation& part) :
   AliAODPWG4Particle(part), fIsolated(part.fIsolated),
+  fLeadingParticle(part.fLeadingParticle),
   fLeadingDetector(part.fLeadingDetector), fLeading(part.fLeading),  
   fCorrJet(part.fCorrJet), fCorrBkg(part.fCorrBkg), fRefJet(part.fRefJet),   
   fListOfObjArrays(new TList)
index b4fa598..a57d7d3 100755 (executable)
@@ -60,10 +60,13 @@ public:
   virtual Bool_t IsIsolated() const      { return fIsolated ; }
   virtual void   SetIsolated(Bool_t iso) { fIsolated = iso ; }
 
+  virtual Bool_t IsLeadingParticle() const                { return fLeadingParticle ; }
+  virtual void   SetLeadingParticle(Bool_t leadPart)      { fLeadingParticle = leadPart ; }
   virtual void   Print(Option_t* /*option*/) const;
   
  private:
-  Bool_t         fIsolated ;        //Particle is isolated or not  
+  Bool_t         fIsolated ;         //Particle is isolated or not 
+  Bool_t         fLeadingParticle ; //Particle is leading or not 
   TString        fLeadingDetector;  // Detector where leading particle was measured.
   TLorentzVector fLeading;          // Leading Particle 4-momentum vector
   TLorentzVector fCorrJet;          // Jet  4-momentum vector
@@ -71,7 +74,7 @@ public:
   TRef           fRefJet;           // Reference to jet found with JETAN and correlated with particle
   TList   *      fListOfObjArrays ; // List with correlation reference arrays
   
-  ClassDef(AliAODPWG4ParticleCorrelation, 3);
+  ClassDef(AliAODPWG4ParticleCorrelation, 4);
 };