Show
Ignore:
Timestamp:
06/27/10 05:31:11 (2 years ago)
Author:
farhi
Message:

Data: added restore_neutron to PSD_Detector

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • branches/mcstas-1.x/lib/contrib/PSD_Detector.comp

    r2822 r2897  
    162162* yChDivRelSigma: Relative sigma due to charge division in y direction (1), 
    163163*                 (relative to yheight) 
     164* restore_neutron: If set, the monitor does not influence the neutron state (1) 
    164165* 
    165166* OUTPUT PARAMETERS: 
     
    180181  re=0.73, thres=100, PressureConv=5, PressureStop=1, interpolate=1, frac=0, 
    181182  verbose=0, LensOn=1, dc=0, borderx=-1, bordery=-1, xChDivRelSigma=0, 
    182   yChDivRelSigma=0) 
     183  yChDivRelSigma=0, restore_neutron=0) 
    183184OUTPUT PARAMETERS (PSD_N, PSD_p, PSD_p2, EAP,M1P1,PosAP, EAT,M1T1,PosAT, 
    184185  CrossSectionHe, CountNeutrons, GeomCumul, AbsCumul, DetCumul, PHSpectrum, 
    185186  PHSpectrum2,PHSpectrum_n,nH_p,nH_t,FullEnergyP,FullEnergyT,VariousErrors,SensVolCumul) 
    186187STATE PARAMETERS (x,y,z,vx,vy,vz,t,s1,s2,p) 
     188POLARISATION PARAMETERS (sx,sy,sz) 
    187189 
    188190SHARE 
     
    10221024    } /* end if frac */ 
    10231025  } /* end if (box_intersect) */ 
     1026  if (restore_neutron) { 
     1027    RESTORE_NEUTRON(INDEX_CURRENT_COMP, x, y, z, vx, vy, vz, t, sx, sy, sz, p); 
     1028  } 
    10241029 
    10251030%}