Remove AliTRDtrackHits
authorcblume <cblume@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 9 Oct 2006 17:18:57 +0000 (17:18 +0000)
committercblume <cblume@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 9 Oct 2006 17:18:57 +0000 (17:18 +0000)
TRD/AliTRDtrackHits.cxx [deleted file]
TRD/AliTRDtrackHits.h [deleted file]
TRD/TRDsimLinkDef.h
TRD/libTRDsim.pkg

diff --git a/TRD/AliTRDtrackHits.cxx b/TRD/AliTRDtrackHits.cxx
deleted file mode 100644 (file)
index 9a5c041..0000000
+++ /dev/null
@@ -1,147 +0,0 @@
-/**************************************************************************
- * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
- *                                                                        *
- * Author: The ALICE Off-line Project.                                    *
- * Contributors are mentioned in the code where appropriate.              *
- *                                                                        *
- * Permission to use, copy, modify and distribute this software and its   *
- * documentation strictly for non-commercial purposes is hereby granted   *
- * without fee, provided that the above copyright notice appears in all   *
- * copies and that both the copyright notice and this permission notice   *
- * appear in the supporting documentation. The authors make no claims     *
- * about the suitability of this software for any purpose. It is          *
- * provided "as is" without express or implied warranty.                  *
- **************************************************************************/
-
-////////////////////////////////////////////////
-//                                            //
-//  Manager class for TRD   hits              //
-//                                            //
-////////////////////////////////////////////////
-
-#include <Riostream.h>
-
-#include <TClonesArray.h>
-
-#include "AliTRDtrackHits.h"
-#include "AliTRDhit.h"    
-
-ClassImp(AliTRDtrackHits)
-//_____________________________________________________________________________
-void  AliTRDtrackHits::AddHitTRD(Int_t volumeID, Int_t trackID, Double_t x
-                              , Double_t y, Double_t z, Int_t q, Bool_t inDrift)
-{
-  //
-  // Add one TRD hit
-  //
-
-  if (inDrift) {
-    q = 2 * q + 1;
-  }
-  else {
-    q = 2 * q;
-  }
-
-  AddHitKartez(volumeID,trackID,x,y,z,q,0);
-
-}
-
-//_____________________________________________________________________________
-Bool_t AliTRDtrackHits::First()
-{
-  //
-  // Set Current hit for the first hit
-  //
-
-  if (fArray->GetSize() <= 0) {
-    fCurrentHit->fStatus = kFALSE;
-    return kFALSE;
-  }
-
-  AliTrackHitsParamV2 *param = (AliTrackHitsParamV2 *) fArray->At(0);
-  if (!fHit) {
-    fHit = new AliTRDhit;
-  }
-  if (!(param)) {
-    fCurrentHit->fStatus = kFALSE;
-    return kFALSE;
-  }
-
-  fCurrentHit->fParamIndex = 0;
-  fCurrentHit->fStackIndex = 0;
-
-  ((AliTRDhit *) fHit)->SetDetector(param->fVolumeID);
-  ((AliTRDhit *) fHit)->SetTrack(param->fTrackID);
-  ((AliTRDhit *) fHit)->SetX(param->fR * TMath::Cos(param->fFi));
-  ((AliTRDhit *) fHit)->SetY(param->fR * TMath::Sin(param->fFi));
-  ((AliTRDhit *) fHit)->SetZ(param->fZ); 
-  ((AliTRDhit *) fHit)->SetQ(param->fCharge[0] / 2);  
-  if ((param->fCharge[0] % 2) == 0) {
-    ((AliTRDhit *) fHit)->SetAmplification(); 
-  }
-  else {
-    ((AliTRDhit *) fHit)->SetDrift();
-  }
-  fCurrentHit->fR = param->fR;
-  
-  return fCurrentHit->fStatus = kTRUE;
-
-}
-//set current hit to next
-//_____________________________________________________________________________
-Bool_t AliTRDtrackHits::Next()
-{
-  //
-  // Set current hit to next
-  //
-
-  if (!(fCurrentHit->fStatus)) { 
-    return kFALSE;
-  }
-  fCurrentHit->fStackIndex++;
-
-  AliTrackHitsParamV2 *param = (AliTrackHitsParamV2 *) 
-                                 fArray->At(fCurrentHit->fParamIndex);
-
-  if (fCurrentHit->fStackIndex >= param->fNHits) {
-    fCurrentHit->fParamIndex++;
-    if (fCurrentHit->fParamIndex >= fArray->GetEntriesFast()) {
-      fCurrentHit->fStatus = kFALSE;
-      return kFALSE;
-    }
-    param = (AliTrackHitsParamV2 *) fArray->At(fCurrentHit->fParamIndex);
-    fCurrentHit->fStackIndex = 0; 
-    fCurrentHit->fR          = param->fR;
-  }
-
-  Double_t ratio;
-  Double_t dfi2 = param->fAn;
-  dfi2 *= dfi2 * fCurrentHit->fR * fCurrentHit->fR;
-  Double_t ddz2 = param->fTheta;
-  ddz2 *= ddz2;
-  ratio = TMath::Sqrt(1.0 + dfi2 + ddz2);  
-
-  fCurrentHit->fR += fStep * param->fHitDistance[fCurrentHit->fStackIndex] / ratio;
-
-  Double_t dR = fCurrentHit->fR - param->fR;
-  Double_t fi = param->fFi + (param->fAn    * dR + param->fAd     * dR*dR);
-  Double_t z  = param->fZ  + (param->fTheta * dR + param->fThetaD * dR*dR);
-
-  ((AliTRDhit *) fHit)->SetQ(param->fCharge[fCurrentHit->fStackIndex] / 2);   
-  if ((param->fCharge[fCurrentHit->fStackIndex] % 2) ==0) {
-    ((AliTRDhit *) fHit)->SetAmplification();
-  }
-  else {
-    ((AliTRDhit *) fHit)->SetDrift();
-  }
-  ((AliTRDhit *) fHit)->SetX(fCurrentHit->fR * TMath::Cos(fi));
-  ((AliTRDhit *) fHit)->SetY(fCurrentHit->fR * TMath::Sin(fi));
-  ((AliTRDhit *) fHit)->SetZ(z);   
-  ((AliTRDhit *) fHit)->SetDetector(param->fVolumeID);
-  ((AliTRDhit *) fHit)->SetTrack(param->fTrackID);
-
-  return kTRUE;
-
-}
-  
diff --git a/TRD/AliTRDtrackHits.h b/TRD/AliTRDtrackHits.h
deleted file mode 100644 (file)
index 150b12b..0000000
+++ /dev/null
@@ -1,36 +0,0 @@
-#ifndef ALITRDTRACKHITS_H
-#define ALITRDTRACKHITS_H
-/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
- * See cxx source for full Copyright notice                               */
-
-/* $Id$ */
-
-////////////////////////////////////////////////////////////////////////////
-//                                                                        //
-//  Manager class for TRD hits                                            //
-//                                                                        //
-////////////////////////////////////////////////////////////////////////////
-
-#include "../TPC/AliTPCTrackHitsV2.h"
-
-class AliTRDhit;
-
-class AliTRDtrackHits : public AliTPCTrackHitsV2 {
-
- public:
-
-  AliTRDtrackHits()          { };
-  virtual ~AliTRDtrackHits() { };
-
-          void     AddHitTRD(Int_t volumeID, Int_t trackID, Double_t x
-                          , Double_t y, Double_t z,Int_t q, Bool_t inDrift);
-          Bool_t   First();
-          Bool_t   Next();
-
- public:
-
-  ClassDef(AliTRDtrackHits,1) // Manager class for TRD hits
-
-};
-
-#endif
index 2a3c215..71f27de 100644 (file)
@@ -9,7 +9,6 @@
 #pragma link off all functions;
  
 #pragma link C++ class  AliTRDhit+;
-#pragma link C++ class  AliTRDtrackHits+;
 #pragma link C++ class  AliTRDpoints+;
 #pragma link C++ class  AliTRDsim+;
 #pragma link C++ class  AliTRD+;
index 42d7235..5689dcb 100644 (file)
@@ -1,5 +1,4 @@
 SRCS= AliTRDhit.cxx \
-      AliTRDtrackHits.cxx \
       AliTRDpoints.cxx \
       AliTRDsim.cxx \
       AliTRD.cxx \