1 // **************************************************************************
2 // * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 // * Author: The ALICE Off-line Project. *
5 // * Contributors are mentioned in the code where appropriate. *
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"
17 ClassImp(AliRICHParam)
18 Bool_t AliRICHParam::fgIsWireSag =kTRUE;
19 Bool_t AliRICHParam::fgIsResolveClusters =kTRUE;
20 Double_t AliRICHParam::fgAngleRot =-60;
21 Int_t AliRICHParam::fgHV =2150;
22 Int_t AliRICHParam::fgNsigmaTh =4;
23 Float_t AliRICHParam::fgSigmaThMean =1.5;
24 Float_t AliRICHParam::fgSigmaThSpread =0.5;
25 Float_t AliRICHParam::fSigmaThMap[kNCH][kNpadsX][kNpadsY];
27 void AliRICHParam::GenSigmaThMap()
29 // Generate the map of thresholds sigmas for all pads of all chambers
30 for(Int_t iChamber=0;iChamber<kNCH;iChamber++)
31 for(Int_t ipadX=0;ipadX<NpadsX();ipadX++)
32 for(Int_t ipadY=0;ipadY<NpadsY();ipadY++)
33 fSigmaThMap[iChamber][ipadX][ipadY] = SigmaThMean()+(1.-2*gRandom->Rndm())*SigmaThSpread();
34 Info("GenSigmaThMap"," Threshold map generated for all RICH chambers");