// Get transformation matrix for this node, and store it.
TGeoMatrix* t = new TGeoHMatrix(*pm);
trans->AddAt(t, base+imod);
- AliFMDDebug(1, ("Found matrix for path \"%s\": %p",path.Data(),pm));
+ AliFMDDebug(5, ("Found matrix for path \"%s\": %p",path.Data(),pm));
}
}
}
// Translate detector coordinates (this,ring,sector,strip) into
// (x,y,z) coordinates (in global reference frame)
AliFMDRing* r = GetRing(ring);
- if (!r) return;
+ if (!r) {
+ AliWarning(Form("No such ring FMD%d%c ", fId, ring));
+ return;
+ }
TGeoMatrix* m = FindTransform(ring, sector);
- if (!m) return;
+ if (!m) {
+ AliWarning(Form("No transfrmation found for FMD%d%c[%02d]",
+ fId, ring, sector));
+ return;
+ }
Double_t rho = r->GetStripRadius(strip);
Double_t phi = ((sector % 2) - .5) * r->GetTheta();
Double_t siThick = r->GetSiThickness();