+/**************************************************************************
+ * 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. *
+ **************************************************************************/
+
+/*
+$Log$
+Revision 1.14 2000/04/17 09:37:33 kowal2
+removed obsolete AliTPCDigitsDisplay.C
+
+Revision 1.13.8.2 2000/04/10 08:33:44 kowal2
+
+Updated readout chambers
+
+Revision 1.13.8.1 2000/04/10 07:56:53 kowal2
+Not used anymore - removed
+
+Revision 1.13 1999/11/04 17:28:06 fca
+Correct barrel part of HV Degrader
+
+Revision 1.12 1999/10/08 06:27:23 fca
+Corrected bug in the HV degrader geometry, thanks to G.Tabary
+
+Revision 1.11 1999/10/04 13:39:54 fca
+Correct array index problem
+
+Revision 1.10 1999/09/29 09:24:34 fca
+Introduction of the Copyright and cvs Log
+
+*/
+
///////////////////////////////////////////////////////////////////////////////
// //
// Time Projection Chamber version 0 -- "coarse" TPC //
#include "AliRun.h"
#include <iostream.h>
#include <fstream.h>
-
#include "AliMC.h"
#include "AliConst.h"
#include "AliTPCParam.h"
-#include "AliTPCD.h"
+#include "AliTPCDigitsArray.h"
ClassImp(AliTPCv0)
{
//
// Creation of the TPC coarse geometry (version 0)
- // Origin Marek Kowalski Crakow
+ // Origin Marek Kowalski Cracow
//
//Begin_Html
/*
*/
//End_Html
- AliTPCParam * fTPCParam = &(fDigParam->GetParam());
Int_t *idtmed = fIdtmed->GetArray();
gMC->Gsposp("TPMH",1,"TGAS",0.,0.,0.,0,"ONLY",dm,3);
dm[0] = 78.;
- dm[2] = 82.;
+ dm[1] = 82.;
dm[2] = 0.1;
gMC->Gsposp("TPMH",2,"TGAS",0.,0.,0.,0,"ONLY",dm,3);
Int_t nOuterSector = fTPCParam->GetNOuterSector()/2;
- Float_t InSecLowEdge = fTPCParam->GetInSecLowEdge();
- Float_t InSecUpEdge = fTPCParam->GetInSecUpEdge();
+ Float_t InSecLowEdge = fTPCParam->GetInnerRadiusLow();
+ Float_t InSecUpEdge = fTPCParam->GetInnerRadiusUp();
- Float_t OuSecLowEdge = fTPCParam->GetOuSecLowEdge();
- Float_t OuSecUpEdge = fTPCParam->GetOuSecUpEdge();
+ Float_t OuSecLowEdge = fTPCParam->GetOuterRadiusLow();
+ Float_t OuSecUpEdge = fTPCParam->GetOuterRadiusUp();
Float_t SecThick = 2.225; // Al
- Float_t edge = fTPCParam->GetEdge();
// S (Inner) sectors
- dm[0] = InSecLowEdge*TMath::Tan(0.5*InnerOpenAngle)-edge;
- dm[1] = InSecUpEdge*TMath::Tan(0.5*InnerOpenAngle)-edge;
+ Float_t LowEdge = fTPCParam->GetInnerFrameSpace();
+
+ dm[0] = InSecLowEdge*TMath::Tan(0.5*InnerOpenAngle)-LowEdge;
+ dm[1] = InSecUpEdge*TMath::Tan(0.5*InnerOpenAngle)-LowEdge;
dm[2] = SecThick;
dm[3] = 0.5*(InSecUpEdge-InSecLowEdge);
// L (Outer) sectors
- dm[0] = OuSecLowEdge*TMath::Tan(0.5*OuterOpenAngle)-edge;
- dm[1] = OuSecUpEdge*TMath::Tan(0.5*OuterOpenAngle)-edge;
+ Float_t UpEdge = fTPCParam->GetOuterFrameSpace();
+
+ dm[0] = OuSecLowEdge*TMath::Tan(0.5*OuterOpenAngle)-UpEdge;
+ dm[1] = OuSecUpEdge*TMath::Tan(0.5*OuterOpenAngle)-UpEdge;
dm[2] = SecThick;
dm[3] = 0.5*(OuSecUpEdge-OuSecLowEdge);
gMC->Gspos("TPOV",1,"TPCO",0.,0.,0.,0,"ONLY");
-
- // G10 plugs
-
- dm[0] = 258.;
- dm[1] = 260.;
- dm[2] = 1.;
-
- gMC->Gsvolu("TPG1","TUBE",idtmed[8],dm,3);
- gMC->Gspos("TPG1",1,"TPCO",0.,0.,251.,0,"ONLY");
- gMC->Gspos("TPG1",2,"TPCO",0.,0.,-251.,0,"ONLY");
+
gMC->Gspos("TPCO",1,"TPC ",0.,0.,0.,0,"ONLY");
dm[7] = 50.;
dm[8] = 76.;
- dm[9] = -64.5;
+ dm[9] = 64.5;
dm[10] = 50.;
dm[11] = 76.;
dm[0] = 50.;
dm[1] = 50.5;
- dm[2] = 32.25;
+ dm[2] = 64.5;
gMC->Gsvolu("TIVB","TUBE",idtmed[9],dm,3);