]> git.uio.no Git - u/mrichter/AliRoot.git/blame - RICH/AliRICHChamber.cxx
Old behavior restored including feedback photons for backward compartability and...
[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.
48 // 4 5 6 |----> X
49 // 1 2 3 |
50 // 0 V Z
51 SetCenter(0,pParam->Offset(),0);//put to 2 position
52 switch(iModuleN){
53 case 0:
54 RotateX(pParam->AngleYZ());
55 fName="RICHc0";fTitle="RICH chamber 0";
56 break;
57 case 1:
58 RotateZ(pParam->AngleXY());
59 fName="RICHc1";fTitle="RICH chamber 1";
60 break;
61 case 2:
62 fName="RICHc2";fTitle="RICH chamber 2";
63 break;
64 case 3:
65 RotateZ(-pParam->AngleXY());
66 fName="RICHc3";fTitle="RICH chamber 3";
67 break;
68 case 4:
69