Removing obsolete classes
authorhristov <hristov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Sat, 29 Apr 2006 21:17:51 +0000 (21:17 +0000)
committerhristov <hristov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Sat, 29 Apr 2006 21:17:51 +0000 (21:17 +0000)
TRD/AliTRDsimple.cxx [deleted file]
TRD/AliTRDsimple.h [deleted file]
TRD/AliTRDsimpleGen.cxx [deleted file]
TRD/AliTRDsimpleGen.h [deleted file]
TRD/AliTRDsimpleMC.cxx [deleted file]
TRD/AliTRDsimpleMC.h [deleted file]
TRD/TRDsimLinkDef.h
TRD/libTRDsim.pkg

diff --git a/TRD/AliTRDsimple.cxx b/TRD/AliTRDsimple.cxx
deleted file mode 100644 (file)
index 42c69d6..0000000
+++ /dev/null
@@ -1,123 +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.                  *
- **************************************************************************/
-/* $Id$ */
-///////////////////////////////////////////////////////////////////////////////
-//                                                                           //
-//  Simplified TRD slow simulator                                            //
-//                                                                           //
-///////////////////////////////////////////////////////////////////////////////
-#include <stdlib.h>
-#include "AliTRDsimple.h"
-#include "AliTRDsimpleGen.h" 
-#include "AliTRDsimpleMC.h"
-
-ClassImp(AliTRDsimple)
-//_____________________________________________________________________________
-AliTRDsimple::AliTRDsimple():TObject()
-{                       
-  //
-  // AliTRDsimple default constructor
-  //
-
-  fGenerator = NULL;
-                                                         
-}                                                                               
-//_____________________________________________________________________________
-AliTRDsimple::AliTRDsimple(const AliTRDsimple &s):TObject(s)
-{
-  //
-  // AliTRDsimple copy constructor
-  //
-  ((AliTRDsimple &) s).Copy(*this);
-}
-//_____________________________________________________________________________
-AliTRDsimple::~AliTRDsimple()
-{
-  //
-  // AliTRDsimple destructor
-  //
-  if (fGenerator) {
-    delete fGenerator;
-  }
-
-}                                                                               
-//_____________________________________________________________________________
-AliTRDsimple &AliTRDsimple::operator=(const AliTRDsimple &s)
-{
-  //
-  // Assignment operator
-  //
-  if (this != &s) ((AliTRDsimple &) s).Copy(*this);
-  return *this;
-}
-//_____________________________________________________________________________
-void AliTRDsimple::Init()
-{
-  //
-  // Initialization
-  //
-
-  fGenerator = new AliTRDsimpleGen();
-
-  // Create the MC object
-  new AliTRDsimpleMC("simple","Simplified Monte Carlo");
-                                                         
-}
-//_____________________________________________________________________________
-void AliTRDsimple::Copy(TObject &s) const
-{
-  //
-  // Copy function
-  //                             
-                  
-  fGenerator->Copy(*((AliTRDsimple &) s).fGenerator);  
-                              
-}
-                                                                                
-//_____________________________________________________________________________
-void AliTRDsimple::ProcessEvent(Int_t ievent)
-{
-  //
-  // Runs a single event
-  //
-
-  Int_t copy = 0;
-
-  // Generate a new particle
-  fGenerator->NewParticle(ievent);
-
-  // Track the event
-  do {
-    gMC->ProcessEvent();
-  } 
-  while (gMC->CurrentVolID(copy) != -1);
-
-}
-                                                                                
diff --git a/TRD/AliTRDsimple.h b/TRD/AliTRDsimple.h
deleted file mode 100644 (file)
index 5f1c271..0000000
+++ /dev/null
@@ -1,41 +0,0 @@
-#ifndef ALITRDSIMPLE_H
-#define ALITRDSIMPLE_H
-/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
- * See cxx source for full Copyright notice                               */
-/* $Id$ */
-///////////////////////////////////////////////////////////////////////////////
-//                                                                           //
-//  Simplified TRD slow simulator                                            //
-//                                                                           //
-///////////////////////////////////////////////////////////////////////////////
-#include <TObject.h>
-
-class AliTRDsimpleGen;
-class AliTRDsimple : public TObject {
- public:     
-
-  AliTRDsimple();
-  AliTRDsimple(const AliTRDsimple &s); 
-                                                                                
-  virtual ~AliTRDsimple();
-  AliTRDsimple &operator=(const AliTRDsimple &s);    
-
-  virtual void             Init();
-  virtual void             Copy(TObject &s) const;
-  virtual void             ProcessEvent(Int_t ievent);
-
-  virtual AliTRDsimpleGen *GetGenerator()      const { return fGenerator; };
-
- protected:
-
-  AliTRDsimpleGen      *fGenerator;   //  The generator class for the simple simulator
-
-  ClassDef(AliTRDsimple,1)            //  Simplified TRD slow simulator
-};
-#endif                                                                          
diff --git a/TRD/AliTRDsimpleGen.cxx b/TRD/AliTRDsimpleGen.cxx
deleted file mode 100644 (file)
index b0aecca..0000000
+++ /dev/null
@@ -1,135 +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.                  *
- **************************************************************************/
-/* $Id$ */
-///////////////////////////////////////////////////////////////////////////////
-//                                                                           //
-//  Particle generator for the simplescopic TRD simulator                    //
-//                                                                           //
-///////////////////////////////////////////////////////////////////////////////
-#include <stdlib.h>
-#include <TRandom.h>
-#include <TMCProcess.h>
-
-#include "AliRun.h"
-
-#include "AliTRDsimpleGen.h"
-#include "AliTRDsimpleMC.h"
-#include "AliMC.h"
-ClassImp(AliTRDsimpleGen)
-//_____________________________________________________________________________
-AliTRDsimpleGen::AliTRDsimpleGen():TObject()
-{                       
-  //
-  // AliTRDsimpleGen default constructor
-  //
-
-  fPdg    = 211;
-  fMomMin = 1.0;
-  fMomMax = 1.0;             
-                                            
-}                                                                               
-//_____________________________________________________________________________
-AliTRDsimpleGen::AliTRDsimpleGen(const AliTRDsimpleGen &g):TObject(g)
-{
-  //
-  // AliTRDsimpleGen copy constructor
-  //
-  ((AliTRDsimpleGen &) g).Copy(*this);
-}
-//_____________________________________________________________________________
-AliTRDsimpleGen::~AliTRDsimpleGen()
-{
-  //
-  // AliTRDsimpleGen destructor
-  //
-}                                                                               
-//_____________________________________________________________________________
-AliTRDsimpleGen &AliTRDsimpleGen::operator=(const AliTRDsimpleGen &g)
-{
-  //
-  // Assignment operator
-  //
-  if (this != &g) ((AliTRDsimpleGen &) g).Copy(*this);
-  return *this;
-}
-//_____________________________________________________________________________
-void AliTRDsimpleGen::Copy(TObject &g) const
-{
-  //
-  // Copy function
-  //                             
-
-  ((AliTRDsimpleGen &) g).fPdg     = fPdg;                                                 
-  ((AliTRDsimpleGen &) g).fMomMin  = fMomMin;                                                 
-  ((AliTRDsimpleGen &) g).fMomMax  = fMomMax;                                                 
-
-}
-
-//_____________________________________________________________________________
-void AliTRDsimpleGen::NewParticle(Int_t ievent)
-{
-  //
-  // Generate a new particle and initialize the MC object
-  // 
-
-  if (ievent == 0) {
-    printf("\n");
-    printf("<AliTRDsimpleGen> Generate particles with PDG code %d\n",fPdg);
-    if (fMomMax > fMomMin) {
-      printf("<AliTRDsimpleGen> Momentum range = %4.2f - %4.2f GeV/c\n"
-            ,fMomMin,fMomMax);
-    }
-    else {
-      printf("<AliTRDsimpleGen> Fixed momentum = %4.2f GeV/c\n"
-            ,fMomMax);
-    }
-    printf("\n");
-
-    // Add one dummy particle to the stack so that AddHit will work
-    Float_t mom[3] = { 0.0 };
-    Float_t vtx[3] = { 0.0 };
-    Float_t pol[3] = { 0.0 };
-    Int_t   ntr    = 0;
-    gAlice->GetMCApp()->PushTrack(0,-1,fPdg,mom,vtx,pol,0.0,kPPrimary,ntr);
-
-  }
-
-  Double_t p = fMomMax;
-  if (fMomMax > fMomMin) {
-    p = (fMomMax - fMomMin) * gRandom->Rndm() + fMomMin;
-  }
-
-  Double_t px = p;
-  Double_t py = 0.0;      
-  Double_t pz = 0.0;      
-
-  ((AliTRDsimpleMC *) gMC)->NewTrack(ievent,fPdg,px,py,pz);
-
-}                                   
diff --git a/TRD/AliTRDsimpleGen.h b/TRD/AliTRDsimpleGen.h
deleted file mode 100644 (file)
index 19553f0..0000000
+++ /dev/null
@@ -1,42 +0,0 @@
-#ifndef ALITRDSIMPLEGEN_H
-#define ALITRDSIMPLEGEN_H
-/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
- * See cxx source for full Copyright notice                               */
-/* $Id$ */
-
-///////////////////////////////////////////////////////////////////////////////
-//                                                                           //
-//  Particle generator for the simplescopic TRD simulator                    //
-//                                                                           //
-///////////////////////////////////////////////////////////////////////////////
-#include <TObject.h>
-
-class AliTRDsimpleGen : public TObject {
- public:     
-
-  AliTRDsimpleGen();
-  AliTRDsimpleGen(const AliTRDsimpleGen &g); 
-                                                                                
-  virtual ~AliTRDsimpleGen();
-  AliTRDsimpleGen &operator=(const AliTRDsimpleGen &g);    
-
-  virtual void         Copy(TObject &g) const;
-  virtual void         NewParticle(Int_t ievent);
-
-  virtual void         SetMomentum(Double_t min, Double_t max) { fMomMin = min;
-                                                                 fMomMax = max; };
-  virtual void         SetPdg(Int_t pdg)                       { fPdg    = pdg; };
-
- protected:
-
-  Int_t           fPdg;              //  Particle PDG code
-  Double_t        fMomMin;           //  Particle minimum momentum
-  Double_t        fMomMax;           //  Particle maximum momentum
-
-  ClassDef(AliTRDsimpleGen,1)        //  Particle generator for the simplified TRD simulator
-};
-#endif                                                                          
diff --git a/TRD/AliTRDsimpleMC.cxx b/TRD/AliTRDsimpleMC.cxx
deleted file mode 100644 (file)
index d4a1133..0000000
+++ /dev/null
@@ -1,368 +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.                  *
- **************************************************************************/
-/* $Id$ */
-
-///////////////////////////////////////////////////////////////////////////////
-//                                                                           //
-//  Simple TRD Monte Carlo class                                             //
-//                                                                           //
-///////////////////////////////////////////////////////////////////////////////
-#include <stdlib.h>
-
-#include <TLorentzVector.h>
-#include "AliRun.h"
-#include "AliTRDgeometry.h"
-#include "AliTRDsimpleMC.h"
-#include "AliTRDv1.h"
-#include "AliMC.h"
-
-ClassImp(AliTRDsimpleMC)
-//_____________________________________________________________________________
-AliTRDsimpleMC::AliTRDsimpleMC()
-{                       
-  //
-  // AliTRDsimpleMC default constructor
-  //
-       
-  fMaxStep       = 0.0;
-  fNStep         = 0;
-  fTrack         = 0;
-  fTrackPx       = 0.0;
-  fTrackPy       = 0.0;
-  fTrackPz       = 0.0;
-  fTrackPtot     = 0.0;          
-  fTrackEtot     = 0.0;
-  fTrackX        = 0.0;          
-  fTrackY        = 0.0;          
-  fTrackZ        = 0.0;       
-  fTrackStep     = 0.0;
-  fTrackPid      = 0;
-  fTrackCharge   = 0.0;
-  fTrackMass     = 0.0;
-  fTrackEntering = kFALSE;   
-
-  fTRD           = NULL;
-
-}
-
-//_____________________________________________________________________________
-AliTRDsimpleMC::AliTRDsimpleMC(const char *name, const char *title)
-               :TVirtualMC(name,title,kFALSE)
-{                       
-  //
-  // AliTRDsimpleMC default constructor
-  //
-       
-  fMaxStep       = 0.0;
-  fNStep         = 0;
-  fTrack         = 0;
-  fTrackPx       = 0.0;
-  fTrackPy       = 0.0;
-  fTrackPz       = 0.0;
-  fTrackPtot     = 0.0;          
-  fTrackEtot     = 0.0;
-  fTrackX        = 0.0;          
-  fTrackY        = 0.0;          
-  fTrackZ        = 0.0;       
-  fTrackStep     = 0.0;
-  fTrackPid      = 0;
-  fTrackCharge   = 0.0;
-  fTrackMass     = 0.0;
-  fTrackEntering = kFALSE;   
-
-  fTRD           = NULL;
-
-}
-//_____________________________________________________________________________
-AliTRDsimpleMC::AliTRDsimpleMC(const AliTRDsimpleMC &m):TVirtualMC(m)
-{
-  //
-  // AliTRDsimpleMC copy constructor
-  //
-  ((AliTRDsimpleMC &) m).Copy(*this);
-}
-//_____________________________________________________________________________
-AliTRDsimpleMC::~AliTRDsimpleMC()
-{
-  //
-  // AliTRDsimpleMC destructor
-  //
-}                                                                               
-//_____________________________________________________________________________
-AliTRDsimpleMC &AliTRDsimpleMC::operator=(const AliTRDsimpleMC &m)
-{
-  //
-  // Assignment operator
-  //
-  if (this != &m) ((AliTRDsimpleMC &) m).Copy(*this);
-  return *this;
-}
-//_____________________________________________________________________________
-void AliTRDsimpleMC::Copy(TObject &m) const
-{
-  //
-  // Copy function
-  //                             
-                 
-  ((AliTRDsimpleMC &) m).fMaxStep       = fMaxStep;
-  ((AliTRDsimpleMC &) m).fNStep         = fNStep;
-  ((AliTRDsimpleMC &) m).fTrack         = fTrack;
-  ((AliTRDsimpleMC &) m).fTrackPx       = fTrackPx;
-  ((AliTRDsimpleMC &) m).fTrackPy       = fTrackPy;
-  ((AliTRDsimpleMC &) m).fTrackPz       = fTrackPz;
-  ((AliTRDsimpleMC &) m).fTrackPtot     = fTrackPtot;
-  ((AliTRDsimpleMC &) m).fTrackEtot     = fTrackEtot;
-  ((AliTRDsimpleMC &) m).fTrackX        = fTrackX;
-  ((AliTRDsimpleMC &) m).fTrackY        = fTrackY;
-  ((AliTRDsimpleMC &) m).fTrackZ        = fTrackZ;
-  ((AliTRDsimpleMC &) m).fTrackStep     = fTrackStep;
-  ((AliTRDsimpleMC &) m).fTrackPid      = fTrackPid;
-  ((AliTRDsimpleMC &) m).fTrackCharge   = fTrackCharge;
-  ((AliTRDsimpleMC &) m).fTrackMass     = fTrackMass;
-  ((AliTRDsimpleMC &) m).fTrackEntering = fTrackEntering;
-
-}
-                                                                                
-//_____________________________________________________________________________
-void AliTRDsimpleMC::NewTrack(Int_t iTrack, Int_t pdg
-                             , Double_t px, Double_t py, Double_t pz)
-{
-  //
-  // Starts a new track.
-  // 
-
-  if (!fTRD) {
-    fTRD = (AliTRDv1 *) gAlice->GetDetector("TRD");   
-    fX0  = AliTRDgeometry::GetTime0(0) - AliTRDgeometry::DrThick();
-  }
-
-  fTRD->ResetHits();
-
-  fTrack         = iTrack;
-  fMaxStep       = 0.0;
-  fNStep         = 0;
-  fTrackStep     = 0.0;
-  fTrackPid      = pdg;
-  fTrackEntering = kTRUE;
-
-  switch (pdg) {
-  case kPdgElectron:
-    fTrackMass   =  5.11e-4;
-    fTrackCharge = -1.0;
-    break;
-  case kPdgPion:
-    fTrackMass   =  0.13957;
-    fTrackCharge =  1.0;
-    break;
-  default:
-    printf("<AliTRDsimpleMC::NewTrack> PDG code %d not implemented\n",pdg);
-    break;
-  };
-
-  Double_t pTot2 = px*px + py*py + pz*pz;
-  fTrackPtot = TMath::Sqrt(pTot2);
-  fTrackEtot = TMath::Sqrt(pTot2 + fTrackMass*fTrackMass); 
-  fTrackPx   = px;
-  fTrackPy   = py;
-  fTrackPz   = pz;
-  
-  fTrackX    = fX0;
-  fTrackY    = 0.0;
-  fTrackZ    = 0.0;
-
-  gAlice->GetMCApp()->SetCurrentTrack(0);
-
-}
-                                                                                
-//_____________________________________________________________________________
-void AliTRDsimpleMC::ProcessEvent()
-{
-  //
-  // Process one single track:
-  //   - Determines the step size.
-  //   - Calculates the track position
-  //   - Calls TRD step manager.
-  //
-
-  // The stepsize from an exponential distribution
-  fTrackStep = gRandom->Exp(fMaxStep);  
-
-  if ((fTrackEntering) && (fNStep > 0)) {
-    fTrackEntering = kFALSE;
-  }
-  fNStep++;
-
-  // New track position
-  Double_t d  = fTrackStep / fTrackPtot;
-  fTrackX += fTrackPx * d;
-  fTrackY += fTrackPy * d;
-  fTrackZ += fTrackPz * d;
-
-  // Call the TRD step manager
-  fTRD->StepManager();  
-
-}
-
-//_____________________________________________________________________________
-void AliTRDsimpleMC::TrackPosition(TLorentzVector& position) const
-{
-  //
-  // Track Position
-  //
-
-  position[0] = fTrackX;
-  position[1] = fTrackY;
-  position[2] = fTrackZ;
-
-}
-
-//_____________________________________________________________________________
-void AliTRDsimpleMC::TrackPosition(Double_t &x, Double_t &y, Double_t &z) const
-{
-  //
-  // Track Position
-  //
-
-  x = fTrackX;
-  y = fTrackY;
-  z = fTrackZ;
-
-}
-
-//_____________________________________________________________________________
-void AliTRDsimpleMC::TrackMomentum(TLorentzVector& momentum) const
-{
-  //
-  // Track Momentum
-  //
-
-  momentum[0] = fTrackPx;
-  momentum[1] = fTrackPy;
-  momentum[2] = fTrackPz;
-  momentum[3] = fTrackEtot;
-
-}
-
-//_____________________________________________________________________________
-void AliTRDsimpleMC::TrackMomentum(Double_t &px, Double_t &py,
-                                  Double_t &pz, Double_t &et) const
-{
-  //
-  // Track Momentum
-  //
-
-  px = fTrackPx;
-  py = fTrackPy;
-  pz = fTrackPz;
-  et = fTrackEtot;
-
-}
-
-//_____________________________________________________________________________
-Int_t AliTRDsimpleMC::VolId(const Text_t* volName) const
-{
-  //
-  // Returns the volume IDs:
-  //   1 = drift region
-  //   2 = amplification region
-  //   3 = drift chambers
-  // 
-  Int_t volId = -1;
-
-  if      (strcmp(volName,"UJ00") == 0) {
-    volId = kVolDrRg;
-  }
-  else if (strcmp(volName,"UK00") == 0) {
-    volId = kVolAmRg;
-  }
-  else if (strcmp(volName,"UC00") == 0) {
-    volId = kVolDrCh;
-  }
-
-  return volId;
-
-}
-
-//_____________________________________________________________________________
-Int_t AliTRDsimpleMC::CurrentVolID(Int_t& copyNo) const
-{
-  //
-  // Check for the current volume
-  //
-
-  Int_t volId = -1;
-
-  copyNo = 0;
-
-  // Drift region
-  if      ((fTrackX-fX0) <  AliTRDgeometry::DrThick()) {
-    volId = kVolDrRg;
-  }
-  else if ((fTrackX-fX0) < (AliTRDgeometry::DrThick() +
-                            AliTRDgeometry::AmThick())) {
-    volId = kVolAmRg;
-  }
-
-  return volId;
-
-}
-
-//_____________________________________________________________________________
-const char *AliTRDsimpleMC::CurrentVolName() const
-{
-  //
-  // Check for the current volume
-  //
-
-  const char *volName = "UA00";
-
-  // Drift region
-  if      ((fTrackX-fX0) <  AliTRDgeometry::DrThick()) {
-    volName = "UJ00";
-  }
-  else if ((fTrackX-fX0) < (AliTRDgeometry::DrThick() +
-                            AliTRDgeometry::AmThick())) {
-    volName = "UK00";
-  }
-
-  return volName;
-
-}
-
-//_____________________________________________________________________________
-Int_t AliTRDsimpleMC::CurrentVolOffID(Int_t , Int_t &copyNo) const
-{
-  //
-  // Check for the current volume
-  //
-
-  copyNo = 1;
-  return kVolDrCh;
-
-}
diff --git a/TRD/AliTRDsimpleMC.h b/TRD/AliTRDsimpleMC.h
deleted file mode 100644 (file)
index 2f076b6..0000000
+++ /dev/null
@@ -1,311 +0,0 @@
-#ifndef ALITRDSIMPLEMC_H
-#define ALITRDSIMPLEMC_H
-/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
- * See cxx source for full Copyright notice                               */
-
-/* $Id$ */
-
-///////////////////////////////////////////////////////////////////////////////
-//                                                                           //
-//  Simple TRD Monte Carlo class                                             //
-//                                                                           //
-///////////////////////////////////////////////////////////////////////////////
-
-#include <RVersion.h>
-#include <TMCProcess.h>
-#include <TVirtualMC.h>
-#include "AliDecayer.h"
-
-class AliTRDv1;
-class TArrayD;
-
-class AliTRDsimpleMC : public TVirtualMC {
-
- public:
-
-  enum {
-      kPdgElectron = 11
-    , kPdgPion     = 211
-  };
-
-  AliTRDsimpleMC();
-  AliTRDsimpleMC(const char *name, const char *title);
-  AliTRDsimpleMC(const AliTRDsimpleMC &m);
-
-  virtual ~AliTRDsimpleMC();
-  AliTRDsimpleMC &operator=(const AliTRDsimpleMC &m);
-
-  virtual void          Copy(TObject &m) const;
-
-  //
-  // Methods for building / management of geometry
-  //
-
-  // Functions from GCONS
-    virtual void  Gfmate(Int_t , char* , Float_t& , Float_t& ,
-                        Float_t& , Float_t& , Float_t& ,
-                        Float_t* , Int_t& )  {}
-    virtual void  Gfmate(Int_t , char* , Double_t& , Double_t& ,
-                        Double_t& , Double_t& , Double_t& ,
-                        Double_t* , Int_t& ) {}
-
-  // Detector composition
-    virtual void  Material(Int_t& , const char* , Double_t ,
-                     Double_t , Double_t , Double_t , Double_t ,
-                     Float_t* , Int_t ) {}
-    virtual void  Material(Int_t& , const char* , Double_t ,
-                     Double_t , Double_t , Double_t , Double_t ,
-                     Double_t* , Int_t ) {}
-    virtual void  Mixture(Int_t& , const char* , Float_t* ,
-                     Float_t *, Double_t , Int_t , Float_t* ) {}
-    virtual void  Mixture(Int_t& , const char* , Double_t *,
-                     Double_t *, Double_t , Int_t , Double_t* ) {}
-    virtual void  Medium(Int_t& , const char* , Int_t ,
-                     Int_t , Int_t , Double_t , Double_t ,
-                     Double_t , Double_t , Double_t ,
-                    Double_t , Float_t* , Int_t ) {}
-    virtual void  Medium(Int_t& , const char* , Int_t ,
-                     Int_t , Int_t , Double_t , Double_t ,
-                     Double_t , Double_t , Double_t ,
-                    Double_t , Double_t* , Int_t ) {}
-    virtual void  Matrix(Int_t& , Double_t , Double_t ,
-                     Double_t , Double_t , Double_t ,
-                    Double_t ) {}
-    virtual void  Gstpar(Int_t , const char* , Double_t ) {}
-
-  // Functions from GGEOM
-    virtual Int_t  Gsvolu(const char* , const char* , Int_t ,
-                          Float_t* , Int_t )  { return 0; }
-    virtual Int_t  Gsvolu(const char* , const char* , Int_t ,
-                          Double_t* , Int_t) { return 0; }
-    virtual void  Gsdvn(const char* , const char* , Int_t ,
-                         Int_t ) {}
-    virtual void  Gsdvn2(const char* , const char* , Int_t ,
-                         Int_t , Double_t , Int_t ) {}
-    virtual void  Gsdvt(const char* , const char* , Double_t ,
-                         Int_t , Int_t , Int_t ) {}
-    virtual void  Gsdvt2(const char* , const char* , Double_t ,
-                         Int_t , Double_t , Int_t , Int_t ) {}
-    virtual void  Gsord(const char* , Int_t ) {}
-    virtual void  Gspos(const char* , Int_t , const char* ,
-                         Double_t , Double_t , Double_t , Int_t ,
-                         const char* ) {}
-    virtual void  Gsposp(const char* , Int_t , const char* ,
-                         Double_t, Double_t, Double_t, Int_t ,
-                         const char* , Float_t* , Int_t ) {}
-    virtual void  Gsposp(const char* , Int_t , const char* ,
-                         Double_t , Double_t , Double_t , Int_t ,
-                         const char* , Double_t* , Int_t ) {}
-    virtual void  Gsbool(const char* , const char* ) {}
-
-    virtual void  SetCerenkov(Int_t , Int_t , Float_t* ,
-                               Float_t* , Float_t* , Float_t* ) {}
-    virtual void  SetCerenkov(Int_t , Int_t , Double_t* ,
-                               Double_t* , Double_t* , Double_t* ) {}
-
-  // Functions for drawing
-    virtual void  DrawOneSpec(const char* ) {}
-    virtual void  Gsatt(const char* , const char* , Int_t ) {}
-    virtual void  Gdraw(const char* , Double_t , Double_t ,
-                       Double_t , Double_t , Double_t ,
-                       Double_t , Double_t ) {}
-
-  // Euclid
-  virtual void          WriteEuclid(const char* , const char* , Int_t , Int_t ) {}
-
-  // Get methods
-    virtual Int_t VolId(const Text_t* volName) const;
-    virtual const char* VolName(Int_t ) const { return ""; }
-    virtual Int_t NofVolumes() const { return 0; }
-    virtual Int_t VolId2Mate(Int_t ) const { return 0; }
-
-  //
-  // Methods for physics management
-  //
-
-  // Set methods
-#if ROOT_VERSION_CODE > 262150
-    virtual Bool_t   SetCut(const char* , Double_t ) { return kTRUE; }
-    virtual Bool_t   SetProcess(const char* , Int_t ) { return kTRUE; }
-#else
-    virtual void     SetCut(const char* , Double_t ) {}
-    virtual void     SetProcess(const char* , Int_t ) {}
-#endif
-    virtual void     DefineParticles() {}
-    virtual Double_t Xsec(char*, Double_t, Int_t, Int_t) { return 0.; }
-
-  // Particle table usage
-    virtual Int_t   IdFromPDG(Int_t ) const { return 0; }
-    virtual Int_t   PDGFromId(Int_t ) const { return 0; }
-
-  //
-  // Methods for step management
-  //
-
-  // Action methods
-  virtual void          StopTrack() { };
-  virtual void          StopEvent() { };
-#if ROOT_VERSION_CODE >= 262150
-  virtual void          StopRun()   { }
-#endif
-
-  // Set methods
-  virtual void          SetMaxStep(Double_t step)                                         { fMaxStep = step; };
-  virtual void          SetMaxNStep(Int_t )                                              { };
-  virtual void          SetUserDecay(Int_t )                                             { };
-
-  virtual void          NewTrack(Int_t iTrack, Int_t pdg, Double_t px, Double_t py, Double_t pz);
-
-  // Tracking volume(s)
-  virtual Int_t         CurrentVolID(Int_t& copyNo) const;
-  virtual Int_t         CurrentVolOffID(Int_t off, Int_t& copyNo) const;
-  virtual const char*   CurrentVolName() const;
-  virtual const char*   CurrentVolOffName(Int_t ) const                                { return ""; };
-  virtual Int_t         CurrentMaterial(Float_t& , Float_t& ,
-                                        Float_t& , Float_t& ,
-                                       Float_t& ) const                               { return 0;  };
-  virtual Int_t         CurrentEvent() const                                              { return 0;  };
-  virtual void          Gmtod(Float_t* , Float_t* , Int_t )   {}
-  virtual void          Gmtod(Double_t* , Double_t* , Int_t ) {}
-  virtual void          Gdtom(Float_t* , Float_t* , Int_t )   {}
-  virtual void          Gdtom(Double_t* , Double_t* , Int_t ) {}
-  virtual Double_t      MaxStep() const                                                   { return fMaxStep; };
-  virtual Int_t         GetNStep() const                                                  { return fNStep;   };
-  virtual Int_t         GetMaxNStep() const                                               { return 0;  };
-  virtual Int_t         GetMedium() const                                                 { return 0;  };
-  virtual Bool_t GetMedium(const TString& /*volumeName*/,
-                          TString& /*name*/, Int_t& /*imed*/,
-                          Int_t& /*nmat*/, Int_t& /*isvol*/, Int_t& /*ifield*/,
-                          Double_t& /*fieldm*/, Double_t& /*tmaxfd*/, Double_t& /*stemax*/,
-                          Double_t& /*deemax*/, Double_t& /*epsil*/, Double_t& /*stmin*/,
-                          TArrayD& /*par*/) {
-   return kFALSE;
-}   
-
-  // Dynamic properties
-  virtual void          TrackPosition(TLorentzVector& position) const;
-  virtual void          TrackPosition(Double_t &x, Double_t &y, Double_t &z) const;
-  virtual void          TrackMomentum(TLorentzVector& momentum) const;
-  virtual void          TrackMomentum(Double_t &px, Double_t &py, Double_t &pz, Double_t &etot) const;
-  virtual Double_t      TrackStep() const                                                 { return fTrackStep; };
-  virtual Double_t      TrackLength() const                                               { return 0.0; };
-  virtual Double_t      TrackTime() const                                                 { return 0.0; };
-  virtual Double_t      Edep() const                                                      { return 0.0; };
-
-  // Static properties
-  virtual Int_t         TrackPid() const                                                  { return fTrackPid;    };
-  virtual Double_t      TrackCharge() const                                               { return fTrackCharge; };
-  virtual Double_t      TrackMass() const                                                 { return fTrackMass;   };
-  virtual Double_t      Etot() const                                                      { return fTrackEtot;   };
-
-  // Track status
-  virtual Bool_t        IsNewTrack() const                                                { return kFALSE; };
-  virtual Bool_t        IsTrackInside() const                                             { return kFALSE; };
-  virtual Bool_t        IsTrackEntering() const                                           { return fTrackEntering; };
-  virtual Bool_t        IsTrackExiting() const                                            { return kFALSE; };
-  virtual Bool_t        IsTrackOut() const                                                { return kFALSE; };
-  virtual Bool_t        IsTrackDisappeared() const                                        { return kFALSE; };
-  virtual Bool_t        IsTrackStop() const                                               { return kFALSE; };
-  virtual Bool_t        IsTrackAlive() const                                              { return kFALSE; };
-
-  // Secondaries
-  virtual Int_t         NSecondaries() const                                              { return 0; };
-  virtual void          GetSecondary(Int_t , Int_t& ,
-                                     TLorentzVector& ,
-                                     TLorentzVector& )                                    { };
-  virtual Bool_t        SecondariesAreOrdered() const {return kTRUE;}
-  virtual TMCProcess    ProdProcess(Int_t ) const                                           { return kPNoProcess; };
-  virtual Int_t         StepProcesses(TArrayI& ) const                                    { return 0; };
-
-  //
-  // Other (then geometry/step/run management) methods
-  //
-
-  // Geant3 specific methods
-    virtual void Gdopt(const char*,const char*) {}
-    virtual void SetClipBox(const char*,Double_t=-9999,Double_t=0, Double_t=-9999,
-                             Double_t=0,Double_t=-9999,Double_t=0) {}
-    virtual void DefaultRange() {}
-    virtual void Gdhead(Int_t, const char*, Double_t=0) {}
-    virtual void Gdman(Double_t, Double_t, const char*) {}
-    virtual void SetColors() {}
-    virtual void Gtreve() {}
-    virtual void GtreveRoot() {}
-    virtual void Gckmat(Int_t, char*) {}
-    virtual void InitLego() {}
-    virtual void Gfpart(Int_t, char*, Int_t&, Float_t&, Float_t&, Float_t&) {}
-    virtual void Gspart(Int_t, const char*, Int_t, Double_t, Double_t, Double_t) {}
-    // Dummy methods
-#if ROOT_VERSION_CODE > 197895
-#if ROOT_VERSION_CODE > 262150
-    virtual Bool_t DefineParticle(int, const char*, TMCParticleType, double, double, double){ return kTRUE; }
-    virtual Bool_t DefineIon(const char*, int, int, int, double, double) { return kTRUE; }
-#else
-    virtual void DefineParticle(int, const char*, TMCParticleType, double, double, double){;}
-    virtual void DefineIon(const char*, int, int, int, double, double){;}
-#endif
-    virtual TString  ParticleName(int) const {return "";}
-    virtual Double_t ParticleMass(int) const {return 0.;}
-    virtual Double_t ParticleCharge(int) const {return 0.;}
-    virtual Double_t ParticleLifeTime(int) const {return 0.;}
-    virtual TMCParticleType ParticleMCType(int) const {return (TMCParticleType) 0;}
-#endif
-    //
-  // Control Methods
-  virtual void          Init()                                                            { };
-  virtual void          FinishGeometry()                                                  { };
-  virtual void          BuildPhysics()                                                    { };
-  virtual void          ProcessEvent();
-#if ROOT_VERSION_CODE >= 262150
-  virtual Bool_t        ProcessRun(Int_t )                                                { return kTRUE; }
-#else
-  virtual void          ProcessRun(Int_t )                                                { };
-#endif
-  //virtual TMCGeomType   GetMCGeomType() const                                             { return kGeant3; }
-
-  // External Decayer
-  virtual void          SetExternalDecayer(AliDecayer* )                                  { };
-  virtual AliDecayer   *Decayer() const                                                   { return 0; };
-
-#if ROOT_VERSION_CODE>=262913
-  virtual void SetRootGeometry() {}
-  virtual Int_t NofVolDaughters(const char*) const {return 0;}
-  virtual const char* VolDaughterName(const char*, Int_t) const {return 0x0;}
-  virtual Int_t VolDaughterCopyNo(const char*, Int_t) const {return 0;}
-  virtual void ForceDecayTime(Float_t) {}
-  virtual const char* CurrentVolPath() {return 0x0;}
-#endif
-
- protected:
-
-  enum {
-      kVolDrRg
-    , kVolAmRg
-    , kVolDrCh
-  };
-
-  Float_t          fMaxStep;            //  Maximum step size
-  Int_t            fNStep;              //  Number of steps
-  Int_t            fTrack;              //  Track number
-  Double_t         fTrackPx;            //  Track px
-  Double_t         fTrackPy;            //  Track py
-  Double_t         fTrackPz;            //  Track pz
-  Double_t         fTrackPtot;          //  Track total momentum
-  Double_t         fTrackEtot;          //  Track total energy
-  Double_t         fTrackX;             //  Track x position
-  Double_t         fTrackY;             //  Track y position
-  Double_t         fTrackZ;             //  Track z position
-  Double_t         fX0;                 //  X position of the beginning of the chamber
-  Double_t         fTrackStep;          //  Track step size
-  Int_t            fTrackPid;           //  Track PID
-  Float_t          fTrackCharge;        //  Track charge
-  Float_t          fTrackMass;          //  Track particle mass
-  Bool_t           fTrackEntering;      //  Track entering chamber
-
-  AliTRDv1        *fTRD;                //! TRD detector object
-
-  ClassDef(AliTRDsimpleMC, 3)            //  Simple TRD Monte Carlo class
-
-};
-#endif
-
index 63aca1d..cdd01a3 100644 (file)
@@ -19,9 +19,6 @@
 #pragma link C++ class  AliTRDv2+;
 
 #pragma link C++ class  AliTRDmcTrack+;
-#pragma link C++ class  AliTRDsimple+;
-#pragma link C++ class  AliTRDsimpleMC+;
-#pragma link C++ class  AliTRDsimpleGen+;
 
 #pragma link C++ class  AliTRDdigitizer+;
 #pragma link C++ class  AliTRDSimParam+;
index 6045bb1..2370519 100644 (file)
@@ -7,9 +7,6 @@ SRCS= AliTRDhit.cxx \
       AliTRDv1.cxx \
       AliTRDv2.cxx \
       AliTRDmcTrack.cxx \
-      AliTRDsimple.cxx \
-      AliTRDsimpleMC.cxx \
-      AliTRDsimpleGen.cxx \
       AliTRDSimParam.cxx \
       AliTRDdigitizer.cxx