]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
The track number and track pid associated with the cluster are included
authorhristov <hristov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 2 Jun 2009 15:43:36 +0000 (15:43 +0000)
committerhristov <hristov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 2 Jun 2009 15:43:36 +0000 (15:43 +0000)
for PMD efficiency and purity calculation.

Basanta

PMD/AliPMDtracker.cxx
STEER/AliESDPmdTrack.h

index 6ef863d7ea6cd16cecc03676e37f494535f33e10..a923a37cd316825f7a47c1a68de1d9358ec53478 100644 (file)
@@ -295,12 +295,19 @@ void AliPMDtracker::Clusters2Tracks(AliESDEvent *event)
       AliESDPmdTrack *esdpmdtr = new  AliESDPmdTrack();
 
       esdpmdtr->SetDetector(det);
+      esdpmdtr->SetSmn(smn);
+      esdpmdtr->SetClusterTrackNo(trno);
+      esdpmdtr->SetClusterTrackPid(trpid);
+      esdpmdtr->SetClusterMatching(mstat);
+      
       esdpmdtr->SetClusterX(xglobal);
       esdpmdtr->SetClusterY(yglobal);
       esdpmdtr->SetClusterZ(zglobal);
       esdpmdtr->SetClusterADC(adc);
       esdpmdtr->SetClusterCells(ncell);
       esdpmdtr->SetClusterPID(pid);
+      esdpmdtr->SetClusterSigmaX(radx);
+      esdpmdtr->SetClusterSigmaY(rady);
 
       event->AddPmdTrack(esdpmdtr);
     }
index 94d38abf0ca6d3eaf3c2456be1fdac2c74b9b85a..8c8351cf24d6b7b19c3e1445c640f6fa79a019ad 100644 (file)
@@ -28,14 +28,26 @@ class AliESDPmdTrack : public TObject {
   void SetClusterADC(Float_t cluadc) {fCluADC = cluadc;}
   void SetClusterCells(Float_t ncell) {fNcell = (UChar_t)ncell;}
   void SetClusterPID(Float_t clupid) {fCluPID = clupid;}
+  void SetSmn(Int_t smn) {fSmn = smn;}
+  void SetClusterTrackNo(Int_t trno) {fTrackNo = trno;}
+  void SetClusterTrackPid(Int_t trpid) {fTrackPid = trpid;}
+  void SetClusterMatching(UShort_t mstat) {fClMatching = mstat;}
+  void SetClusterSigmaX(Float_t sigx) {fSigX = sigx;}
+  void SetClusterSigmaY(Float_t sigy) {fSigY = sigy;}
 
   Double_t GetClusterX() const {return fX;}
   Double_t GetClusterY() const {return fY;}
   Double_t GetClusterZ() const {return fZ;}
   Double_t GetClusterADC() const {return fCluADC;}
   Double_t GetClusterPID() const {return fCluPID;}
-  UChar_t GetClusterCells() const {return fNcell;}
-  UChar_t   GetDetector() const {return fDet;}
+  UChar_t  GetClusterCells() const {return fNcell;}
+  UChar_t  GetDetector() const {return fDet;}
+  Int_t    GetSmn() const {return fSmn;}
+  Int_t    GetClusterTrackNo() const {return fTrackNo;}
+  Int_t    GetClusterTrackPid() const {return fTrackPid;}
+  UShort_t GetClusterMatching() const {return fClMatching;}
+  Double_t GetClusterSigmaX() const {return fSigX;}
+  Double_t GetClusterSigmaY() const {return fSigY;}
   
   
  protected:
@@ -45,10 +57,16 @@ class AliESDPmdTrack : public TObject {
   Double32_t fZ;      // Cluster Z position (vertex uncorrected)
   Double32_t fCluADC; // Cluster Energy in ADC
   Double32_t fCluPID; //[0.,1.,8] Cluster probability, 1: Photon, 0: Hadron
-  UChar_t fDet;      // Detector, 0:PRE, 1:CPV
-  UChar_t fNcell;  // Cluster cells
+  UChar_t    fDet;    // Detector, 0:PRE, 1:CPV
+  UChar_t    fNcell;  // Cluster cells
+  Int_t      fSmn;    // Serial module number
+  Int_t      fTrackNo; // Track number assigned to the clus from simulation
+  Int_t      fTrackPid; // Track pid assigned to clus from simulation
+  UShort_t   fClMatching; // Cluster of PRE matching with CPV
+  Double32_t fSigX;       // Cluster x-width
+  Double32_t fSigY;       // Cluster y-width
 
-  ClassDef(AliESDPmdTrack,4)  //PMD ESD track class 
+  ClassDef(AliESDPmdTrack,5)  //PMD ESD track class 
 
 };