]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Remove AliTRDv0
authorcblume <cblume@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 19 Jun 2007 14:10:32 +0000 (14:10 +0000)
committercblume <cblume@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 19 Jun 2007 14:10:32 +0000 (14:10 +0000)
TRD/AliTRDv0.cxx [deleted file]
TRD/AliTRDv0.h [deleted file]
TRD/TRDsimLinkDef.h
TRD/libTRDsim.pkg

diff --git a/TRD/AliTRDv0.cxx b/TRD/AliTRDv0.cxx
deleted file mode 100644 (file)
index ad740a4..0000000
+++ /dev/null
@@ -1,187 +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$ */
-
-///////////////////////////////////////////////////////////////////////////////
-//                                                                           //
-//  Transition Radiation Detector version 0 -- fast simulator                //
-//                                                                           //
-///////////////////////////////////////////////////////////////////////////////
-
-#include <stdlib.h> 
-
-#include <TLorentzVector.h>
-#include <TMath.h>
-#include <TRandom.h>
-#include <TVector.h> 
-#include <TVirtualMC.h>
-
-#include "AliConst.h"
-#include "AliRun.h"
-#include "AliMC.h"
-
-#include "AliTRDgeometry.h"
-#include "AliTRDhit.h"
-#include "AliTRDv0.h"
-
-ClassImp(AliTRDv0)
-  
-//_____________________________________________________________________________
-AliTRDv0::AliTRDv0()
-  :AliTRD() 
-  ,fHitsOn(0)
-{
-  //
-  // AliTRDv0 default constructor
-  //
-
-}
-
-//_____________________________________________________________________________
-AliTRDv0::AliTRDv0(const char *name, const char *title) 
-  :AliTRD(name,title) 
-  ,fHitsOn(0)
-{
-  //
-  // Standard constructor for Transition Radiation Detector version 0
-  //
-
-}
-
-//_____________________________________________________________________________
-AliTRDv0::~AliTRDv0()
-{
-  //
-  // AliTRDv0 destructor
-  //
-
-}
-
-//_____________________________________________________________________________
-void AliTRDv0::CreateGeometry()
-{
-  //
-  // Create the GEANT geometry for the Transition Radiation Detector - Version 0
-  // This version covers the full azimuth. 
-  //
-
-  // Check that FRAME is there otherwise we have no place where to put the TRD
-  AliModule* frame = gAlice->GetModule("FRAME");
-  if (!frame) {
-    AliError("TRD needs FRAME to be present\n");
-    return;
-  }
-
-  // Define the chambers
-  AliTRD::CreateGeometry();
-
-}
-
-//_____________________________________________________________________________
-void AliTRDv0::CreateMaterials()
-{
-  //
-  // Create materials for the Transition Radiation Detector
-  //
-
-  AliTRD::CreateMaterials();
-
-}
-
-//_____________________________________________________________________________
-void AliTRDv0::Init() 
-{
-  //
-  // Initialize Transition Radiation Detector after geometry is built
-  //
-
-  AliTRD::Init();
-
-  AliDebug(1,"          Fast simulator\n\n");
-  AliDebug(1,"++++++++++++++++++++++++++++++++++++++++++++++");
-  
-}
-
-//_____________________________________________________________________________
-void AliTRDv0::StepManager()
-{
-  //
-  // Procedure called at every step in the TRD
-  // Fast simulator. If switched on, a hit is produced when a track
-  // crosses the border between amplification region and pad plane.
-  //
-
-  Int_t   pla = 0; 
-  Int_t   cha = 0;
-  Int_t   sec = 0; 
-
-  Float_t hits[3];
-  Int_t   det;
-
-  TLorentzVector p;
-
-  // Use pad plane as sensitive volume
-  TString  cIdSens = "L";
-  TString  cIdCurrent;
-  Char_t   cIdChamber[3];
-           cIdChamber[2] = 0;
-
-  const Int_t kNplan = AliTRDgeometry::Nplan();
-
-  // Writing out hits enabled?
-  if (!(fHitsOn)) {
-    return;
-  }
-
-  // Use only charged tracks and count them only once per volume
-  if (gMC->TrackCharge()    && 
-      gMC->IsTrackEntering()) {
-    
-    // Check on sensitive volume
-    cIdCurrent = gMC->CurrentVolName();
-    if (cIdSens == cIdCurrent[1]) {
-
-      gMC->TrackPosition(p);
-      for (Int_t i = 0; i < 3; i++) {
-        hits[i] = p[i];
-      }
-
-      // The sector number (0 - 17)
-      // The numbering goes clockwise and starts at y = 0
-      Float_t phi = kRaddeg*TMath::ATan2(hits[0],hits[1]);
-      if (phi < 90.0) {
-        phi = phi + 270.0;
-      }
-      else {
-        phi = phi -  90.0;
-      }
-      sec = ((Int_t) (phi / 20.0));
-
-      // The plane and chamber number
-      cIdChamber[0]   = cIdCurrent[2];
-      cIdChamber[1]   = cIdCurrent[3];
-      Int_t idChamber = atoi(cIdChamber);
-      cha = ((Int_t) idChamber / kNplan);
-      pla = ((Int_t) idChamber % kNplan);
-      det = fGeometry->GetDetector(pla,cha,sec);
-
-      AddHit(gAlice->GetMCApp()->GetCurrentTrackNumber(),det,hits,0,0,kTRUE);       
-
-    }
-
-  }  
-
-}
diff --git a/TRD/AliTRDv0.h b/TRD/AliTRDv0.h
deleted file mode 100644 (file)
index 6349b60..0000000
+++ /dev/null
@@ -1,47 +0,0 @@
-#ifndef ALITRDV0_H
-#define ALITRDV0_H
-/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
- * See cxx source for full Copyright notice                               */
-
-/* $Id$ */
-
-////////////////////////////////////////////////////////////////////////////
-//                                                                        //
-//  Manager and hits classes for set: TRD version 0                       //
-//                                                                        //
-////////////////////////////////////////////////////////////////////////////
-#include "AliTRD.h"
-
-class AliTRDsim;
-
-class AliTRDv0 : public AliTRD {
-
- public:
-
-  AliTRDv0();
-  AliTRDv0(const char *name, const char *title);
-  virtual ~AliTRDv0();
-
-  virtual Int_t    IsVersion() const           { return 0;    };
-  virtual void     Init();
-
-  virtual void     CreateGeometry();
-  virtual void     CreateMaterials();
-
-  virtual void     StepManager();
-  virtual void     SetHits()                   { fHitsOn = 1; };
-          void     SetTR(Bool_t )              { };
-
-          Bool_t   GetTR() const               { return 0;    };
-
- protected:
-
-          Int_t    fHitsOn;     //  Used to switch hits on
-
-  ClassDef(AliTRDv0,2)          //  Transition Radiation Detector version 0 (fast simulator)
-
-};
-
-#endif
index 71f27de662f11ea47e714bb81dcb139c77fa7a6b..007c78762bb23c7ab426f028cdfacc9a94976142 100644 (file)
@@ -12,7 +12,6 @@
 #pragma link C++ class  AliTRDpoints+;
 #pragma link C++ class  AliTRDsim+;
 #pragma link C++ class  AliTRD+;
 #pragma link C++ class  AliTRDpoints+;
 #pragma link C++ class  AliTRDsim+;
 #pragma link C++ class  AliTRD+;
-#pragma link C++ class  AliTRDv0+;
 #pragma link C++ class  AliTRDv1+;
 #pragma link C++ class  AliTRDmcTrack+;
 #pragma link C++ class  AliTRDdigitizer+;
 #pragma link C++ class  AliTRDv1+;
 #pragma link C++ class  AliTRDmcTrack+;
 #pragma link C++ class  AliTRDdigitizer+;
index 5689dcb14149ec733d96eda66068212170a6d806..acb966a12766fb23b428877315b8d6047334a007 100644 (file)
@@ -2,7 +2,6 @@ SRCS= AliTRDhit.cxx \
       AliTRDpoints.cxx \
       AliTRDsim.cxx \
       AliTRD.cxx \
       AliTRDpoints.cxx \
       AliTRDsim.cxx \
       AliTRD.cxx \
-      AliTRDv0.cxx \
       AliTRDv1.cxx \
       AliTRDmcTrack.cxx \
       AliTRDSimParam.cxx \
       AliTRDv1.cxx \
       AliTRDmcTrack.cxx \
       AliTRDSimParam.cxx \