Changeset 17835
- Timestamp:
- 05/11/14 21:25:21 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Mars/msignal/MExtractFACT.cc
r17830 r17835 150 150 } 151 151 152 //Float_t max = *pmax; 153 152 154 // ------------------------------------------------------------------------- 153 155 // Calculate a parabola through this and the surrounding points … … 171 173 if (pmax>pbeg && pmax<pend-1) 172 174 { 173 const double&v1 = pmax[-1];174 const double &v2 = pmax[0];175 const double&v3 = pmax[+1];175 const Float_t &v1 = pmax[-1]; 176 const Float_t &v2 = pmax[ 0]; 177 const Float_t &v3 = pmax[+1]; 176 178 if (v1>0 && v2>0 && v3>0) 177 179 { … … 190 192 if (dx>=-1 && dx<=1) 191 193 { 192 max = a + b*dx + c*dx*dx; 194 max = exp(a + b*dx + c*dx*dx); 195 196 // Time is position of maximum 193 197 //time = dx; 194 198 //time += Int_t(pmax-ptr); … … 202 206 { 203 207 // -10: maximum search window 208 209 // Time is position of half hight leading edge 204 210 pend = std::max(pbeg, pmax-10); 205 211 for (;pmax>=pend; pmax--)
Note:
See TracChangeset
for help on using the changeset viewer.