Avoid warning.
[u/mrichter/AliRoot.git] / RICH / AliRICHreco.h
CommitLineData
3165deda 1#ifndef AliRICHreco_h
2#define AliRICHreco_h
3
4
5/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
6 * See cxx source for full Copyright notice */
7
8/* $Id: */
9
10#include <TObject.h>
11
12class AliRICHreco : public TObject
13{
14public:
15// ctor & dtor:
16 inline AliRICHreco();
17 inline AliRICHreco(Int_t iMipDigitOrClustN,Double_t dConeAngle,Double_t dPartOfRing,Double_t adPhotonAngles[],Int_t iNphotons);
18 virtual ~AliRICHreco() {}
19// inline methods:
20 Double_t GetConeAngle() const{return fdConeAngle;}
21 Int_t GetNphotons() const{return fNphotons;}
22 Int_t GetMipNumber() const{return fMipDigitOrClusterN;}
23 static Int_t GetArraySize() {return 25;}
24protected:
25 Int_t fiArraySize; //! Array size
26 Int_t fMipDigitOrClusterN; // Reference to MIP digit or MIP cluster in fDigits or fRawClusters
27 Int_t fNphotons; // Actual number of photons used in reconstruction
28 Double_t fdConeAngle; // Cerenkov cone angle at the entrance of radiator for this track
29 Double_t fdPartOfRing; // The fraction of the photons ring which does not touch the frame
30 Double_t fadPhotonAngles[25]; // Array of individual impact angles for fiNphotons photons
31
32 ClassDef(AliRICHreco,1) // Reconstructed track information
33};
34
35inline AliRICHreco::AliRICHreco()
36{
37 fMipDigitOrClusterN=fNphotons=0;
38 fdConeAngle=fdPartOfRing=0;
39 for(Int_t i=0;i<GetArraySize();i++) fadPhotonAngles[i]=0;
40}//inline AliRICHreco::AliRICHreco()
41
42inline AliRICHreco::AliRICHreco(Int_t iMipDigitOrClusterN,Double_t dConeAngle,Double_t dPartOfRing, Double_t adPhotonAngles[], Int_t iNphotons)
43{
44 fMipDigitOrClusterN=iMipDigitOrClusterN;
45 fdConeAngle=dConeAngle;
46 fdPartOfRing=dPartOfRing;
47 if(iNphotons<GetArraySize())
48 fNphotons=iNphotons;
49 else
50 fNphotons=GetArraySize();
51
52 for(Int_t i=0;i<iNphotons;i++) fadPhotonAngles[i]=adPhotonAngles[i];
53}//inline AliRICHreco::AliRICHreco(Double_t dConeAngle,Double_t dPartOfRing, Double_t adPhotonAngle, Int_t iNphotons)
54
55#endif //AliRICHreco_h