X-Git-Url: http://git.uio.no/git/?a=blobdiff_plain;f=ITS%2FAliITSAlignMille2ConstrArray.cxx;h=82534140e3cc4ac333ecbc3e403990a2d64684ed;hb=535d15f506e88160f5c6e27623583932dd8a44ef;hp=b4ca683da1cffe385c400d73b954c8c6181337ac;hpb=6526a72c570f2e38335cd4670cda3795da01e774;p=u%2Fmrichter%2FAliRoot.git diff --git a/ITS/AliITSAlignMille2ConstrArray.cxx b/ITS/AliITSAlignMille2ConstrArray.cxx index b4ca683da1c..82534140e3c 100644 --- a/ITS/AliITSAlignMille2ConstrArray.cxx +++ b/ITS/AliITSAlignMille2ConstrArray.cxx @@ -21,6 +21,7 @@ AliITSAlignMille2ConstrArray::AliITSAlignMille2ConstrArray(const Char_t* name,Do fCoeffs(npar), fError(err) { + // create module for (int i=0;iGetUniqueID() == (UInt_t)fModuleIDs[im]) return; } fModuleIDs.Set(nmd+1); fModulePatt.Set(nmd+1); fModuleIDs[nmd] = mod->GetUniqueID(); - double jacobian[AliITSAlignMille2Module::kMaxParGeom][AliITSAlignMille2Module::kMaxParGeom]; - if (mod->GeomParamsGlobal()) mod->CalcDerivLocGlo(&jacobian[0][0]); - // - Short_t patt = GetPattern(); - if (mod->GeomParamsGlobal()) { - // the constraint is defined in the module's local frame. If the alignment of geom params is - // done in the global frame, we need to set the real parameter involved - patt &= 0xffff<< AliITSAlignMille2Module::kMaxParGeom; // reset the geometry parameters - for (int i=0;iGeomParamsGlobal()) mod->CalcDerivLocGlo(&jacobian[0][0]); + // + Short_t patt = GetPattern(); + if (mod->GeomParamsGlobal()) { + // the constraint is defined in the module's local frame. If the alignment of geom params is + // done in the global frame, we need to set the real parameter involved + for (int i=AliITSAlignMille2Module::kMaxParGeom;i--;) patt &= ~BIT(i); // reset the geometry parameters + for (int i=0;iGetUniqueID(), par); @@ -90,6 +94,7 @@ Bool_t AliITSAlignMille2ConstrArray::IncludesModPar(AliITSAlignMille2Module* mod //________________________________________________________________________________________________________ void AliITSAlignMille2ConstrArray::Print(Option_t* ) const { + // print data printf("#%3d Constraint %s of type %d | Value=%+e Error=%+e\n",GetConstraintID(),GetName(),GetType(),GetValue(),GetError()); printf("Weights on params: "); for (int i=0;i