r659: *** empty log message ***
[ctsim.git] / libctsim / scanner.cpp
index 88f99f00a87eaad8b19fafbaeccfc9c9b76e7d97..0319912339cbee2c8755852cc0bcdbbca561aee5 100644 (file)
@@ -9,7 +9,7 @@
 **  This is part of the CTSim program
 **  Copyright (c) 1983-2001 Kevin Rosenberg
 **
-**  $Id: scanner.cpp,v 1.37 2001/03/18 18:08:25 kevin Exp $
+**  $Id: scanner.cpp,v 1.38 2001/04/02 03:49:52 kevin Exp $
 **
 **  This program is free software; you can redistribute it and/or modify
 **  it under the terms of the GNU General Public License (version 2) as
@@ -469,10 +469,8 @@ Scanner::projectSingleView (const Phantom& phm, DetectorArray& detArray, const d
   
   if (phm.getComposition() == P_UNIT_PULSE) {  // put unit pulse in center of view
     for (int d = 0; d < detArray.nDet(); d++)
-      if (detArray.nDet() / 2 == d && isOdd (d))
-        detval[d] = 1;
-      else
         detval[d] = 0;
+    detval[ detArray.nDet() / 2 ] = 1;
   } else {
     for (int d = 0; d < detArray.nDet(); d++) {
       double xs = xs_maj;