1 /**************************************************************************
2 * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 * Author: The ALICE Off-line Project. *
5 * Contributors are mentioned in the code where appropriate. *
7 * Permission to use, copy, modify and distribute this software and its *
8 * documentation strictly for non-commercial purposes is hereby granted *
9 * without fee, provided that the above copyright notice appears in all *
10 * copies and that both the copyright notice and this permission notice *
11 * appear in the supporting documentation. The authors make no claims *
12 * about the suitability of this software for any purpose. It is *
13 * provided "as is" without express or implied warranty. *
14 **************************************************************************/
20 ///////////////////////////////////////////////////////////////////////////////
22 // Transition Radiation Detector version 2 -- slow simulator with //
23 // detailed geometry //
25 ///////////////////////////////////////////////////////////////////////////////
36 #include "AliTRDgeometryDetail.h"
40 //_____________________________________________________________________________
41 AliTRDv2::AliTRDv2():AliTRDv1()
44 // Default constructor
49 //_____________________________________________________________________________
50 AliTRDv2::AliTRDv2(const char *name, const char *title)
51 :AliTRDv1(name, title)
54 // Standard constructor for Transition Radiation Detector version 2
57 // Check that FRAME is there otherwise we have no place where to
59 AliModule* frame = gAlice->GetModule("FRAME");
61 Error("Ctor","TRD needs FRAME to be present\n");
65 if (frame->IsVersion() == 1) {
66 // Detailed geometry without hole
67 if (fGeometry) delete fGeometry;
68 fGeometry = new AliTRDgeometryDetail();
71 Error("Ctor","Could not find valid FRAME version 1\n");
77 //_____________________________________________________________________________
78 AliTRDv2::AliTRDv2(const AliTRDv2 &trd)
84 ((AliTRDv2 &) trd).Copy(*this);
88 //_____________________________________________________________________________
92 // AliTRDv2 destructor
97 //_____________________________________________________________________________
98 AliTRDv2 &AliTRDv2::operator=(const AliTRDv2 &trd)
101 // Assignment operator
104 if (this != &trd) ((AliTRDv2 &) trd).Copy(*this);
109 //_____________________________________________________________________________
110 void AliTRDv2::Copy(TObject &trd)
118 //_____________________________________________________________________________
119 void AliTRDv2::CreateGeometry()
122 // Create the geometry for the Transition Radiation Detector version 2
125 // Check that FRAME is there otherwise we have no place where to put the TRD
126 AliModule* frame = gAlice->GetModule("FRAME");
129 // Define the chambers
130 AliTRD::CreateGeometry();
134 //_____________________________________________________________________________
135 void AliTRDv2::CreateMaterials()
138 // Create materials for the Transition Radiation Detector version 2
141 AliTRD::CreateMaterials();