]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
add new data members, move members to the correlation class to the base one, and...
authorgconesab <gustavo.conesa.balbastre@cern.ch>
Mon, 13 Oct 2014 17:37:39 +0000 (19:37 +0200)
committermorsch <andreas.morsch@cern.ch>
Tue, 14 Oct 2014 13:26:21 +0000 (15:26 +0200)
STEER/AOD/AliAODPWG4Particle.cxx
STEER/AOD/AliAODPWG4Particle.h
STEER/AOD/AliAODPWG4ParticleCorrelation.cxx
STEER/AOD/AliAODPWG4ParticleCorrelation.h

index fdce8d0ae5ea3687b55cc4e281ad40750c2d3e81..8e9293e031133c76c019b9f8283cb375ffd6059b 100755 (executable)
 /* $Id:   AliAODPWG4Particle.h $ */
 
 //-------------------------------------------------------------------------
-//     AOD class for photon and other particles storage and 
-//     correlation studies
-//     Author: Yves Schutz, CERN, Gustavo Conesa, INFN
+//     AOD objects class in use in the CaloTrackCorrelations
+//     analysis pacackge ($ALICE_ROOT/PWGGA/CaloTrackCorrelations)
+//
+//     Author: Gustavo Conesa Balbastre - CNRS-LPSC-Grenoble
 //-------------------------------------------------------------------------
 
 //-- ROOT system --
@@ -32,8 +33,12 @@ ClassImp(AliAODPWG4Particle)
 //______________________________________________________________________________
 AliAODPWG4Particle::AliAODPWG4Particle() :
 AliVParticle(),
-fMomentum(0),fPdg(-1), fTag(0), fBtag(-1), fLabel(-1), fCaloLabel(), fTrackLabel(),
-fDetector(""), fDisp(0), fTof(0), fCharged(0), fTagged(0), fBadDist(0), fFidArea(0), fInputFileIndex(0)
+fMomentum(0),fPdg(-1), fTag(0), fLabel(-1),
+fCaloLabel(), fTrackLabel(),fDetector(""), fDetectorTag(0),
+fDisp(0), fTof(0), fCharged(0), fDecayTag(-1),
+fBadDist(0), fNLM(0), fM02(0),
+fIsolated(0), fLeadingParticle(0),
+fTagged(0), fFidArea(0), fInputFileIndex(0),fBtag(-1)
 {
   // constructor
   fCaloLabel [0] = -1;
@@ -47,8 +52,12 @@ fDetector(""), fDisp(0), fTof(0), fCharged(0), fTagged(0), fBadDist(0), fFidArea
 //______________________________________________________________________________
 AliAODPWG4Particle::AliAODPWG4Particle(Double_t px, Double_t py, Double_t pz, Double_t e):
   AliVParticle(),
-  fMomentum(0),fPdg(-1), fTag(0), fBtag(-1), fLabel(-1),fCaloLabel(), fTrackLabel(),
-  fDetector(""), fDisp(0), fTof(0),fCharged(0), fTagged(0), fBadDist(0), fFidArea(0), fInputFileIndex(0)
+fMomentum(0),fPdg(-1), fTag(0), fLabel(-1),
+fCaloLabel(), fTrackLabel(),fDetector(""), fDetectorTag(0),
+fDisp(0), fTof(0), fCharged(0), fDecayTag(-1),
+fBadDist(0), fNLM(0), fM02(0),
+fIsolated(0), fLeadingParticle(0),
+fTagged(0), fFidArea(0), fInputFileIndex(0),fBtag(-1)
 {
   // constructor
   fMomentum = new TLorentzVector(px, py, pz, e);
@@ -64,8 +73,12 @@ AliAODPWG4Particle::AliAODPWG4Particle(Double_t px, Double_t py, Double_t pz, Do
 //______________________________________________________________________________
 AliAODPWG4Particle::AliAODPWG4Particle(TLorentzVector & p):
   AliVParticle(),
-  fMomentum(0),fPdg(-1), fTag(0), fBtag(-1), fLabel(-1),fCaloLabel(), fTrackLabel(),
-  fDetector(""), fDisp(0), fTof(0), fCharged(0), fTagged(0), fBadDist(0), fFidArea(0), fInputFileIndex(0)
+fMomentum(0),fPdg(-1), fTag(0), fLabel(-1),
+fCaloLabel(), fTrackLabel(),fDetector(""), fDetectorTag(0),
+fDisp(0), fTof(0), fCharged(0), fDecayTag(-1),
+fBadDist(0), fNLM(0), fM02(0),
+fIsolated(0), fLeadingParticle(0),
+fTagged(0), fFidArea(0), fInputFileIndex(0),fBtag(-1)
 {
   // constructor
   fMomentum = new TLorentzVector(p);
@@ -96,10 +109,11 @@ void AliAODPWG4Particle::Clear(const Option_t* /*opt*/)
 //______________________________________________________________________________
 AliAODPWG4Particle::AliAODPWG4Particle(const AliAODPWG4Particle& part) :
   AliVParticle(part),
-  fMomentum(0), fPdg(part.fPdg), fTag(part.fTag), fBtag(part.fBtag), fLabel(part.fLabel), 
-  fCaloLabel(), fTrackLabel(), fDetector(part.fDetector),fDisp(part.fDisp), 
-  fTof(part.fTof), fCharged(part.fCharged), fTagged(part.fTagged), fBadDist(part.fBadDist), 
-  fFidArea(part.fFidArea), fInputFileIndex(part.fInputFileIndex)
+  fMomentum(0), fPdg(part.fPdg), fTag(part.fTag), fLabel(part.fLabel),
+  fCaloLabel(), fTrackLabel(), fDetector(part.fDetector), fDetectorTag(part.fDetectorTag),
+  fDisp(part.fDisp), fTof(part.fTof), fCharged(part.fCharged), fDecayTag(part.fDecayTag),fBadDist(part.fBadDist),
+  fNLM(part.fNLM), fM02(part.fM02), fIsolated(part.fIsolated), fLeadingParticle(part.fLeadingParticle),
+  fTagged(part.fTagged), fFidArea(part.fFidArea), fInputFileIndex(part.fInputFileIndex),fBtag(part.fBtag)
 {
   // Copy constructor
   fMomentum = new TLorentzVector(*part.fMomentum);
@@ -112,57 +126,64 @@ AliAODPWG4Particle::AliAODPWG4Particle(const AliAODPWG4Particle& part) :
   fTrackLabel[3] = part.fTrackLabel[3];
 }
 
-//______________________________________________________________________________
-AliAODPWG4Particle& AliAODPWG4Particle::operator=(const AliAODPWG4Particle& part)
+//________________________________________________________________________________
+AliAODPWG4Particle& AliAODPWG4Particle::operator=(const AliAODPWG4Particle & part)
 {
   // Assignment operator
-  if(this!=&part) {
-    
+  if(this!=&part)
+  {
     fPdg   = part.fPdg;
     fTag   = part.fTag;
-    fBtag  = part.fBtag;
     fLabel = part.fLabel;
-       
+    
     fCaloLabel [0] = part.fCaloLabel[0];
     fCaloLabel [1] = part.fCaloLabel[1];
     fTrackLabel[0] = part.fTrackLabel[0];
     fTrackLabel[1] = part.fTrackLabel[1];
-       
+    
+    fDetectorTag = part.fDetectorTag;
     fDetector = part.fDetector;
-    fDisp     = part.fDisp; 
-    fTof      = part.fTof; 
-    fCharged  = part.fCharged; 
-       fTagged   = part.fTagged;
+    fDisp     = part.fDisp;
+    fTof      = part.fTof;
+    fCharged  = part.fCharged;
     fBadDist  = part.fBadDist;
-       fFidArea  = part.fFidArea;
-       fInputFileIndex =  part.fInputFileIndex;
-         
-    if (fMomentum ) delete fMomentum;  
+    fDecayTag = part.fDecayTag;
+    
+    fNLM      = part.fNLM;
+    fM02      = part.fM02;
+    fIsolated = part.fIsolated;
+    fLeadingParticle =part.fLeadingParticle;
+
+    fBtag     = part.fBtag;
+    fFidArea  = part.fFidArea;
+    fTagged   = part.fTagged;
+    fInputFileIndex =  part.fInputFileIndex;
+
+    if (fMomentum ) delete fMomentum;
     fMomentum = new TLorentzVector(*part.fMomentum);
   }
   
   return *this;
 }
 
-
 //_______________________________________________________________
 Bool_t AliAODPWG4Particle::IsPIDOK(const Int_t ipid, const Int_t pdgwanted) const{
   // returns true if particle satisfies given PID criterium
        switch(ipid){
-       case 0: return kTRUE ; //No PID at all
-       case 1: 
+    case 0: return kTRUE ; //No PID at all
+    case 1:
          {
-           if (fPdg == pdgwanted) return kTRUE; 
+           if (fPdg == pdgwanted) return kTRUE;
            else return kFALSE; //Overall PID calculated with bayesian methods.
          }
-       case 2: return fDisp ;   //only dispersion cut
-       case 3: return fTof ;    //Only TOF cut
-       case 4: return fCharged ;    //Only Charged cut
-       case 5: return fDisp && fTof ;  //Dispersion and TOF
-       case 6: return fDisp && fCharged ;  //Dispersion and Charged
-       case 7: return fTof  && fCharged ;  //TOF and Charged
-       case 8: return fDisp && fTof && fCharged ; // all 3 cuts
-       default: return kFALSE ; //Not known combination
+    case 2: return fDisp ;   //only dispersion cut
+    case 3: return fTof ;    //Only TOF cut
+    case 4: return fCharged ;    //Only Charged cut
+    case 5: return fDisp && fTof ;  //Dispersion and TOF
+    case 6: return fDisp && fCharged ;  //Dispersion and Charged
+    case 7: return fTof  && fCharged ;  //TOF and Charged
+    case 8: return fDisp && fTof && fCharged ; // all 3 cuts
+    default: return kFALSE ; //Not known combination
        }
 }
 
@@ -182,10 +203,12 @@ void AliAODPWG4Particle::Print(Option_t* /*option*/) const
   printf("PDG       : %d\n",fPdg);
   printf("Tag       : %d\n",fTag); 
   printf("Btag      : %d\n",fBtag);  
-  printf("Pi0 Tag   : %d\n",fTagged);  
+  printf("Pi0 Tag   : %d\n",fDecayTag);
   printf("Dist. to bad channel : %d\n",fBadDist);  
   printf("Fid Area  : %d\n",fFidArea);  
   printf("Input File Index : %d\n",fInputFileIndex);  
-  printf("Detector  : %s\n",fDetector.Data());
-  
+  printf("Detector  : %d\n",fDetectorTag);
+  if(fIsolated)        printf("Isolated! \n");
+  if(fLeadingParticle) printf("Leading! \n");
+
 }
index a3b0c2e8a442015dcf8c9daeac511903b1b1a05d..a7bfedf7f183fc0b305e077939a8aa2027a43f9e 100755 (executable)
@@ -6,9 +6,10 @@
 /* $Id: AliAODPWG4Particle.h  $ */
 
 //-------------------------------------------------------------------------
-//     Copy of AOD photon class, adapted for particle identification
-//     and correlations analysis
-//     Author: Yves Schutz, CERN, Gustavo Conesa, INFN
+//     AOD objects class in use in the CaloTrackCorrelations
+//     analysis pacackge ($ALICE_ROOT/PWGGA/CaloTrackCorrelations)
+//
+//     Author: Gustavo Conesa Balbastre - CNRS-LPSC-Grenoble
 //-------------------------------------------------------------------------
 
 //-- ROOT system --
@@ -28,23 +29,16 @@ class AliAODPWG4Particle : public AliVParticle {
   virtual ~AliAODPWG4Particle();
   virtual void Clear(const Option_t* /*opt*/);
 
-  AliAODPWG4Particle(const AliAODPWG4Particle& photon); 
-  AliAODPWG4Particle& operator=(const AliAODPWG4Particle& photon);
-
-  //enumerated type for various b-tags of electrons
-  enum btagTypes {kDVMTag0, kDVMTag1, kDVMTag2, kTransverseIPTag, kUnknownTag};
-
-  void SetBTagBit(Int_t &tag, const UInt_t set) const {
-    // Set bit of type set (btagTypes) in tag                                             
-    tag |= (1<<set) ;
-  }
-
-  Bool_t CheckBTagBit(const Int_t tag, const UInt_t test) const {
-    // Check if in fBtag the bit test (btagTypes) is set.                                   
-    if (tag & (1<<test) ) return  kTRUE ;
-    else return kFALSE ;
-  }
+  AliAODPWG4Particle (           const AliAODPWG4Particle& photon);
+  AliAODPWG4Particle & operator=(const AliAODPWG4Particle& photon);
 
+  // Main methods to recover kinematics or PID
+  TLorentzVector * Momentum() const                { return fMomentum ; }
+  virtual void     SetMomentum(TLorentzVector *lv) { fMomentum = lv   ; }
+  
+  Bool_t IsPIDOK(const Int_t ipid, const Int_t pdgwanted) const;
+  Double_t GetPairMass(AliAODPWG4Particle * p)const{ return (*(p->fMomentum)+*fMomentum).M(); }
+  
   // AliVParticle methods
   virtual Double_t Px()         const { return fMomentum->Px();      }
   virtual Double_t Py()         const { return fMomentum->Py();      }
@@ -59,9 +53,9 @@ class AliAODPWG4Particle : public AliVParticle {
   virtual Double_t M()          const { return fMomentum->M();       }
   virtual Double_t Eta()        const { return fMomentum->Eta();     }
   virtual Double_t Y()          const { return fMomentum->Rapidity();}
-  virtual Double_t Xv()         const {return -999.;} // put reasonable values here
-  virtual Double_t Yv()         const {return -999.;} //
-  virtual Double_t Zv()         const {return -999.;} //
+  virtual Double_t Xv()         const { return -999.;} // put reasonable values here
+  virtual Double_t Yv()         const { return -999.;} //
+  virtual Double_t Zv()         const { return -999.;} //
   virtual Bool_t   XvYvZv(Double_t x[3]) const { x[0] = Xv(); x[1] = Yv(); x[2] = Zv(); return kTRUE; }  
   virtual void     Print(Option_t* /*option*/) const;
   
@@ -69,69 +63,112 @@ class AliAODPWG4Particle : public AliVParticle {
   //Dummy
   virtual Short_t Charge()      const { return 0;}
   virtual const Double_t* PID() const { return NULL;}
+  Int_t   PdgCode() const {return 0;}
+  //
+
   //
+  // Specific getters
+  virtual Int_t   GetIdentifiedParticleType() const { return fPdg     ; }
+
+  virtual Int_t   GetLabel()             const { return fLabel        ; }
+  virtual Int_t   GetCaloLabel (Int_t i) const { return fCaloLabel[i] ; }
+  virtual Int_t   GetTrackLabel(Int_t i) const { return fTrackLabel[i]; }
+  virtual TString GetDetector()          const { return fDetector     ; }
+  virtual UInt_t  GetDetectorTag()       const { return fDetectorTag  ; }
+  virtual Bool_t  GetDispBit()           const { return fDisp         ; }
+  virtual Bool_t  GetTOFBit()            const { return fTof          ; }
+  virtual Bool_t  GetChargedBit()        const { return fCharged      ; }
+  virtual Int_t   DistToBad()            const { return fBadDist      ; }
+  virtual Int_t   GetInputFileIndex()    const { return fInputFileIndex ; }
+  virtual Int_t   GetFiducialArea()      const { return fFidArea      ; }
+
+  // Tags
+  virtual Int_t   GetTag()               const { return fTag          ; }
+  virtual Bool_t  IsTagged()             const { return fTagged       ; }
+  virtual Int_t   DecayTag()             const { return fDecayTag     ; }
+  virtual Bool_t  IsIsolated()           const { return fIsolated     ; }
+  virtual Bool_t  IsLeadingParticle()    const { return fLeadingParticle ; }
+
+  // Calorimeter specific param
+  virtual Int_t   GetNLM()               const { return fNLM          ; }
+  virtual Float_t GetM02()               const { return fM02          ; }
   
-  virtual Int_t   GetIdentifiedParticleType() const {return fPdg ; }
-  virtual Int_t   GetTag()               const {return fTag ; }
-  virtual Int_t   GetBtag()              const {return fBtag ; }
-  virtual Int_t   GetLabel()             const {return fLabel ; }
-  virtual Int_t   GetCaloLabel (Int_t i) const {return fCaloLabel[i] ; }
-  virtual Int_t   GetTrackLabel(Int_t i) const {return fTrackLabel[i] ; }
-  virtual TString GetDetector()          const {return fDetector ; }
-  virtual Bool_t  GetDispBit(void)       const {return fDisp ; }
-  virtual Bool_t  GetTOFBit(void)        const {return fTof ; }
-  virtual Bool_t  GetChargedBit(void)    const {return fCharged ; }
-  virtual Int_t   DistToBad()            const {return fBadDist ; } 
-  virtual Int_t   GetInputFileIndex()    const {return fInputFileIndex ; }
-  virtual Int_t   GetFiducialArea()      const {return fFidArea;}
-
-  virtual Bool_t   IsTagged()    const {return fTagged ; }
+  //
+  // Specific setters
+  virtual void SetIdentifiedParticleType(Int_t pdg) { fPdg = pdg ; }
+
   virtual void SetLabel(Int_t l)         { fLabel = l ; }
   virtual void SetCaloLabel (Int_t a, Int_t b) { fCaloLabel [0] = a; fCaloLabel [1] = b  ; }
   virtual void SetTrackLabel(Int_t a, Int_t b) { fTrackLabel[0] = a; fTrackLabel[1] = b  ; }
   virtual void SetTrackLabel(Int_t a, Int_t b, Int_t c, Int_t d) 
   { fTrackLabel[0] = a; fTrackLabel[1] = b  ; fTrackLabel[2] = c; fTrackLabel[3] = d; }
   
-  virtual void SetIdentifiedParticleType(Int_t pdg) { fPdg = pdg ; }
-  virtual void SetTag(Int_t tag)         { fTag = tag ; }
-  virtual void SetTagged(Bool_t tag)     { fTagged = tag ; }
-  virtual void SetBtag(Int_t tag)        { fBtag = tag ; }
-  virtual void SetDetector(TString d)    { fDetector = d ; }
-  virtual void SetDispBit(Bool_t disp)   { fDisp = disp ; } 
-  virtual void SetTOFBit(Bool_t tof)     { fTof = tof ;} 
-  virtual void SetChargedBit(Bool_t ch)  { fCharged = ch ; }
-  virtual void SetDistToBad(Int_t dist)  { fBadDist=dist ;} 
-  virtual void SetInputFileIndex(Int_t i){ fInputFileIndex = i;}
-  virtual void SetFiducialArea(Int_t a)  {fFidArea=a;}
-       
-  TLorentzVector * Momentum() const                { return fMomentum ; }
-  virtual void     SetMomentum(TLorentzVector *lv) { fMomentum = lv ; }
+  virtual void SetDetector(TString   d)  { fDetector    = d    ; }
+  virtual void SetDetectorTag(UInt_t d)  { fDetectorTag = d    ; }
+  virtual void SetDispBit(Bool_t disp)   { fDisp        = disp ; }
+  virtual void SetTOFBit(Bool_t tof)     { fTof         = tof  ; }
+  virtual void SetChargedBit(Bool_t ch)  { fCharged     = ch   ; }
+  virtual void SetDistToBad(Int_t dist)  { fBadDist     = dist ; }
+  virtual void SetInputFileIndex(Int_t i){ fInputFileIndex = i ; }
+  virtual void SetFiducialArea(Int_t a)  { fFidArea     = a    ; }
+
+  // Tags
+  virtual void SetTag(Int_t tag)         { fTag         = tag  ; }
+  virtual void SetTagged(Bool_t tag)     { fTagged      = tag  ; }
+  virtual void SetDecayTag(Int_t tag)    { fDecayTag    = tag  ; }
+  virtual void SetIsolated(Bool_t iso)   { fIsolated    = iso  ; }
+  virtual void SetLeadingParticle(Bool_t l) { fLeadingParticle = l ; }
   
-  Bool_t IsPIDOK(const Int_t ipid, const Int_t pdgwanted) const;
-  Double_t GetPairMass(AliAODPWG4Particle * p)const{ return (*(p->fMomentum)+*fMomentum).M(); }
-  // Dummy
-  Int_t    PdgCode() const {return 0;}
+  // Calorimeter specific param
+  virtual void SetNLM(UInt_t  nlm)       { fNLM         = nlm  ; }
+  virtual void SetM02(Float_t m02)       { fM02         = m02  ; }
+  
+  //
+  // BTagging
+  // enumerated type for various b-tags of electrons
+  enum btagTypes {kDVMTag0, kDVMTag1, kDVMTag2, kTransverseIPTag, kUnknownTag};
+  
+  virtual void  SetBtag(Int_t tag)      { fBtag        = tag  ; }
+  virtual Int_t GetBtag()         const { return fBtag        ; }
+
+  void SetBTagBit(Int_t &tag, const UInt_t set) const {
+    // Set bit of type set (btagTypes) in tag
+    tag |= (1<<set) ;
+  }
+  
+  Bool_t CheckBTagBit(const Int_t tag, const UInt_t test) const {
+    // Check if in fBtag the bit test (btagTypes) is set.
+    if (tag & (1<<test) ) return  kTRUE ;
+    else return kFALSE ;
+  }
   
  private:
-  TLorentzVector* fMomentum;  // Photon 4-momentum vector
+  TLorentzVector* fMomentum; // Photon 4-momentum vector
   Int_t      fPdg ;          // type of identified particle, same code as PDG, but this is not a MonteCarlo particle 
   Int_t      fTag ;          // tag of particle (decay, fragment, prompt photon), MC
-  Int_t      fBtag;          // tag particle from B.
   Int_t      fLabel ;        // MC label
   Int_t      fCaloLabel[2];  // CaloCluster index, 1 for photons, 2 for pi0.
   Int_t      fTrackLabel[4]; // Track lable, 1 for pions, 2 for conversion photons 
   TString    fDetector ;     // Detector where particle was measured.
+  UInt_t     fDetectorTag ;  // Detector where particle was measured, integer
   Bool_t     fDisp ;         // Dispersion bit
   Bool_t     fTof ;          // TOF bit
   Bool_t     fCharged ;      // Charged bit
-  Bool_t     fTagged ;       // If photon tagged (pi0 decay)
+  Int_t      fDecayTag;      // Tag the photon as decay from, pi0, eta, pi0 side band, eta side band
   Int_t      fBadDist ;      // Distance to bad module in module units
+  UInt_t     fNLM ;          // Store the number of local maxima
+  Float_t    fM02 ;          // Store the main axis of the calorimeter shower shape
+  Bool_t     fIsolated ;     // Particle is isolated or not
+  Bool_t     fLeadingParticle ; //Particle is leading or not
+
+  // Not in use currently ...
+  Bool_t     fTagged ;       // If photon tagged (pi0 decay), not used anymore, replace by fDecayTag
   Int_t      fFidArea ;      // Type of fiducial area hit by this photon
-  Int_t      fInputFileIndex;// 0, standard input, 1 first input added. 
-                                  // Only possible one for now, more in future?
-       
-  ClassDef(AliAODPWG4Particle, 4);
+  Int_t      fInputFileIndex;// 0, standard input, 1 first input added. Only possible one for now, not really used.
+  Int_t      fBtag;          // tag particle from B.
+
+  
+  ClassDef(AliAODPWG4Particle, 5);
 };
 
 inline Double_t AliAODPWG4Particle::Phi() const
index 462178e1f07243c028fbc3736f21357643407620..8e55b63a370ef7c69ce7f30f2b85836299c32567 100755 (executable)
 /* $Id:   AliAODPWG4ParticleCorrelation.h $ */
 
 //-------------------------------------------------------------------------
-//     AOD class for photon and other particles storage and 
-//     correlation studies
-//     Author: Yves Schutz, CERN, Gustavo Conesa, INFN
+//     AOD objects class in use in the CaloTrackCorrelations
+//     analysis pacackge ($ALICE_ROOT/PWGGA/CaloTrackCorrelations)
+//     Includes correlation objects
+//
+//     Author: Gustavo Conesa Balbastre - CNRS-LPSC-Grenoble
 //-------------------------------------------------------------------------
 
 //-- ROOT system --
@@ -32,8 +34,7 @@ ClassImp(AliAODPWG4ParticleCorrelation)
 
 //______________________________________________________________________________
  AliAODPWG4ParticleCorrelation::AliAODPWG4ParticleCorrelation() :
-   AliAODPWG4Particle(), fIsolated(kFALSE),
-   fLeadingParticle(kTRUE),
+   AliAODPWG4Particle(),
    fLeadingDetector(""), fLeading(), fCorrJet(),  fCorrBkg(), fRefJet(0),
    fListOfObjArrays(0)
 {
@@ -42,8 +43,7 @@ ClassImp(AliAODPWG4ParticleCorrelation)
 
 //______________________________________________________________________________
 AliAODPWG4ParticleCorrelation::AliAODPWG4ParticleCorrelation(Double_t px, Double_t py, Double_t pz, Double_t e):
-  AliAODPWG4Particle(), fIsolated(kFALSE),
-  fLeadingParticle(kTRUE),
+  AliAODPWG4Particle(),
   fLeadingDetector(""),  fLeading(), fCorrJet(),
   fCorrBkg(), fRefJet(0),  fListOfObjArrays(new TList)
 {
@@ -55,9 +55,8 @@ 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)
+  AliAODPWG4Particle(p),
+  fLeadingDetector(""),  fLeading(), fCorrJet(), fCorrBkg(), fRefJet(0), fListOfObjArrays(new TList)
 {
   // constructor
   fListOfObjArrays->SetOwner(kTRUE);
@@ -66,9 +65,8 @@ AliAODPWG4ParticleCorrelation::AliAODPWG4ParticleCorrelation(TLorentzVector & p)
 
 //______________________________________________________________________________
 AliAODPWG4ParticleCorrelation::AliAODPWG4ParticleCorrelation(AliAODPWG4Particle & p):
-  AliAODPWG4Particle(p), fIsolated(kFALSE),
-  fLeadingParticle(kTRUE),
-  fLeadingDetector(""),  fLeading(), fCorrJet(), fCorrBkg(),fRefJet(0),   fListOfObjArrays(new TList)
+  AliAODPWG4Particle(p),
+  fLeadingDetector(""),  fLeading(), fCorrJet(), fCorrBkg(),fRefJet(0), fListOfObjArrays(new TList)
 {
   // constructor
   fListOfObjArrays->SetOwner(kTRUE);
@@ -101,9 +99,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),  
+  AliAODPWG4Particle(part), fLeadingDetector(part.fLeadingDetector), fLeading(part.fLeading),  
   fCorrJet(part.fCorrJet), fCorrBkg(part.fCorrBkg), fRefJet(part.fRefJet),   
   fListOfObjArrays(new TList)
 {
@@ -116,10 +112,8 @@ AliAODPWG4ParticleCorrelation::AliAODPWG4ParticleCorrelation(const AliAODPWG4Par
 //{
 //  // Assignment operator
 //  if(this!=&part) {
-//  
-//    fIsolated = part.fIsolated;
+//
 //    fRefJet   = part.fRefJet ;
-//    fLeadingDetector =part.fLeadingDetector;
 //    fLeading  = part.fLeading;
 //    fCorrJet  = part.fCorrJet ;
 //    fCorrBkg  = part.fCorrBkg; 
@@ -136,8 +130,6 @@ void AliAODPWG4ParticleCorrelation::Print(Option_t* /*option*/) const
   // Print information of all data members
   AliAODPWG4Particle::Print("");
 
-  if(fIsolated) printf("Isolated! \n");
-
   if(GetJet()) GetJet()->Print("");
 
   printf("Leading Detector : %s\n",fLeadingDetector.Data());
index a57d7d322022a4fa13e0ffa314066ff55f843722..e5862e6431454536f85e61af5dd345c182d13366 100755 (executable)
@@ -6,9 +6,11 @@
 /* $Id: AliAODPWG4ParticleCorrelation.h  $ */
 
 //-------------------------------------------------------------------------
-//     Copy of AOD photon class, adapted for particle identification
-//     and correlations analysis
-//     Author: Yves Schutz, CERN, Gustavo Conesa, INFN
+//     AOD objects class in use in the CaloTrackCorrelations
+//     analysis pacackge ($ALICE_ROOT/PWGGA/CaloTrackCorrelations)
+//     Includes correlation objects
+//
+//     Author: Gustavo Conesa Balbastre - CNRS-LPSC-Grenoble
 //-------------------------------------------------------------------------
 
 //-- ROOT system --
@@ -57,16 +59,9 @@ public:
   virtual      AliAODJet* GetJet() const {return ((AliAODJet*) fRefJet.GetObject());}
   virtual TRef GetRefJet()         const {return fRefJet;}
   
-  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         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
@@ -74,7 +69,7 @@ public:
   TRef           fRefJet;           // Reference to jet found with JETAN and correlated with particle
   TList   *      fListOfObjArrays ; // List with correlation reference arrays
   
-  ClassDef(AliAODPWG4ParticleCorrelation, 4);
+  ClassDef(AliAODPWG4ParticleCorrelation, 5);
 };