]>
Commit | Line | Data |
---|---|---|
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 | 18 | ClassImp(AliRICHParam) |
e33758d8 | 19 | Bool_t AliRICHParam::fgIsWireSag =kTRUE; |
9d6f9427 | 20 | Bool_t AliRICHParam::fgIsResolveClusters =kTRUE; |
e42a7b46 | 21 | Bool_t AliRICHParam::fgIsRadioSrc =kFALSE; |
e33758d8 | 22 | Double_t AliRICHParam::fgAngleRot =-60; |
e42a7b46 | 23 | Int_t AliRICHParam::fgHV[kNsectors] ={2050,2050,2050,2050,2050,2050}; |
08479a10 | 24 | Int_t AliRICHParam::fgNsigmaTh =4; |
e42a7b46 | 25 | Float_t AliRICHParam::fgSigmaThMean =1.132; //QDC |
26 | Float_t AliRICHParam::fgSigmaThSpread =0.035; // | |
08479a10 | 27 | |
3582c1f9 | 28 | //__________________________________________________________________________________________________ |
e42a7b46 | 29 | void AliRICHParam::Print(Option_t*) |
3582c1f9 | 30 | { |
998b831f | 31 | AliInfo(Form("Pads in chamber (%3i,%3i) in sector (%2i,%2i)",NpadsX(),NpadsY(),NpadsXsec(),NpadsYsec())); |
32 | ToAliInfo(fpChambers->Print()); | |
33 | }//Print() | |
3582c1f9 | 34 | //__________________________________________________________________________________________________ |
e42a7b46 | 35 | void AliRICHParam::CreateChambers() |
36 | { | |
37 | //Create all RICH Chambers on each call. Previous chambers deleted. | |
38 | if(fpChambers) delete fpChambers; | |
998b831f | 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 | } | |
e42a7b46 | 46 | fpChambers->SetOwner(); |
998b831f | 47 | }//CreateChambers() |