]> git.uio.no Git - u/mrichter/AliRoot.git/blame - RICH/AliRICHChamber.cxx
Change needed on Alpha
[u/mrichter/AliRoot.git] / RICH / AliRICHChamber.cxx
CommitLineData
2e5f0f7b 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
803d1ab0 16/* $Id$ */
2e5f0f7b 17
18#include "AliRICHChamber.h"
853634d3 19#include "AliRICHConst.h" //for r2d
20#include "AliRICHParam.h"
2e5f0f7b 21#include <TRandom.h>
488e98ba 22#include <TRotMatrix.h>
853634d3 23#include "AliRICHTresholdMap.h"
24#include "AliSegmentation.h"
25#include "AliRICHSegmentationV0.h"
26#include "AliRICHGeometry.h"
27#include "AliRICHResponse.h"
2e5f0f7b 28
29ClassImp(AliRICHChamber)
853634d3 30//______________________________________________________________________________
2e5f0f7b 31AliRICHChamber::AliRICHChamber()
853634d3 32{//default ctor
33 fpParam=0;
34 fpRotMatrix=0;
35
2e5f0f7b 36 fSegmentation = 0;
4faf338d 37 fResponse = 0;
38 fGeometry = 0;
edf34242 39 fReconstruction = 0;
4faf338d 40 fTresh = 0;
41 frMin = 0.1;
42 frMax = 140;
ef42d733 43 for(Int_t i=0; i<50; ++i) fIndexMap[i] = 0;
2e5f0f7b 44}
853634d3 45//______________________________________________________________________________
46AliRICHChamber::AliRICHChamber(Int_t iModuleN,AliRICHParam *pParam)
47{//named ctor. Defines all geometry parameters for the given module.
3ea9cb08 48 // 6 7 |----> X
49 // 3 4 5 |
50 // 1 2 V Z
51 SetCenter(0,pParam->Offset()-pParam->GapThickness()/2,0);//put to up position
853634d3 52 switch(iModuleN){
853634d3 53 case 1:
3ea9cb08 54