ClassDef(AliHMPID,11) //Main HMPID class
};//class AliHMPID
+
+typedef AliHMPID AliRICH; // for backward compatibility
+
//++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
#endif
TObjArray *fDigs; //! list of digits forming this cluster
ClassDef(AliHMPIDCluster,5) //HMPID cluster class
};//class AliHMPIDCluster
+
+typedef AliHMPIDCluster AliRICHCluster; // for backward compatibility
+
//++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
void AliHMPIDCluster::DigAdd(AliHMPIDDigit *pDig)
{
Float_t fQ; //QDC value, fractions are permitted for summable procedure
ClassDef(AliHMPIDDigit,4) //HMPID digit class
};//class AliHMPIDDigitN
+
+typedef AliHMPIDDigit AliRICHDigit; // for backward compatibility
+
//++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
AliHMPIDDigit::AliHMPIDDigit(Int_t c,Float_t q,Int_t t,Float_t x,Float_t y,Int_t flag):AliDigit(),fPad(Abs(-1,-1,-1,-1)),fQ(-1)
{
protected:
ClassDef(AliHMPIDDigitizer,0)
};
+
+typedef AliHMPIDDigitizer AliRICHDigitizer; // for backward compatibility
+
#endif
Float_t fBz; //magnetic field along z, [kGaus]
ClassDef(AliHMPIDHelix,0) //General helix
};//class AliHMPIDHelix
+
+typedef AliHMPIDHelix AliRICHHelix; // for backward compatibility
+
//++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
void AliHMPIDHelix::Propagate(Float_t len,TVector3 &x,TVector3 &p)
{
Float_t fLorsY; //hit Y position in chamber LORS, [cm]
ClassDef(AliHMPIDHit,4) //HMPID hit class
};//class AliHMPIDhit
+
+typedef AliHMPIDHit AliRICHHit; // for backward compatibility
#endif
if(pAL->LoadKinematics()) return -1;
Int_t mtid=-1;
- Int_t iNevt=pAL->GetNumberOfEvents(); Printf("This session contains %i event(s)",iNevt);
+ Int_t iNevt=pAL->GetNumberOfEvents();
for(Int_t iEvt=0;iEvt<iNevt;iEvt++){//events loop
if(evt!=-1 && evt!=iEvt) continue; //in case one needs to print the requested event, ignore all others
pTrack=pStack->Particle(tid);
str+=" from ";str+=pTrack->GetName();
}
- Printf("%s",str.Data());
}//if(tid==-1)
}//events loop
pAL->UnloadHeader(); pAL->UnloadKinematics();
Float_t fY; //y shift of LORS with respect to rotated MARS
ClassDef(AliHMPIDParam,0) //HMPID main parameters class
};
+
+typedef AliHMPIDParam AliRICHParam; // for backward compatibility
+
//++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
AliHMPIDParam* AliHMPIDParam::Instance()
{
ClassDef(AliHMPIDPreprocessor, 0);
};
+typedef AliHMPIDPreprocessor AliRICHPreprocessor; // for backward compatibility
+
#endif
// Returns: Cerenkov angle
TVector2 pos(cluX,cluY); Double_t cluR=(pos-fTrkPos).Mod(); Double_t phi=FindPhotPhi(cluX,cluY);
- Printf("new dist %f phi %f",cluR,phi);
Double_t ckov1=0,ckov2=0.75;
const Double_t kTol=0.05;
Int_t iIterCnt = 0;
if(iIterCnt>=50) return -1;
Double_t ckov=0.5*(ckov1+ckov2);
Double_t dist=cluR-TracePhot(ckov,phi,pos); iIterCnt++; //get distance between trial point and cluster position
- Printf("New: phi %f ckov %f dist %f",phi,ckov,dist);
if (dist> kTol) ckov1=ckov; //cluster @ larger ckov
else if(dist<-kTol) ckov2=ckov; //cluster @ smaller ckov
else return ckov; //precision achived
for(Int_t iTrk=0;iTrk<pEsd->GetNumberOfTracks();iTrk++){//ESD tracks loop
AliESDtrack *pTrk = pEsd->GetTrack(iTrk); //
Float_t th,ph,x,y; pTrk->GetHMPIDtrk(x,y,th,ph); if(x<0) continue;
- Int_t ch=pTrk->GetHMPIDcluIdx()/1000000; Printf("ch=%i",ch);
+ Int_t ch=pTrk->GetHMPIDcluIdx()/1000000;
pTrkMap[ch]->SetPoint(aTrkCnt[ch]++,x,y);
}//ESD tracks loop
TVector2 fTrkPos; //track positon in LORS at the middle of radiator
ClassDef(AliHMPIDRecon,0)
};
+
+typedef AliHMPIDRecon AliRICHRecon; // for backward compatibility
#endif // #ifdef AliHMPIDRecon_cxx
protected:
ClassDef(AliHMPIDReconstructor, 0) //class for the HMPID reconstruction
};
+
+typedef AliHMPIDReconstructor AliRICHReconstructor; // for backward compatibility
+
//__________________________________________________________________________________________________
AliHMPIDDigit* AliHMPIDReconstructor::UseDig(Int_t padX,Int_t padY,TClonesArray *pDigLst,TMatrixF *pDigMap)
{
pTrk->SetHMPIDsignal (recon.CkovAngle(pCluLst,iNphot)); //search for Cerenkov angle for this track
pTrk->SetHMPIDchi2 (recon.CkovSigma2()); //error squared
pTrk->SetHMPIDmip (pMipClu->X(),pMipClu->Y(),pMipClu->Q(),iMip); //info on mip cluster + n. phot.
- Printf("Ch=%i MIP-TRK=%5.2f cm Th=%f+-%f", iCh, dMin,pTrk->GetHMPIDsignal(),pTrk->GetHMPIDchi2());
}//ESD tracks loop
AliDebug(1,"Stop pattern recognition");
return 0; // error code: 0=no error;
ClassDef(AliHMPIDTracker,0)
};//class AliHMPIDTracker
+typedef AliHMPIDTracker AliRICHTracker; // for backward compatibility
+
#endif//AliHMPIDTracker_h
protected:
ClassDef(AliHMPIDv0,1) //HMPID coarse version for material budget study and debuging
};
+
+typedef AliHMPIDv0 AliRICHv0; // for backward compatibility
#endif
Int_t fIdRad,fIdWin,fIdProxGap,fIdAmpGap,fIdPc,fIdAnod,fIdCath,fIdColl; //! volumes ID's used in StepManager() and Count()
ClassDef(AliHMPIDv1,2) //HMPID full version for simulation
};
+
+typedef AliHMPIDv1 AliRICHv1; // for backward compatibility
#endif
#pragma link off all globals;
#pragma link off all classes;
#pragma link off all functions;
+
+#pragma link C++ typedef AliRICHHelix;
+#pragma link C++ typedef AliRICHDigit;
+#pragma link C++ typedef AliRICHHit;
+#pragma link C++ typedef AliRICHCluster;
+#pragma link C++ typedef AliRICHParam;
+#pragma link C++ typedef AliRICH;
+
#pragma link C++ class AliHMPIDHelix+;
#pragma link C++ class AliHMPIDDigit+;
#pragma link C++ class AliHMPIDHit+;
#pragma link off all globals;
#pragma link off all classes;
#pragma link off all functions;
+
+#pragma link C++ typedef AliRICHReconstructor;
+#pragma link C++ typedef AliRICHTracker;
+#pragma link C++ typedef AliRICHRecon;
+#pragma link C++ typedef AliRICHPreprocessor;
+
#pragma link C++ class AliHMPIDReconstructor+;
#pragma link C++ class AliHMPIDTracker+;
#pragma link C++ class AliHMPIDRecon+;
#pragma link off all globals;
#pragma link off all classes;
#pragma link off all functions;
+
+#pragma link C++ typedef AliRICHv0;
+#pragma link C++ typedef AliRICHv1;
+#pragma link C++ typedef AliRICHDigitizer;
+
#pragma link C++ class AliHMPIDv0+;
#pragma link C++ class AliHMPIDv1+;
#pragma link C++ class AliHMPIDDigitizer+;