]> git.uio.no Git - u/mrichter/AliRoot.git/blame - RICH/AliRICH.h
Changes to obey the coding conventions
[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"
53fd478b 15class AliRICHChamber;
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
53fd478b 31 Int_t C() const{return fChamber;}
32 Int_t Chamber() const{return fChamber;}
33 Int_t Pid() const{return fPid;}
34 Int_t Particle() const{return fPid;}
35 Float_t Theta() const{return fTheta;}
36 Float_t Phi() const{return fPhi;}
37 Float_t Tlength() const{return fTlength;}
38 Float_t Eloss() const{return fEloss;}
39 Float_t Loss() const{return fLoss;}
40 Float_t PHfirst() const{return fPHfirst;}
41 Float_t PHlast() const{return fPHlast;}
42 Float_t MomX() const{return fMomX;}
43 Float_t MomY() const{return fMomY;}
44 Float_t MomZ() const{return fMomZ;}
45 Float_t CerenkovAngle() const{return fCerenkovAngle;}
46 Float_t MomFreoX() const{return fMomFreoX;}
47 Float_t MomFreoY() const{return fMomFreoY;}
48 Float_t MomFreoZ() const{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() {;}
53fd478b 111protected:
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:
53fd478b 210 AliRICHcluster() {fSize=fQdc=fStatus=fChamber=fDimXY=kBad;fX=fY=kBad;fDigits=0;}
211 virtual ~AliRICHcluster() {delete fDigits;}
212 AliRICHcluster& operator=(const AliRICHcluster&) {return *this;}
cb8189e7 213 Int_t Size() const{return fSize;} //
214 Int_t DimXY() const{return fDimXY;} //
215 Int_t C() const{return fChamber/10;} //
216 Int_t S() const{return fChamber-(fChamber/10)*10;} //
217 Int_t Chamber() const{return C();} //
218 Int_t Sector() const{return S();} //
219 Int_t Q() const{return fQdc;} //
220 Double_t X() const{return fX;} //
221 Double_t Y() const{return fY;} //
222 Int_t Status() const{return fStatus;} //
223 void SetStatus(Int_t status) {fStatus=status;} //
224 TObjArray* Digits() const{return fDigits;} //
225 void Print(Option_t *option="")const; //virtual
226 inline void AddDigit(AliRICHdigit *pDig); //
227 inline void CoG(); //
9d6f9427 228 void Reset() {fSize=fQdc=fStatus=fChamber=fDimXY=kBad;fX=fY=kBad;delete fDigits;fDigits=0;} // //
c1863e3c 229protected:
230 Int_t fSize; //how many digits belong to this cluster
231 Int_t fDimXY; //100*xdim+ydim box containing the cluster
232 Int_t fQdc; //QDC value
233 Int_t fChamber; //10*module number+sector number
234 Double_t fX; //local x postion
235 Double_t fY; //local y postion
236 Int_t fStatus; //flag to mark the quality of the cluster
237 TObjArray *fDigits; //! list of digits forming this cluster
cb8189e7 238 ClassDef(AliRICHcluster,1) //RICH cluster class
c1863e3c 239};//class AliRICHcluster
240//__________________________________________________________________________________________________
241void AliRICHcluster::AddDigit(AliRICHdigit *pDig)
cb8189e7 242{//
243 if(!fDigits) {fQdc=fSize=0;fDigits = new TObjArray;}
cbaf35fb 244 fQdc+=(Int_t)pDig->Q(); fDigits->Add(pDig);
cb8189e7 245 fChamber=10*pDig->C()+pDig->S();
cbaf35fb 246 fSize++;
247}
248//__________________________________________________________________________________________________
249void AliRICHcluster::CoG()
cb8189e7 250{//
251 Int_t xmin=999,ymin=999,xmax=0,ymax=0;
252 Double_t x,y;
253 fX=fY=0;
254 for(Int_t iDig=0;iDig<Size();iDig++) {
255 AliRICHdigit *pDig=(AliRICHdigit*)fDigits->At(iDig);
256 Int_t padX = pDig->X();Int_t padY = pDig->Y();Double_t q=pDig->Q();
257 AliRICHParam::Pad2Loc(padX,padY,x,y);
258 fX += x*q;fY +=y*q;
259 if(padX<xmin)xmin=padX;if(padX>xmax)xmax=padX;if(padY<ymin)ymin=padY;if(padY>ymax)ymax=padY;
cbaf35fb 260 }
cb8189e7 261 fX/=fQdc;fY/=fQdc;//Center of Gravity
262 fDimXY = 100*(xmax-xmin+1)+ymax-ymin+1;//find box containing cluster
263 fStatus=kRaw;
264}//CoG()
c021cb15 265//__________________AliRICH_________________________________________________________________________
266//__________________________________________________________________________________________________
267//__________________________________________________________________________________________________
3ea9cb08 268class AliRICHParam;
269class AliRICHSDigit;
270
2f614988 271class AliRICH : public AliDetector
272{
2f614988 273public:
853634d3 274 AliRICH();
275 AliRICH(const char *name, const char *title);
942194a4 276 AliRICH(const AliRICH& RICH):AliDetector(RICH) {;}
853634d3 277 virtual ~AliRICH();
dfb4e77d 278
942194a4 279 AliRICH& operator=(const AliRICH&) {return *this;}
c60862bf 280 virtual Int_t IsVersion() const =0;
281 void Hits2SDigits(); //virtual
282 void SDigits2Digits(); //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;}
3ea9cb08 303 void CreateChambers();
c60862bf 304 void CreateMaterials(); //virtual
305 virtual void BuildGeometry(); //virtual
306 virtual void CreateGeometry(); //virtual
53fd478b 307 Float_t AbsoCH4(Float_t x)const;
308 Float_t Fresnel(Float_t ene,Float_t pdoti, Bool_t pola)const;
3ea9cb08 309
c021cb15 310 virtual void StepManager()=0;
c60862bf 311 void GenerateFeedbacks(Int_t iChamber,Float_t eloss);
312 void Print(Option_t *option)const;//virtual
313 void MakeBranch(Option_t *opt=" ");
314 void SetTreeAddress();//virtual
543d5224 315// OLD staff OLD staff
316 inline void AddCerenkov(Int_t track, Int_t *vol, Float_t *cerenkovs);
53fd478b 317 inline void AddSpecialOld(Int_t *array);
543d5224 318
319 inline void CreateCerenkovsOld();
320 inline void CreateSpecialsOld();
543d5224 321 void ResetSpecialsOld(){fNspecials=0; if(fSpecials) fSpecials->Clear();}
543d5224 322 TClonesArray* Specials() const{return fSpecials;}
323 TClonesArray* Cerenkovs() const{return fCerenkovs;}
c60862bf 324
3ea9cb08 325
c60862bf 326
327 AliRICHChamber& Chamber(Int_t id) {return *((AliRICHChamber *) (*fChambers)[id]);}
c60862bf 328// Int_t DistancetoPrimitive(Int_t /*px*/, Int_t /*py*/) {return 9999;}
2f614988 329
c60862bf 330protected:
53fd478b 331 enum {kCSI=6,kGAP=9};
c021cb15 332 AliRICHParam *fpParam; //main RICH parametrization
333 TObjArray *fChambers; //list of RICH chambers
c60862bf 334 //fHits and fDigits belong to AliDetector
335 TClonesArray *fSdigits; //! List of sdigits
aed240d4 336 Int_t fNsdigits; //! Current number of sdigits
c60862bf 337 TObjArray *fDigitsNew; //! Each chamber holds it's one lists of digits
aed240d4 338 Int_t fNdigitsNew[kNCH]; //! Array of current numbers of digits
c60862bf 339 TObjArray *fClusters; //! Each chamber holds it's one lists of clusters
aed240d4 340 Int_t fNclusters[kNCH]; //! Array of current numbers of raw clusters
c60862bf 341
342 TClonesArray *fCerenkovs; //! ??? List of cerenkovs
aed240d4 343 Int_t fNcerenkovs; //! ??? Current number of cerenkovs
c60862bf 344 TClonesArray *fSpecials; //! ??? List of specials
aed240d4 345 Int_t fNspecials; //! ??? Current number of specials
dfb4e77d 346 Int_t fCkovNumber; // Number of Cerenkov photons
dfb4e77d 347 Int_t fFreonProd; // Cerenkovs produced in freon
dfb4e77d 348 Int_t fFeedbacks; // Number of feedback photons
ddae0931 349
aed240d4 350 ClassDef(AliRICH,4) //Main RICH class
c60862bf 351};//class AliRICH
c021cb15 352//__________________________________________________________________________________________________
853634d3 353void AliRICH::AddHit(Int_t track, Int_t *vol, Float_t *hits)
354{//Adds the current hit to the RICH hits list
355 TClonesArray &tmp=*fHits;
356 new(tmp[fNhits++])AliRICHhit(fIshunt,track,vol,hits);
543d5224 357}
c60862bf 358//__________________________________________________________________________________________________
c1863e3c 359void AliRICH::AddSDigit(Int_t iC,Int_t iX,Int_t iY,Double_t q,Int_t iT0,Int_t iT1,Int_t iT2)
c60862bf 360{//Adds the current Sdigit to the RICH list of Sdigits
361 TClonesArray &tmp=*fSdigits;
c1863e3c 362 new(tmp[fNsdigits++])AliRICHdigit(iC,iX,iY,q,iT0,iT1,iT2);
c60862bf 363}
364//__________________________________________________________________________________________________
c60862bf 365void AliRICH::AddDigit(Int_t iC,Int_t iX,Int_t iY,Int_t iAdc,Int_t iT0,Int_t iT1,Int_t iT2)
366{//Adds the current digit to the corresponding RICH list of digits (individual list per chamber)
367 TClonesArray &tmp=*((TClonesArray*)fDigitsNew->At(iC-1));
368 new(tmp[fNdigitsNew[iC-1]++]) AliRICHdigit(iC,iX,iY,iAdc,iT0,iT1,iT2);
543d5224 369}
c60862bf 370//__________________________________________________________________________________________________
cb8189e7 371void AliRICH::AddCluster(AliRICHcluster &cluster)
c1863e3c 372{//Adds the current cluster to the corresponding RICH list of clusters (individual list per chamber)
cb8189e7 373 cluster.Print();
374 TClonesArray &tmp=*((TClonesArray*)fClusters->At(cluster.Chamber()-1));
375 new(tmp[fNclusters[cluster.Chamber()-1]++]) AliRICHcluster(cluster);
c1863e3c 376}
377//__________________________________________________________________________________________________
c60862bf 378void AliRICH::CreateHits()
379{
380 if(fHits) return;
381 if(GetDebug())Info("CreateHits","creating hits container.");
382 fHits=new TClonesArray("AliRICHhit",10000); fNhits=0;
543d5224 383}
c60862bf 384//__________________________________________________________________________________________________
c1863e3c 385void AliRICH::CreateSDigits()
c60862bf 386{
387 if(fSdigits) return;
c1863e3c 388 if(GetDebug())Info("CreateSDigits","creating sdigits container.");
c60862bf 389 fSdigits=new TClonesArray("AliRICHdigit",10000); fNsdigits=0;
543d5224 390}
c60862bf 391//__________________________________________________________________________________________________
392void AliRICH::CreateDigits()
393{
394 if(fDigitsNew) return;
395 if(GetDebug())Info("CreateDigits","creating digits containers.");
396 fDigitsNew = new TObjArray(kNCH);
397 for(Int_t i=0;i<kNCH;i++) {fDigitsNew->AddAt(new TClonesArray("AliRICHdigit",10000), i); fNdigitsNew[i]=0;}
543d5224 398}
c60862bf 399//__________________________________________________________________________________________________
400void AliRICH::CreateClusters()
401{
402 if(fClusters) return;
403 if(GetDebug())Info("CreateClusters","creating clusters containers.");
404 fClusters = new TObjArray(kNCH);
405 for(Int_t i=0;i<kNCH;i++) {fClusters->AddAt(new TClonesArray("AliRICHcluster",10000), i); fNclusters[i]=0;}
543d5224 406}
c60862bf 407
408
409
410//__________________________________________________________________________________________________
411void AliRICH::CreateCerenkovsOld()
412{
413 if(fCerenkovs) return;
414 if(GetDebug())Info("CreateCerenkovs","creating cerenkovs container.");
415 fCerenkovs=new TClonesArray("AliRICHCerenkov",10000); fNcerenkovs=0;
543d5224 416}
c60862bf 417//__________________________________________________________________________________________________
418void AliRICH::CreateSpecialsOld()
419{
420 if(fSpecials) return;
421 if(GetDebug())Info("CreateSpecialsOld","creating SDigits special container.");
422 fSpecials=new TClonesArray("AliRICHSDigit",100000); fNspecials=0;
543d5224 423}
c60862bf 424//__________________________________________________________________________________________________
853634d3 425void AliRICH::AddCerenkov(Int_t track, Int_t *vol, Float_t *cerenkovs)
426{//Adds the current RICH cerenkov hit to the Cerenkovs list
427 TClonesArray &tmp=*fCerenkovs;
428 new(tmp[fNcerenkovs++]) AliRICHCerenkov(fIshunt,track,vol,cerenkovs);
429}
c021cb15 430//__________________________________________________________________________________________________
543d5224 431void AliRICH::AddSpecialOld(Int_t *aiSDigit)
c60862bf 432{// Adds the current Sdigit to the RICH list of Specials
433 TClonesArray &lSDigits = *fSpecials;
543d5224 434 new(lSDigits[fNspecials++]) AliRICHSDigit(aiSDigit);
435}
c60862bf 436#endif//#ifndef AliRICH_h