//If GeoManager exists, take matrixes from it
if(gGeoManager){
char path[255] ;
- sprintf(path,"/ALIC_1/PHOS_%d/PEMC_1/PCOL_1/PTIO_1/PCOR_1/PAGA_1/PTII_1",mod) ;
+ snprintf(path,255,"/ALIC_1/PHOS_%d/PEMC_1/PCOL_1/PTIO_1/PCOR_1/PAGA_1/PTII_1",mod) ;
// sprintf(path,"/ALIC_1/PHOS_%d",relid[0]) ;
if (!gGeoManager->cd(path)){
AliWarning(Form("Geo manager can not find path %s \n",path));
//If GeoManager exists, take matrixes from it
if(gGeoManager){
char path[255] ;
- sprintf(path,"/ALIC_1/PHOS_%d/PEMC_1/PCOL_1/PTIO_1/PCOR_1/PAGA_1/PTII_1/PSTR_%d",mod,strip) ;
+ snprintf(path,255,"/ALIC_1/PHOS_%d/PEMC_1/PCOL_1/PTIO_1/PCOR_1/PAGA_1/PTII_1/PSTR_%d",mod,strip) ;
if (!gGeoManager->cd(path)){
AliWarning(Form("Geo manager can not find path %s \n",path));
return 0 ;
if(gGeoManager){
char path[255] ;
//now apply possible shifts and rotations
- TString spath = "/ALIC_1/PHOS_%d/PCPV_1";
- snprintf(path,spath.Length(),spath.Data(),mod) ;
+ snprintf(path,255,"/ALIC_1/PHOS_%d/PCPV_1",mod) ;
if (!gGeoManager->cd(path)){
AliWarning(Form("Geo manager can not find path %s \n",path));
return 0 ;
if(gGeoManager){
char path[255] ;
- TString spath = "/ALIC_1/PHOS_%d";
- snprintf(path,spath.Length(),spath.Data(),mod) ;
-
+ snprintf(path,255,"/ALIC_1/PHOS_%d",mod) ;
+
if (!gGeoManager->cd(path)){
AliWarning(Form("Geo manager can not find path %s \n",path));
return 0 ;
if(m==NULL) //Matrix for non-existing modules? Remain zero, no need to re-set
return ;
fPHOSMatrix[mod]= new TGeoHMatrix(*m) ;
-
- //If module does not exist, make sure all its matrices are zero
- if(m==NULL){
- fEMCMatrix[mod]=NULL ;
- Int_t istrip=0 ;
- for(Int_t irow = 0; irow < fGeometryEMCA->GetNStripX(); irow ++){
- for(Int_t icol = 0; icol < fGeometryEMCA->GetNStripZ(); icol ++){
- fStripMatrix[mod][istrip]=NULL ;
- }
- }
- fCPVMatrix[mod]=NULL ;
- return ;
- }
-
+
//Calculate maxtrices for PTII
if(!fMisalArray)
fMisalArray = new TClonesArray("TGeoHMatrix",1120+10) ;