/*
$Log$
+Revision 1.18 2007/07/27 08:14:48 morsch
+Write all track references into the same branch.
+
Revision 1.17 2007/05/14 14:41:13 decaro
Fix a bug in FTOA volume positionig inside BTOF13,14,15,16,17 in case of holes in 11th and 12th sectors
#include "TNode.h"
#include "TVirtualMC.h"
#include "TGeoManager.h"
+#include <TGeoMatrix.h>
+#include <TGeoPhysicalNode.h>
+#include <TGeoVolume.h>
#include "AliConst.h"
#include "AliLog.h"
AliDebug(2,"--------------------------------------------");
gGeoManager->SetAlignableEntry(symName.Data(),volPath.Data());
+
+ //T2L matrices for alignment
+ TGeoPNEntry *e = gGeoManager->GetAlignableEntry(symName.Data());
+ if (e) {
+ const char *path = e->GetTitle();
+ if (!gGeoManager->cd(path)) {
+ AliFatal(Form("Volume path %s not valid!",path));
+ }
+ TGeoHMatrix *globMatrix = gGeoManager->GetCurrentMatrix();
+ Double_t phi = 20.0 * (isect % 18) + 10.0;
+ TGeoHMatrix *t2l = new TGeoHMatrix();
+ t2l->RotateZ(phi);
+ t2l->MultiplyLeft(&(globMatrix->Inverse()));
+ e->SetMatrix(t2l);
+ }
+ else {
+ AliError(Form("Alignable entry %s is not valid!",symName.Data()));
+ }
imod++;
}
}
/*
$Log$
+Revision 1.5 2007/07/27 08:14:48 morsch
+Write all track references into the same branch.
+
Revision 1.4 2007/05/29 16:51:05 decaro
Update of the front-end electronics and cooling system description
#include "TNode.h"
#include "TVirtualMC.h"
#include "TGeoManager.h"
+#include <TGeoMatrix.h>
+#include <TGeoPhysicalNode.h>
+#include <TGeoVolume.h>
#include "AliConst.h"
#include "AliLog.h"
AliDebug(2,"--------------------------------------------");
gGeoManager->SetAlignableEntry(symName.Data(),volPath.Data());
+
+ //T2L matrices for alignment
+ TGeoPNEntry *e = gGeoManager->GetAlignableEntry(symName.Data());
+ if (e) {
+ const char *path = e->GetTitle();
+ if (!gGeoManager->cd(path)) {
+ AliFatal(Form("Volume path %s not valid!",path));
+ }
+ TGeoHMatrix *globMatrix = gGeoManager->GetCurrentMatrix();
+ Double_t phi = 20.0 * (isect % 18) + 10.0;
+ TGeoHMatrix *t2l = new TGeoHMatrix();
+ t2l->RotateZ(phi);
+ t2l->MultiplyLeft(&(globMatrix->Inverse()));
+ e->SetMatrix(t2l);
+ }
+ else {
+ AliError(Form("Alignable entry %s is not valid!",symName.Data()));
+ }
+
imod++;
}
}