Correction to take in account that the last layer is also included in the residuals...
authorcvetan <cvetan@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 20 Apr 2007 16:11:47 +0000 (16:11 +0000)
committercvetan <cvetan@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 20 Apr 2007 16:11:47 +0000 (16:11 +0000)
STEER/AliAlignmentTracks.cxx

index 1836a31..1257dff 100644 (file)
@@ -392,12 +392,12 @@ void AliAlignmentTracks::AlignDetector(AliAlignObj::ELayerID firstLayer,
   // Tracks are fitted only within
   // the range defined by the user.
   Int_t nModules = 0;
-  for (Int_t iLayer = firstLayer; iLayer < lastLayer; iLayer++)
+  for (Int_t iLayer = firstLayer; iLayer <= lastLayer; iLayer++)
     nModules += AliAlignObj::LayerSize(iLayer);
   TArrayI volIds(nModules);
 
   Int_t modnum = 0;
-  for (Int_t iLayer = firstLayer; iLayer < lastLayer; iLayer++) {
+  for (Int_t iLayer = firstLayer; iLayer <= lastLayer; iLayer++) {
     for (Int_t iModule = 0; iModule < AliAlignObj::LayerSize(iLayer); iModule++) {
       UShort_t volId = AliAlignObj::LayerToVolUID(iLayer,iModule);
       volIds.AddAt(volId,modnum);