ClassImp(AliMUONGeometryTransformer)
/// \endcond
-const TString AliMUONGeometryTransformer::fgkDefaultDetectorName = "MUON";
+//
+// static private methods
+//
+
+//______________________________________________________________________________
+const TString& AliMUONGeometryTransformer::GetDefaultDetectorName()
+{
+ /// Default detector name
+ static const TString kDefaultDetectorName = "MUON";
+ return kDefaultDetectorName;
+}
+//
+// ctor, dtor
+//
+
//______________________________________________________________________________
AliMUONGeometryTransformer::AliMUONGeometryTransformer()
: TObject(),
- fDetectorName(fgkDefaultDetectorName),
+ fDetectorName(GetDefaultDetectorName()),
fModuleTransformers(0),
fMisAlignArray(0),
fDEAreas(0x0)
if ( !moduleTransformer) {
AliErrorStream()
<< "Module " << moduleId << " has not volume path defined." << endl;
+ return;
}
// Build the transformation from the parameters
//_____________________________________________________________________________
void AliMUONGeometryTransformer::AddMisAlignModule(Int_t moduleId,
- const TGeoHMatrix& matrix)
+ const TGeoHMatrix& matrix, Bool_t bGlobal)
{
/// Build AliAlignObjMatrix with module ID, its volumePath
/// and the given delta transformation matrix
TClonesArray& refArray =*fMisAlignArray;
Int_t pos = fMisAlignArray->GetEntriesFast();
new (refArray[pos]) AliAlignObjMatrix(GetModuleSymName(moduleId), volId,
- const_cast<TGeoHMatrix&>(matrix),kTRUE);
+ const_cast<TGeoHMatrix&>(matrix),bGlobal);
}
//_____________________________________________________________________________
void AliMUONGeometryTransformer::AddMisAlignDetElement(Int_t detElemId,
- const TGeoHMatrix& matrix)
+ const TGeoHMatrix& matrix, Bool_t bGlobal)
{
/// Build AliAlignObjMatrix with detection element ID, its volumePath
/// and the given delta transformation matrix
TClonesArray& refArray =*fMisAlignArray;
Int_t pos = fMisAlignArray->GetEntriesFast();
new(refArray[pos]) AliAlignObjMatrix(GetDESymName(detElemId), volId,
- const_cast<TGeoHMatrix&>(matrix),kTRUE);
+ const_cast<TGeoHMatrix&>(matrix),bGlobal);
}
//______________________________________________________________________________