Changeset 9264 for trunk/MagicSoft/Mars
- Timestamp:
- 01/25/09 17:27:05 (16 years ago)
- Location:
- trunk/MagicSoft/Mars
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/Changelog
r9262 r9264 82 82 * msimcamera/MSimTrigger.[h,cc]: 83 83 - added ReadEnv for setup from a resource file 84 - compress the trigger list after deleting slots 85 - initialize descriminator threshold with -1 86 - check for the validity of the discr. th in PreProcess 84 87 85 88 * msimreflector/MReflector.[h,cc]: -
trunk/MagicSoft/Mars/msimcamera/MSimTrigger.cc
r9261 r9264 78 78 // 79 79 MSimTrigger::MSimTrigger(const char *name, const char *title) 80 : fCamera(0), fPulsePos(0), fTrigger(0), fRunHeader(0), fEvtHeader(0) 80 : fCamera(0), fPulsePos(0), fTrigger(0), fRunHeader(0), fEvtHeader(0), 81 fDiscriminatorThreshold(-1) 81 82 { 82 83 fName = name ? name : "MSimTrigger"; … … 169 170 if (fCoincidenceMap.ReadFile(fNameCoincidenceMap)<0) 170 171 return kFALSE; 172 173 if (fDiscriminatorThreshold<=0) 174 { 175 *fLog << err << "ERROR - Discriminator threshold " << fDiscriminatorThreshold << " invalid." << endl; 176 return kFALSE; 177 } 178 179 *fLog << inf << "Using discriminator threshold of " << fDiscriminatorThreshold << endl; 171 180 172 181 return kTRUE; … … 260 269 delete arr->Remove(ttl); 261 270 271 // Remove the empty slots 272 arr->Compress(); 273 262 274 // If we have at least one trigger keep the earliest one. 263 275 // FIXME: The triggers should be ordered in time automatically: To be checked! … … 280 292 triggers.Sort(); 281 293 294 // inf2? 295 *fLog << all; 296 *gLog << triggers.GetEntriesFast() << " triggers in " << triggers.GetEntriesFast() << " patches."; 297 *fLog << endl; 298 282 299 // FIXME: Jitter! (Own class?) 283 300 fTrigger->SetVal(static_cast<MDigitalSignal*>(triggers[0])->GetStart()); 284 301 285 286 // inf2?287 *fLog << all << triggers.GetEntriesFast() << " triggers in " << triggers.GetEntriesFast() << " patches." << endl;288 302 289 303 return kTRUE;
Note:
See TracChangeset
for help on using the changeset viewer.