]> git.uio.no Git - u/mrichter/AliRoot.git/blob - RICH/AliRICHv0.cxx
fgMCEvGen changed to fMCEvGen;
[u/mrichter/AliRoot.git] / RICH / AliRICHv0.cxx
1 /**************************************************************************
2  * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
3  *                                                                        *
4  * Author: The ALICE Off-line Project.                                    *
5  * Contributors are mentioned in the code where appropriate.              *
6  *                                                                        *
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  **************************************************************************/
15
16 /* $Id$ */
17
18
19 /////////////////////////////////////////////////////////////
20 //  Manager and hits classes for set: RICH default version //
21 /////////////////////////////////////////////////////////////
22
23 #include "Riostream.h"
24
25 #include <TNode.h> 
26 #include <TRandom.h> 
27 #include <TTUBE.h>
28 #include <TVirtualMC.h>
29
30 #include "AliConst.h" 
31 #include "AliPDG.h" 
32 #include "AliRICHGeometry.h"
33 #include "AliRICHResponse.h"
34 #include "AliRICHResponseV0.h"
35 #include "AliRICHSegmentationV0.h"
36 #include "AliRICHv0.h"
37 #include "AliRun.h"
38
39 ClassImp(AliRICHv0)
40     
41 //___________________________________________
42 AliRICHv0::AliRICHv0(const char *name, const char *title)
43           :AliRICH(name,title)
44 {
45 //
46 // Version 0
47 // Default Segmentation, no hits
48     AliRICHSegmentationV0* segmentation = new AliRICHSegmentationV0;
49 //
50 //  Segmentation parameters
51     segmentation->SetPadSize(0.84,0.80);
52     segmentation->SetDAnod(0.84/2);
53 //
54 //  Geometry parameters
55     AliRICHGeometry* geometry = new AliRICHGeometry;
56     geometry->SetGapThickness(8);
57     geometry->SetProximityGapThickness(.4);
58     geometry->SetQuartzLength(131);
59     geometry->SetQuartzWidth(126.2);
60     geometry->SetQuartzThickness(.5);
61     geometry->SetOuterFreonLength(131);
62     geometry->SetOuterFreonWidth(40.3);
63     geometry->SetInnerFreonLength(131);
64     geometry->SetInnerFreonWidth(40.3);
65     geometry->SetFreonThickness(1.5);
66 //
67 //  Response parameters
68     AliRICHResponseV0*  response   = new AliRICHResponseV0;
69     response->SetSigmaIntegration(5.);
70     response->SetChargeSlope(27.);
71     response->SetChargeSpread(0.18, 0.18);
72     response->SetMaxAdc(4096);
73     response->SetAlphaFeedback(0.036);
74     response->SetEIonisation(26.e-9);
75     response->SetSqrtKx3(0.77459667);
76     response->SetKx2(0.962);
77     response->SetKx4(0.379);
78     response->SetSqrtKy3(0.77459667);
79     response->SetKy2(0.962);
80     response->SetKy4(0.379);
81     response->SetPitch(0.25);
82     response->SetWireSag(0);                     // 1->On, 0->Off
83     response->SetVoltage(2150);                  // Should only be 2000, 2050, 2100 or 2150
84 //
85 //    AliRICH *RICH = (AliRICH *) gAlice->GetDetector("RICH"); 
86     
87     fCkovNumber=0;
88     fFreonProd=0;
89     Int_t i=0;
90     
91     fChambers = new TObjArray(kNCH);
92     for (i=0; i<kNCH; i++) {
93       
94       //PH      (*fChambers)[i] = new AliRICHChamber();  
95       fChambers->AddAt(new AliRICHChamber(), i);  
96       
97     }
98   
99     for (i=0; i<kNCH; i++) {
100       SetGeometryModel(i,geometry);
101       SetSegmentationModel(i, segmentation);
102       SetResponseModel(i, response);
103     }
104 }//name ctor
105 //______________________________________________________________________________
106 void AliRICHv0::StepManager()
107 {//
108 }//AliRICHv0::StepManager()
109 //______________________________________________________________________________