]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - ITS/AliITSAlignMille2ConstrArray.cxx
adding CorrectForMaterial method and bug fix in assigning the radius to a track
[u/mrichter/AliRoot.git] / ITS / AliITSAlignMille2ConstrArray.cxx
index 84c0b340ce4b3ef8b4de8e2abfc02bd45db34063..a280a2aea6e6262a1ac9d5e074964f207c955809 100644 (file)
@@ -50,10 +50,10 @@ void AliITSAlignMille2ConstrArray::AddModule(AliITSAlignMille2Module* mod, Bool_
     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 &= (Short_t) 0xffff & (0xffff<< AliITSAlignMille2Module::kMaxParGeom);     // reset the geometry parameters
+      for (int i=AliITSAlignMille2Module::kMaxParGeom;i--;) patt &= ~BIT(i);  // reset the geometry parameters
       for (int i=0;i<AliITSAlignMille2Module::kMaxParGeom;i++) {
        if (!IncludesParam(i)) continue;
-       for (int j=0;j<AliITSAlignMille2Module::kMaxParGeom;j++) if (jacobian[i][j]!=0) patt |= (0x1<<j);
+       for (int j=0;j<AliITSAlignMille2Module::kMaxParGeom;j++) if (jacobian[i][j]!=0) patt |= BIT(j);
       }
     }
     fModulePatt[nmd] = patt;