//////////////////////////////////////////////////////////////////////////// // // // AliFast Detector Class // // // // to provide information of effective material (X/Xo) of the detector // // needed for the multiple scattering formula used in AliFTrackMaker. // // // // the number and dimensions of cylindrical layers of material are // // initialised here for the TP status and are to be updated accordingly. // // // // // // origin: "init_geometry" routine in "res.f" fortran by Karel Safarik // // which was used to calculate the track resolution for TP. // // // // // // AliFast: E. Richter-Was and Y. Foka // // following general structure of Makers in ATLFast // // by R. Brun and E. R. Was // // // //////////////////////////////////////////////////////////////////////////// #include "AliFDet.h" #include "TMath.h" ClassImp(AliFDet) //_____________________________________________________________________________ AliFDet::AliFDet(const char *name, const char *title) : TNamed(name,title) { for(Int_t idDet=0; idDet 0){ nDetActive = nDetActive+1; fErrorR[idDet] = errorR[idDet]*errorR[idDet]; if(iFlagDet[idDet] == 1){ fErrorRPhi[idDet] = errorRPhi[idDet]*errorRPhi[idDet]; fErrorZ[idDet] = errorZ[idDet]*errorZ[idDet]; } } } fErrorVertexX = fErrorVertexX*fErrorVertexX; fErrorVertexY = fErrorVertexY*fErrorVertexY; fErrorVertexZ = fErrorVertexZ*fErrorVertexZ; fNDetActive = nDetActive; fNDet = nDet; } //_____________________________________________________________________________ void AliFDet::PrintDetInfo() { //to print information for the initialisation of the detector printf("**************************************************************\n"); printf("* *\n"); printf("* ALICE detector *\n"); printf("* *\n"); printf("**************************************************************\n"); for(Int_t idDet=0; idDet