Changeset 2004 for trunk/src/STMath.cpp
- Timestamp:
- 02/22/11 20:24:33 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/STMath.cpp
r1967 r2004 1047 1047 if ( tcal <= 0.0 ) { 1048 1048 caloff->tcal().getEntry(tcalt, tcalout, tcalId); 1049 if (polno<=3) { 1050 tcalUsed = tcalout[polno]; 1051 } 1049 // if (polno<=3) { 1050 // tcalUsed = tcalout[polno]; 1051 // } 1052 // else { 1053 // tcalUsed = tcalout[0]; 1054 // } 1055 if ( tcalout.size() == 1 ) 1056 tcalUsed = tcalout[0] ; 1057 else if ( tcalout.size() == nchan ) 1058 tcalUsed = mean(tcalout) ; 1052 1059 else { 1053 tcalUsed = tcalout[0]; 1060 uInt ipol = polno ; 1061 if ( ipol > 3 ) ipol = 0 ; 1062 tcalUsed = tcalout[ipol] ; 1054 1063 } 1055 1064 }
Note: See TracChangeset
for help on using the changeset viewer.