]> git.uio.no Git - u/mrichter/AliRoot.git/blob - RICH/AliRICHParam.cxx
Additional protection
[u/mrichter/AliRoot.git] / RICH / AliRICHParam.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 #include "AliRICHParam.h"
16 #include "AliRICHChamber.h"
17
18 ClassImp(AliRICHParam)
19 Bool_t   AliRICHParam::fgIsWireSag            =kTRUE;
20 Bool_t   AliRICHParam::fgIsResolveClusters    =kTRUE;
21 Bool_t   AliRICHParam::fgIsRadioSrc           =kFALSE;
22 Double_t AliRICHParam::fgAngleRot             =-60;
23 Int_t    AliRICHParam::fgHV[kNsectors]        ={2050,2050,2050,2050,2050,2050};
24 Int_t    AliRICHParam::fgNsigmaTh             =4;
25 Float_t  AliRICHParam::fgSigmaThMean          =1.132; //QDC 
26 Float_t  AliRICHParam::fgSigmaThSpread        =0.035; //     
27
28 //__________________________________________________________________________________________________
29 void AliRICHParam::Print(Option_t*)
30 {
31   AliInfo(Form("Pads in chamber (%3i,%3i) in sector (%2i,%2i)",NpadsX(),NpadsY(),NpadsXsec(),NpadsYsec()));
32   ToAliInfo(fpChambers->Print());
33 }//Print()
34 //__________________________________________________________________________________________________
35 void AliRICHParam::CreateChambers()
36 {
37 //Create all RICH Chambers on each call. Previous chambers deleted.
38   if(fpChambers) delete fpChambers;
39   if(IsRadioSrc()){ 
40     fpChambers=new TObjArray(1);//test beam configuration 1 chamber
41     fpChambers->AddAt(new AliRICHChamber(0),0);  
42   }else{ 
43     fpChambers=new TObjArray(kNchambers);//normal configuration 7 chambers
44     for(int iChamberN=0;iChamberN<kNchambers;iChamberN++)  fpChambers->AddAt(new AliRICHChamber(iChamberN+1),iChamberN);  
45   }
46   fpChambers->SetOwner();
47 }//CreateChambers()