re-direct warnings of rmkdepend about not found system include files
[u/mrichter/AliRoot.git] / RICH / AliRICH.h
CommitLineData
2f614988 1#ifndef AliRICH_h
2#define AliRICH_h
2e5f0f7b 3
3da30618 4/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
5 * See cxx source for full Copyright notice */
6
c11ee6f0 7#include <TObjArray.h>
853634d3 8#include <TClonesArray.h>
c021cb15 9#include <TLorentzVector.h>
c11ee6f0 10#include <AliDetector.h>
853634d3 11#include <AliHit.h>
12#include <AliDigit.h>
543d5224 13
dfb4e77d 14#include "AliRICHConst.h"
15#include "AliRICHChamber.h"
cb8189e7 16#include "AliRICHParam.h"
17
c60862bf 18#include "AliRICHSDigit.h"
853634d3 19
c021cb15 20//__________________AliRICHhit______________________________________________________________________
21//__________________________________________________________________________________________________
22//__________________________________________________________________________________________________
853634d3 23class AliRICHhit : public AliHit
24{
25public:
26 inline AliRICHhit();
27 inline AliRICHhit(Int_t fIshunt, Int_t track, Int_t *vol, Float_t *hits);
c021cb15 28 inline AliRICHhit(Int_t track,Int_t iPID,Int_t iChamber,TLorentzVector x4,Float_t eloss);
853634d3 29 virtual ~AliRICHhit() {;}
30
c60862bf 31 Int_t C() {return fChamber;}
853634d3 32 Int_t Chamber() {return fChamber;}
c60862bf 33 Int_t Pid() {return fPid;}
34 Int_t Particle() {return fPid;}
853634d3 35 Float_t Theta() {return fTheta;}
36 Float_t Phi() {return fPhi;}
37 Float_t Tlength() {return fTlength;}
38 Float_t Eloss() {return fEloss;}
39 Float_t Loss() {return fLoss;}
c021cb15 40 Float_t PHfirst() {return fPHfirst;}
41 Float_t PHlast() {return fPHlast;}
853634d3 42 Float_t MomX() {return fMomX;}
43 Float_t MomY() {return fMomY;}
44 Float_t MomZ() {return fMomZ;}
1774a484 45 Float_t CerenkovAngle() {return fCerenkovAngle;}
46 Float_t MomFreoX() {return fMomFreoX;}
47 Float_t MomFreoY() {return fMomFreoY;}
48 Float_t MomFreoZ() {return fMomFreoZ;}
543d5224 49 void Print(Option_t *option="")const; //virtual
853634d3 50protected:
c021cb15 51 Int_t fChamber; //chamber number
c60862bf 52 Int_t fPid; //particle code
1774a484 53 Float_t fTheta,fPhi ; //incident theta phi angles in degrees
c021cb15 54 Float_t fTlength; //track length inside the chamber
1774a484 55 Float_t fEloss; //ionisation energy loss in gas
c021cb15 56 Float_t fPHfirst; //first padhit
57 Float_t fPHlast; //last padhit
58 Float_t fLoss; // did it hit the freon?
59 Float_t fMomX,fMomY,fMomZ; //momentum at photochatode entry point
60 Float_t fNPads; // Pads hit
61 Float_t fCerenkovAngle; // Dummy cerenkov angle
62 Float_t fMomFreoX,fMomFreoY,fMomFreoZ; //momentum at freon entry point
63 ClassDef(AliRICHhit,1) //RICH hit class
853634d3 64};//class AliRICHhit
c021cb15 65
66 //__________________________________________________________________________________________________
853634d3 67AliRICHhit::AliRICHhit()
68 :AliHit()
69{//default ctor
c60862bf 70 fChamber=fPid=kBad;
c021cb15 71 fTheta=fPhi=fTlength=fEloss=fPHfirst=fPHlast=fLoss=kBad;
72 fMomX=fMomY=fMomZ=fNPads=fCerenkovAngle=fMomFreoX=fMomFreoY=fMomFreoZ=kBad;
543d5224 73}
c021cb15 74//__________________________________________________________________________________________________
75AliRICHhit::AliRICHhit(Int_t shunt, Int_t track, Int_t *vol, Float_t *hit):
853634d3 76 AliHit(shunt, track)
77{//ctor
78 fChamber=vol[0];
c60862bf 79 fPid=(Int_t)hit[0];
c021cb15 80 fX=hit[1];fY=hit[2];fZ=hit[3];
81 fTheta=hit[4];fPhi=hit[5];
82 fTlength=hit[6];
83 fEloss=hit[7];
84 fPHfirst=(Int_t)hit[8];
85 fPHlast=(Int_t)hit[9];
86 fLoss=hit[13];
87 fMomX=hit[14];fMomY=hit[15];fMomZ=hit[16];
88 fNPads=hit[17];
89 fCerenkovAngle=hit[18];
90 fMomFreoX=hit[19];fMomFreoY=hit[20];fMomFreoZ=hit[21];
543d5224 91}
c021cb15 92//__________________________________________________________________________________________________
93AliRICHhit::AliRICHhit(Int_t track,Int_t iPID,Int_t iChamber,TLorentzVector x4,Float_t eloss):
94 AliHit(0, track)
95{//ctor
96 fChamber=iChamber;
c60862bf 97 fPid=iPID;
c021cb15 98 fX=x4.X();fY=x4.Y();fZ=x4.Z();
99 fEloss=eloss;
543d5224 100}
c021cb15 101
102//__________________AliRICHCerenkov_________________________________________________________________
103//__________________________________________________________________________________________________
104//__________________________________________________________________________________________________
853634d3 105class AliRICHCerenkov: public AliHit
106{
107public:
108 inline AliRICHCerenkov();
109 inline AliRICHCerenkov(Int_t fIshunt, Int_t track, Int_t *vol, Float_t *Cerenkovs);
110 virtual ~AliRICHCerenkov() {;}
111public:
c021cb15 112 Int_t fChamber; //chamber number
113 Float_t fTheta,fPhi; //incident theta phi angles in degrees
114 Float_t fTlength; //track length inside the chamber
115 Float_t fEloss; //ionisation energy loss in gas
116 Int_t fPHfirst; //first padhit
117 Int_t fPHlast; //last padhit
118 Int_t fCMother; //index of mother particle
119 Float_t fLoss; //nature of particle loss
120 Float_t fIndex; //index of photon
121 Float_t fProduction; //point of production
122 Float_t fMomX,fMomY,fMomZ; //local Momentum
853634d3 123 Float_t fNPads; // Pads hit
124 Float_t fCerenkovAngle; // Cerenkov Angle
125
126 ClassDef(AliRICHCerenkov,1) //RICH cerenkov class
127};//class AliRICHCerenkov
c021cb15 128
129//__________________________________________________________________________________________________
853634d3 130AliRICHCerenkov::AliRICHCerenkov()
131{//ctor
c021cb15 132 fChamber=kBad;
133 fX=fY=fZ=fTheta=fPhi=fTlength=fEloss=kBad;
134 fPHfirst=fPHlast=fCMother=kBad;
135 fLoss=fIndex=fProduction=fMomX=fMomY=fMomZ=fNPads=fCerenkovAngle=kBad;
543d5224 136}
c021cb15 137//__________________________________________________________________________________________________
853634d3 138AliRICHCerenkov::AliRICHCerenkov(Int_t shunt, Int_t track, Int_t *vol, Float_t *hits)
139 :AliHit(shunt, track)
140{//ctor
141 fChamber=vol[0];
c021cb15 142 fX=hits[1];fY=hits[2];fZ=hits[3];
143 fTheta=hits[4];fPhi=hits[5];
853634d3 144 fTlength=hits[6];
145 fEloss=hits[7];
c021cb15 146 fPHfirst=(Int_t)hits[8];fPHlast=(Int_t)hits[9];
853634d3 147 fCMother=Int_t(hits[10]);
148 fIndex = hits[11];
149 fProduction = hits[12];
150 fLoss=hits[13];
c021cb15 151 fMomX=hits[14];fMomY=hits[15];fMomZ=hits[16];
853634d3 152 fNPads=hits[17];
153 fCerenkovAngle=hits[18];
543d5224 154}
c021cb15 155
156//__________________AliRICHdigit____________________________________________________________________
157//__________________________________________________________________________________________________
158//__________________________________________________________________________________________________
853634d3 159class AliRICHdigit :public AliDigit
160{
161public:
c1863e3c 162 AliRICHdigit() {fPadX=fPadY=fChamber=fTracks[0]=fTracks[1]=fTracks[2]=kBad;fQdc=kBad;}
163 inline AliRICHdigit(Int_t iC,Int_t iX,Int_t iY,Double_t iQdc,Int_t iT1,Int_t iT2,Int_t iT3);
853634d3 164 virtual ~AliRICHdigit() {;}
c1863e3c 165 inline Int_t Compare(const TObject *pObj) const; //virtual
166 Bool_t IsSortable() const{return kTRUE;}//virtual
cb8189e7 167 Int_t C() const{return fChamber/10;}
168 Int_t S() const{return fChamber-(fChamber/10)*10;}
169 Int_t Chamber() const{return C();}
170 Int_t Sector() const{return S();}
c1863e3c 171 Int_t X() const{return fPadX;}
172 Int_t Y() const{return fPadY;}
cb8189e7 173 Int_t Id() const{return fChamber*10000000+fPadX*1000+fPadY;}
c1863e3c 174 Double_t Q() const{return fQdc;}
175 Int_t T(Int_t i) const{return fTracks[i];}
cb8189e7 176 void Print(Option_t *option="")const; //virtual
853634d3 177protected:
cb8189e7 178 Int_t fChamber; //10*module number+ sector number
c1863e3c 179 Int_t fPadX; //pad number along X
180 Int_t fPadY; //pad number along Y
181 Double_t fQdc; //QDC value, fractions are permitted for summable procedure
853634d3 182 ClassDef(AliRICHdigit,1) //RICH digit class
183};//class AliRICHdigit
c021cb15 184//__________________________________________________________________________________________________
cb8189e7 185AliRICHdigit::AliRICHdigit(Int_t iC,Int_t iPadX,Int_t iPadY,Double_t q,Int_t iT0,Int_t iT1,Int_t iT2)
853634d3 186{
cb8189e7 187 fPadX=iPadX;fPadY=iPadY;fQdc=q;
188 fChamber=10*iC+AliRICHParam::Pad2Sec(iPadX,iPadY);
853634d3 189 fTracks[0]=iT0;fTracks[1]=iT1;fTracks[2]=iT2;
543d5224 190}
c60862bf 191//__________________________________________________________________________________________________
192Int_t AliRICHdigit::Compare(const TObject *pObj)const
193{
194 if(Id()==((AliRICHdigit*)pObj)->Id())
195 return 0;
196 else if(Id()>((AliRICHdigit*)pObj)->Id())
197 return 1;
198 else
199 return -1;
543d5224 200}
c1863e3c 201//__________________AliRICHcluster__________________________________________________________________
202//__________________________________________________________________________________________________
cbaf35fb 203
204enum ClusterStatus {kOK,kEdge,kShape,kSize,kRaw};
205
c1863e3c 206//__________________________________________________________________________________________________
207class AliRICHcluster :public TObject
208{
209public:
cb8189e7 210 AliRICHcluster() {fSize=fQdc=fStatus=fChamber=fDimXY=kBad;fX=fY=kBad;fDigits=0;}
c1863e3c 211 virtual ~AliRICHcluster() {delete fDigits;}
cb8189e7 212 Int_t Size() const{return fSize;} //
213 Int_t DimXY() const{return fDimXY;} //
214 Int_t C() const{return fChamber/10;} //
215 Int_t S() const{return fChamber-(fChamber/10)*10;} //
216 Int_t Chamber() const{return C();} //
217 Int_t Sector() const{return S();} //
218 Int_t Q() const{return fQdc;} //
219 Double_t X() const{return fX;} //
220 Double_t Y() const{return fY;} //
221 Int_t Status() const{return fStatus;} //
222 void SetStatus(Int_t status) {fStatus=status;} //
223 TObjArray* Digits() const{return fDigits;} //
224 void Print(Option_t *option="")const; //virtual
225 inline void AddDigit(AliRICHdigit *pDig); //
226 inline void CoG(); //
9d6f9427 227 void Reset() {fSize=fQdc=fStatus=fChamber=fDimXY=kBad;fX=fY=kBad;delete fDigits;fDigits=0;} // //
c1863e3c 228protected:
229 Int_t fSize; //how many digits belong to this cluster
230 Int_t fDimXY; //100*xdim+ydim box containing the cluster
231 Int_t fQdc; //QDC value
232 Int_t fChamber; //10*module number+sector number
233 Double_t fX; //local x postion
234 Double_t fY; //local y postion
235 Int_t fStatus; //flag to mark the quality of the cluster
236 TObjArray *fDigits; //! list of digits forming this cluster
cb8189e7 237 ClassDef(AliRICHcluster,1) //RICH cluster class
c1863e3c 238};//class AliRICHcluster
239//__________________________________________________________________________________________________
240void AliRICHcluster::AddDigit(AliRICHdigit *pDig)
cb8189e7 241{//
242 if(!fDigits) {fQdc=fSize=0;fDigits = new TObjArray;}
cbaf35fb 243 fQdc+=(Int_t)pDig->Q(); fDigits->Add(pDig);
cb8189e7 244 fChamber=10*pDig->C()+pDig->S();
cbaf35fb 245 fSize++;
246}
247//__________________________________________________________________________________________________
248void AliRICHcluster::CoG()
cb8189e7 249{//
250 Int_t xmin=999,ymin=999,xmax=0,ymax=0;
251 Double_t x,y;
252 fX=fY=0;
253 for(Int_t iDig=0;iDig<Size();iDig++) {
254 AliRICHdigit *pDig=(AliRICHdigit*)fDigits->At(iDig);
255 Int_t padX = pDig->X();Int_t padY = pDig->Y();Double_t q=pDig->Q();
256 AliRICHParam::Pad2Loc(padX,padY,x,y);
257 fX += x*q;fY +=y*q;
258 if(padX<xmin)xmin=padX;if(padX>xmax)xmax=padX;if(padY<ymin)ymin=padY;if(padY>ymax)ymax=padY;
cbaf35fb 259 }
cb8189e7 260 fX/=fQdc;fY/=fQdc;//Center of Gravity
261 fDimXY = 100*(xmax-xmin+1)+ymax-ymin+1;//find box containing cluster
262 fStatus=kRaw;
263}//CoG()
c021cb15 264//__________________AliRICH_________________________________________________________________________
265//__________________________________________________________________________________________________
266//__________________________________________________________________________________________________
3ea9cb08 267class AliRICHParam;
268class AliRICHSDigit;
269
2f614988 270class AliRICH : public AliDetector
271{
2f614988 272public:
853634d3 273 AliRICH();
274 AliRICH(const char *name, const char *title);
942194a4 275 AliRICH(const AliRICH& RICH):AliDetector(RICH) {;}
853634d3 276 virtual ~AliRICH();
dfb4e77d 277
942194a4 278 AliRICH& operator=(const AliRICH&) {return *this;}
c60862bf 279 virtual Int_t IsVersion() const =0;
280 void Hits2SDigits(); //virtual
281 void SDigits2Digits(); //virtual
282 void Digits2Reco(); //virtual
c021cb15 283
c60862bf 284 inline void CreateHits();
c1863e3c 285 inline void CreateSDigits();
c60862bf 286 inline void CreateDigits();
287 inline void CreateClusters();
288 inline void AddHit(Int_t track, Int_t *vol, Float_t *hits); //virtual
c1863e3c 289 inline void AddSDigit(Int_t iC,Int_t iX,Int_t iY,Double_t q,Int_t iT0,Int_t iT1=kBad,Int_t iT2=kBad);
290 inline void AddDigit (Int_t iC,Int_t iX,Int_t iY,Int_t iQ,Int_t iT0,Int_t iT1=kBad,Int_t iT2=kBad);
cb8189e7 291 inline void AddCluster(AliRICHcluster &clus);
543d5224 292 void ResetHits() {AliDetector::ResetHits();fNcerenkovs=0;if(fCerenkovs)fCerenkovs->Clear();fNspecials=0;if(fSpecials)fSpecials->Clear();} //virtual
c1863e3c 293 void ResetSDigits() {fNsdigits=0; if(fSdigits) fSdigits ->Clear();}
543d5224 294 void ResetDigits() {if(fDigitsNew)for(int i=0;i<kNCH;i++){fDigitsNew->At(i)->Clear();fNdigitsNew[i]=0;}}
295 void ResetClusters() {if(fClusters) for(int i=0;i<kNCH;i++){fClusters ->At(i)->Clear();fNclusters[i]=0;}}
c60862bf 296 //Hits provided by AliDetector
c1863e3c 297 TClonesArray* SDigits() const{return fSdigits;}
543d5224 298 TClonesArray* Digits(Int_t iC) const{if(fDigitsNew) return (TClonesArray *)fDigitsNew->At(iC-1);else return 0;}
c60862bf 299 TClonesArray* Clusters(Int_t iC) const{if(fClusters) return (TClonesArray *)fClusters->At(iC-1);else return 0;}
300
301 AliRICHChamber* C(Int_t iC) const{return (AliRICHChamber*)fChambers->At(iC-1);}
302 AliRICHParam* Param() const{return fpParam;}
c021cb15 303
5d12ce38 304 // AliRICHhit* FirstHit(Int_t iTrkN) {return (AliRICHhit*)AliDetector::FirstHit(iTrkN);} //virtual
305 // AliRICHhit* NextHit() {return (AliRICHhit*)AliDetector::NextHit();} //virtual
c60862bf 306
3ea9cb08 307 void CreateChambers();
c60862bf 308 void CreateMaterials(); //virtual
309 virtual void BuildGeometry(); //virtual
310 virtual void CreateGeometry(); //virtual
dfb4e77d 311 Float_t AbsoCH4(Float_t x);
312 Float_t Fresnel(Float_t ene,Float_t pdoti, Bool_t pola);
3ea9cb08 313
c021cb15 314 virtual void StepManager()=0;
c60862bf 315 void GenerateFeedbacks(Int_t iChamber,Float_t eloss);
316 void Print(Option_t *option)const;//virtual
317 void MakeBranch(Option_t *opt=" ");
318 void SetTreeAddress();//virtual
543d5224 319// OLD staff OLD staff
320 inline void AddCerenkov(Int_t track, Int_t *vol, Float_t *cerenkovs);
321 inline void AddSpecialOld(Int_t *);
543d5224 322
323 inline void CreateCerenkovsOld();
324 inline void CreateSpecialsOld();
543d5224 325 void ResetSpecialsOld(){fNspecials=0; if(fSpecials) fSpecials->Clear();}
543d5224 326 TClonesArray* Specials() const{return fSpecials;}
327 TClonesArray* Cerenkovs() const{return fCerenkovs;}
c60862bf 328
3ea9cb08 329
c60862bf 330
331 AliRICHChamber& Chamber(Int_t id) {return *((AliRICHChamber *) (*fChambers)[id]);}
c60862bf 332// Int_t DistancetoPrimitive(Int_t /*px*/, Int_t /*py*/) {return 9999;}
2f614988 333
c60862bf 334protected:
c021cb15 335 AliRICHParam *fpParam; //main RICH parametrization
336 TObjArray *fChambers; //list of RICH chambers
c60862bf 337 //fHits and fDigits belong to AliDetector
338 TClonesArray *fSdigits; //! List of sdigits
aed240d4 339 Int_t fNsdigits; //! Current number of sdigits
c60862bf 340 TObjArray *fDigitsNew; //! Each chamber holds it's one lists of digits
aed240d4 341 Int_t fNdigitsNew[kNCH]; //! Array of current numbers of digits
c60862bf 342 TObjArray *fClusters; //! Each chamber holds it's one lists of clusters
aed240d4 343 Int_t fNclusters[kNCH]; //! Array of current numbers of raw clusters
c60862bf 344
345 TClonesArray *fCerenkovs; //! ??? List of cerenkovs
aed240d4 346 Int_t fNcerenkovs; //! ??? Current number of cerenkovs
c60862bf 347 TClonesArray *fSpecials; //! ??? List of specials
aed240d4 348 Int_t fNspecials; //! ??? Current number of specials
dfb4e77d 349 Int_t fCkovNumber; // Number of Cerenkov photons
dfb4e77d 350 Int_t fFreonProd; // Cerenkovs produced in freon
dfb4e77d 351 Int_t fFeedbacks; // Number of feedback photons
ddae0931 352
aed240d4 353 ClassDef(AliRICH,4) //Main RICH class
c60862bf 354};//class AliRICH
c021cb15 355//__________________________________________________________________________________________________
853634d3 356void AliRICH::AddHit(Int_t track, Int_t *vol, Float_t *hits)
357{//Adds the current hit to the RICH hits list
358 TClonesArray &tmp=*fHits;
359 new(tmp[fNhits++])AliRICHhit(fIshunt,track,vol,hits);
543d5224 360}
c60862bf 361//__________________________________________________________________________________________________
c1863e3c 362void AliRICH::AddSDigit(Int_t iC,Int_t iX,Int_t iY,Double_t q,Int_t iT0,Int_t iT1,Int_t iT2)
c60862bf 363{//Adds the current Sdigit to the RICH list of Sdigits
364 TClonesArray &tmp=*fSdigits;
c1863e3c 365 new(tmp[fNsdigits++])AliRICHdigit(iC,iX,iY,q,iT0,iT1,iT2);
c60862bf 366}
367//__________________________________________________________________________________________________
c60862bf 368void AliRICH::AddDigit(Int_t iC,Int_t iX,Int_t iY,Int_t iAdc,Int_t iT0,Int_t iT1,Int_t iT2)
369{//Adds the current digit to the corresponding RICH list of digits (individual list per chamber)
370 TClonesArray &tmp=*((TClonesArray*)fDigitsNew->At(iC-1));
371 new(tmp[fNdigitsNew[iC-1]++]) AliRICHdigit(iC,iX,iY,iAdc,iT0,iT1,iT2);
543d5224 372}
c60862bf 373//__________________________________________________________________________________________________
cb8189e7 374void AliRICH::AddCluster(AliRICHcluster &cluster)
c1863e3c 375{//Adds the current cluster to the corresponding RICH list of clusters (individual list per chamber)
cb8189e7 376 cluster.Print();
377 TClonesArray &tmp=*((TClonesArray*)fClusters->At(cluster.Chamber()-1));
378 new(tmp[fNclusters[cluster.Chamber()-1]++]) AliRICHcluster(cluster);
c1863e3c 379}
380//__________________________________________________________________________________________________
c60862bf 381void AliRICH::CreateHits()
382{
383 if(fHits) return;
384 if(GetDebug())Info("CreateHits","creating hits container.");
385 fHits=new TClonesArray("AliRICHhit",10000); fNhits=0;
543d5224 386}
c60862bf 387//__________________________________________________________________________________________________
c1863e3c 388void AliRICH::CreateSDigits()
c60862bf 389{
390 if(fSdigits) return;
c1863e3c 391 if(GetDebug())Info("CreateSDigits","creating sdigits container.");
c60862bf 392 fSdigits=new TClonesArray("AliRICHdigit",10000); fNsdigits=0;
543d5224 393}
c60862bf 394//__________________________________________________________________________________________________
395void AliRICH::CreateDigits()
396{
397 if(fDigitsNew) return;
398 if(GetDebug())Info("CreateDigits","creating digits containers.");
399 fDigitsNew = new TObjArray(kNCH);
400 for(Int_t i=0;i<kNCH;i++) {fDigitsNew->AddAt(new TClonesArray("AliRICHdigit",10000), i); fNdigitsNew[i]=0;}
543d5224 401}
c60862bf 402//__________________________________________________________________________________________________
403void AliRICH::CreateClusters()
404{
405 if(fClusters) return;
406 if(GetDebug())Info("CreateClusters","creating clusters containers.");
407 fClusters = new TObjArray(kNCH);
408 for(Int_t i=0;i<kNCH;i++) {fClusters->AddAt(new TClonesArray("AliRICHcluster",10000), i); fNclusters[i]=0;}
543d5224 409}
c60862bf 410
411
412
413//__________________________________________________________________________________________________
414void AliRICH::CreateCerenkovsOld()
415{
416 if(fCerenkovs) return;
417 if(GetDebug())Info("CreateCerenkovs","creating cerenkovs container.");
418 fCerenkovs=new TClonesArray("AliRICHCerenkov",10000); fNcerenkovs=0;
543d5224 419}
c60862bf 420//__________________________________________________________________________________________________
421void AliRICH::CreateSpecialsOld()
422{
423 if(fSpecials) return;
424 if(GetDebug())Info("CreateSpecialsOld","creating SDigits special container.");
425 fSpecials=new TClonesArray("AliRICHSDigit",100000); fNspecials=0;
543d5224 426}
c60862bf 427//__________________________________________________________________________________________________
853634d3 428void AliRICH::AddCerenkov(Int_t track, Int_t *vol, Float_t *cerenkovs)
429{//Adds the current RICH cerenkov hit to the Cerenkovs list
430 TClonesArray &tmp=*fCerenkovs;
431 new(tmp[fNcerenkovs++]) AliRICHCerenkov(fIshunt,track,vol,cerenkovs);
432}
c021cb15 433//__________________________________________________________________________________________________
543d5224 434void AliRICH::AddSpecialOld(Int_t *aiSDigit)
c60862bf 435{// Adds the current Sdigit to the RICH list of Specials
436 TClonesArray &lSDigits = *fSpecials;
543d5224 437 new(lSDigits[fNspecials++]) AliRICHSDigit(aiSDigit);
438}
c60862bf 439#endif//#ifndef AliRICH_h