Changeset 18156 for trunk/Mars
- Timestamp:
- 02/19/15 10:38:52 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Mars/mcore/DrsCalib.h
r18143 r18156 964 964 965 965 fStat.resize(samples*channels); 966 } 967 968 void Reset() 969 { 970 for (auto it=fStat.begin(); it!=fStat.end(); it++) 971 { 972 it->first = 0; 973 it->second = 0; 974 } 966 975 } 967 976 … … 1144 1153 const double valw = it->second; 1145 1154 1146 it->first = sumv>0 ? n*(1-s*sumw/sumv) : 0;1155 it->first = sumv>0 ? n*(1-s*sumw/sumv) : 0; 1147 1156 1148 1157 sumv += valv; … … 1163 1172 sumw += valw; 1164 1173 1165 it->first = sumv>0 ? n*(s*sumw/sumv-1) : 0;1174 it->first = sumv>0 ? n*(s*sumw/sumv-1) : 0; 1166 1175 } 1167 1176 … … 1198 1207 } 1199 1208 1209 /* 1210 // See MDrsCalibrationTime 1200 1211 std::string ReadFitsImp(const std::string &str) 1201 1212 { … … 1275 1286 file.SetInt("NIGHT", night, "Night as int"); 1276 1287 1277 /*1278 file.SetStr("DATE-OBS", fDateObs, "First event of whole DRS calibration");1279 file.SetStr("DATE-END", fDateEnd, "Last event of whole DRS calibration");1280 file.SetStr("RUN-BEG", fDateRunBeg[0], "First event of run 0");1281 file.SetStr("RUN-END", fDateRunEnd[0], "Last event of run 0");1282 */1283 1284 1288 std::vector<double> data(fNumSamples*fNumChannels*2); 1285 1289 … … 1298 1302 1299 1303 return std::string(); 1300 } 1304 }*/ 1301 1305 }; 1302 1306
Note:
See TracChangeset
for help on using the changeset viewer.