]> git.uio.no Git - u/mrichter/AliRoot.git/blame - RICH/AliRICHParam.cxx
Bug Correction
[u/mrichter/AliRoot.git] / RICH / AliRICHParam.cxx
CommitLineData
53fd478b 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// **************************************************************************
56148d0e 15#include "AliRICHParam.h"
e42a7b46 16#include "AliRICHChamber.h"
56148d0e 17
ed3ceb24 18ClassImp(AliRICHParam)
e33758d8 19Bool_t AliRICHParam::fgIsWireSag =kTRUE;
9d6f9427 20Bool_t AliRICHParam::fgIsResolveClusters =kTRUE;
e42a7b46 21Bool_t AliRICHParam::fgIsRadioSrc =kFALSE;
e33758d8 22Double_t AliRICHParam::fgAngleRot =-60;
e42a7b46 23Int_t AliRICHParam::fgHV[kNsectors] ={2050,2050,2050,2050,2050,2050};
08479a10 24Int_t AliRICHParam::fgNsigmaTh =4;
e42a7b46 25Float_t AliRICHParam::fgSigmaThMean =1.132; //QDC
26Float_t AliRICHParam::fgSigmaThSpread =0.035; //
08479a10 27
3582c1f9 28//__________________________________________________________________________________________________
e42a7b46 29void AliRICHParam::Print(Option_t*)
3582c1f9 30{
e42a7b46 31 ::Info("","Pads in chamber (%3i,%3i) in sector (%2i,%2i)",NpadsX(),NpadsY(),NpadsXsec(),NpadsYsec());
32 fpChambers->Print();
3582c1f9 33}
34//__________________________________________________________________________________________________
e42a7b46 35void AliRICHParam::CreateChambers()
36{
37//Create all RICH Chambers on each call. Previous chambers deleted.
38 if(fpChambers) delete fpChambers;
39 fpChambers=new TObjArray(kNchambers);
40 fpChambers->SetOwner();
41 for(int iChamberN=0;iChamberN<kNchambers;iChamberN++) fpChambers->AddAt(new AliRICHChamber(iChamberN+1),iChamberN);
42}//void AliRICH::CreateChambers()