]>
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" |
df6a1959 | 16 | #include <Riostream.h> |
56148d0e | 17 | |
ed3ceb24 | 18 | ClassImp(AliRICHParam) |
e33758d8 | 19 | Bool_t AliRICHParam::fgIsWireSag =kTRUE; |
9d6f9427 | 20 | Bool_t AliRICHParam::fgIsResolveClusters =kTRUE; |
e33758d8 | 21 | Double_t AliRICHParam::fgAngleRot =-60; |
3582c1f9 | 22 | Int_t AliRICHParam::fgHV[kNsectors] ={2150,2100,2050,2000,2150,2150}; |
08479a10 | 23 | Int_t AliRICHParam::fgNsigmaTh =4; |
24 | Float_t AliRICHParam::fgSigmaThMean =1.5; | |
25 | Float_t AliRICHParam::fgSigmaThSpread =0.5; | |
ed3ceb24 | 26 | Float_t AliRICHParam::fSigmaThMap[kNCH][kNpadsX][kNpadsY]; |
08479a10 | 27 | |
28 | void AliRICHParam::GenSigmaThMap() | |
29 | { | |
53fd478b | 30 | // Generate the map of thresholds sigmas for all pads of all chambers |
08479a10 | 31 | for(Int_t iChamber=0;iChamber<kNCH;iChamber++) |
32 | for(Int_t ipadX=0;ipadX<NpadsX();ipadX++) | |
33 | for(Int_t ipadY=0;ipadY<NpadsY();ipadY++) | |
34 | fSigmaThMap[iChamber][ipadX][ipadY] = SigmaThMean()+(1.-2*gRandom->Rndm())*SigmaThSpread(); | |
f540341d | 35 | // Info("GenSigmaThMap"," Threshold map generated for all RICH chambers"); |
08479a10 | 36 | } |
3582c1f9 | 37 | //__________________________________________________________________________________________________ |
38 | void AliRICHParam::Print() | |
39 | { | |
40 | cout<<"\nPads in chamber ("<<NpadsX()<<','<<NpadsY()<<") in sector ("<<NpadsXsec()<<','<<NpadsYsec()<<')'<<endl; | |
41 | cout<<"PC size ("<<PcSizeX()<<','<<PcSizeY()<<") sector size ("<<SectorSizeX()<<','<<SectorSizeY()<<") pad size ("<<PadSizeX()<<',' | |
42 | <<PadSizeY()<<") Dead zone "<<DeadZone()<<endl; | |
43 | cout<<"Anode wire pitch "<<WirePitch()<<" Anode-Cathode gap "<<AnodeCathodeGap()<<" Protection wires-cathode gap "<<ProximityGap()<<endl<<endl; | |
44 | } | |
45 | //__________________________________________________________________________________________________ |