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 **************************************************************************/
18 ///////////////////////////////////////////////////////////////////////////
21 // This class contains the base procedures for the VZERO detector //
22 // All comments should be sent to Brigitte CHEYNIS : //
23 // b.cheynis@ipnl.in2p3.fr //
26 ///////////////////////////////////////////////////////////////////////////
28 #include <Riostream.h>
29 #include <Riostream.h>
34 #include "TGeometry.h"
37 #include "AliVZEROdigit.h"
39 #include "AliVZEROhit.h"
44 //_____________________________________________________________________________
45 AliVZERO::AliVZERO(const char *name, const char *title)
46 : AliDetector(name,title)
49 // Standard constructor for VZERO Detector
52 fIshunt = 1; // All hits are associated with primary particles
54 fHits = new TClonesArray("AliVZEROhit", 400);
55 fDigits = new TClonesArray("AliVZEROdigit",400);
57 gAlice->AddHitList(fHits);
59 // fDigits = new TClonesArray("AliVZEROdigit",400) ;
61 fThickness = 3.1; // total thickness of the V0R box
62 fThickness1 = 1.0; // thickness of the thickest cell (2.5 in version 0)
73 //_____________________________________________________________________________
82 //_____________________________________________________________________________
83 void AliVZERO::BuildGeometry()
86 // Build simple ROOT TNode geometry for event display
90 //_____________________________________________________________________________
91 void AliVZERO::CreateGeometry()
94 // Build simple ROOT TNode geometry for event display
97 //_____________________________________________________________________________
98 void AliVZERO::CreateMaterials()
101 // Build simple ROOT TNode geometry for event display
107 //_____________________________________________________________________________
108 Int_t AliVZERO::DistanceToPrimitive(Int_t px, Int_t py)
111 // Calculate the distance from the mouse to the VZERO on the screen
118 //-------------------------------------------------------------------------
119 void AliVZERO::Init()
122 // Initialise the VZERO after it has been built
127 //-------------------------------------------------------------------------
129 void AliVZERO::SetMaxStepQua(Float_t p1)
134 //___________________________________________
135 void AliVZERO::SetMaxStepAlu(Float_t p1)
140 //___________________________________________
141 void AliVZERO::SetMaxDestepQua(Float_t p1)
146 //___________________________________________
147 void AliVZERO::SetMaxDestepAlu(Float_t p1)