]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Removed obsolete data members and function (Used before for performance study) ...
authormarian <marian@f7af4fe6-9843-0410-8265-dc069ae4e863>
Sat, 12 Apr 2008 13:09:39 +0000 (13:09 +0000)
committermarian <marian@f7af4fe6-9843-0410-8265-dc069ae4e863>
Sat, 12 Apr 2008 13:09:39 +0000 (13:09 +0000)
void RebuildSeed(); // rebuild seed to be ready for storing
-     void SetPoints(TClonesArray* p) {fPoints=p;}
-     void SetEPoints(TClonesArray* p) {fEPoints=p;}
-     TClonesArray * fPoints;              //!array with points along the track
-     TClonesArray * fEPoints;             //! array with exact points - calculated in special macro not used in tracking

TPC/AliTPCseed.cxx
TPC/AliTPCseed.h

index df1f9f2b1ef25162589f9e52af088d9f0d9cad37..b7eeb526f2ddac6b2ff236779d6757f96db4e8e9 100644 (file)
@@ -34,8 +34,6 @@ AliTPCseed::AliTPCseed():
   AliTPCtrack(),
   fEsd(0x0),
   fClusterOwner(kFALSE),
-  fPoints(0x0),
-  fEPoints(0x0),
   fRow(0),
   fSector(-1),
   fRelativeSector(-1),
@@ -80,8 +78,6 @@ AliTPCseed::AliTPCseed(const AliTPCseed &s, Bool_t clusterOwner):
   AliTPCtrack(s),
   fEsd(0x0),
   fClusterOwner(clusterOwner),
-  fPoints(0x0),
-  fEPoints(0x0),
   fRow(0),
   fSector(-1),
   fRelativeSector(-1),
@@ -133,8 +129,6 @@ AliTPCseed::AliTPCseed(const AliTPCtrack &t):
   AliTPCtrack(t),
   fEsd(0x0),
   fClusterOwner(kFALSE),
-  fPoints(0x0),
-  fEPoints(0x0),
   fRow(0),
   fSector(-1),
   fRelativeSector(-1),
@@ -191,8 +185,6 @@ AliTPCseed::AliTPCseed(Double_t xr, Double_t alpha, const Double_t xx[5],
   AliTPCtrack(xr, alpha, xx, cc, index),
   fEsd(0x0),
   fClusterOwner(kFALSE),
-  fPoints(0x0),
-  fEPoints(0x0),
   fRow(0),
   fSector(-1),
   fRelativeSector(-1),
@@ -233,10 +225,6 @@ AliTPCseed::AliTPCseed(Double_t xr, Double_t alpha, const Double_t xx[5],
 AliTPCseed::~AliTPCseed(){
   //
   // destructor
-  if (fPoints) delete  fPoints;
-  fPoints =0;
-  if (fEPoints) delete  fEPoints;
-  fEPoints = 0;
   fNoCluster =0;
   if (fClusterOwner){
     for (Int_t icluster=0; icluster<160; icluster++){
@@ -258,8 +246,6 @@ AliTPCseed & AliTPCseed::operator=(const AliTPCseed &param)
     fClusterOwner = param.fClusterOwner;
     // leave out fPoint, they are also not copied in the copy ctor...
     // but deleted in the dtor... strange...
-    // fPoints =
-    // fEPoints =
     fRow            = param.fRow;
     fSector         = param.fSector;
     fRelativeSector = param.fRelativeSector;
@@ -301,30 +287,6 @@ AliTPCTrackerPoint * AliTPCseed::GetTrackPoint(Int_t i)
   return &fTrackPoints[i];
 }
 
-void AliTPCseed::RebuildSeed()
-{
-  //
-  // rebuild seed to be ready for storing
-  AliTPCclusterMI cldummy;
-  cldummy.SetQ(0);
-  AliTPCTrackPoint pdummy;
-  pdummy.GetTPoint().SetShared(10);
-  for (Int_t i=0;i<160;i++){
-    AliTPCclusterMI * cl0 = fClusterPointer[i];
-    AliTPCTrackPoint *trpoint = (AliTPCTrackPoint*)fPoints->UncheckedAt(i);     
-    if (cl0){
-      trpoint->GetTPoint() = *(GetTrackPoint(i));
-      trpoint->GetCPoint() = *cl0;
-      trpoint->GetCPoint().SetQ(TMath::Abs(cl0->GetQ()));
-    }
-    else{
-      *trpoint = pdummy;
-      trpoint->GetCPoint()= cldummy;
-    }
-    
-  }
-
-}
 
 
 Double_t AliTPCseed::GetDensityFirst(Int_t n)
@@ -563,7 +525,6 @@ Float_t AliTPCseed::CookdEdx(Double_t low, Double_t up,Int_t i1, Int_t i2, Bool_
   Float_t weight[200];
   Int_t index[200];
   //Int_t nc = 0;
-  //  TClonesArray & arr = *fPoints; 
   Float_t meanlog = 100.;
   
   Float_t mean[4]  = {0,0,0,0};
index 2184e8aa8f34737198c9a77e8bdcd7d303ce5320..1eb805317706dd04aa9f870ea8fdeeaf5744576c 100644 (file)
@@ -46,7 +46,6 @@ class AliTPCseed : public AliTPCtrack {
      AliTPCTrackerPoint * GetTrackPoint(Int_t i);
      AliTPCclusterMI * GetClusterFast(Int_t irow){ return fClusterPointer[irow];}
      void SetClusterPointer(Int_t irow, AliTPCclusterMI* cl) {fClusterPointer[irow]=cl;}
-     void RebuildSeed(); // rebuild seed to be ready for storing
      Double_t GetDensityFirst(Int_t n);
      Double_t GetSigma2C() const {
        Double_t cnv=GetBz()*kB2C;
@@ -104,8 +103,6 @@ class AliTPCseed : public AliTPCtrack {
      void SetSector(Int_t n) {fSector=n;}
      void SetCurrentClusterIndex1(Int_t n) {fCurrentClusterIndex1=n;}
      void SetInDead(Bool_t s) {fInDead=s;}
-     void SetPoints(TClonesArray* p) {fPoints=p;}
-     void SetEPoints(TClonesArray* p) {fEPoints=p;}
 
      Double_t TPCrPID(Int_t i) const {return fTPCr[i];}
      Double_t* TPCrPIDs() {return fTPCr;}
@@ -143,8 +140,6 @@ class AliTPCseed : public AliTPCtrack {
      AliESDtrack * fEsd; //!
      AliTPCclusterMI*   fClusterPointer[160];  // array of cluster pointers  - 
      Bool_t             fClusterOwner;         // indicates the track is owner of cluster
-     TClonesArray * fPoints;              //!array with points along the track
-     TClonesArray * fEPoints;             //! array with exact points - calculated in special macro not used in tracking
      //---CURRENT VALUES
      Int_t fRow;                 // current row number  
      Int_t fSector;              // current sector number