Ignore:
Timestamp:
01/25/09 17:27:05 (16 years ago)
Author:
tbretz
Message:
*** empty log message ***
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/msimcamera/MSimTrigger.cc

    r9261 r9264  
    7878//
    7979MSimTrigger::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)
    8182{
    8283    fName  = name  ? name  : "MSimTrigger";
     
    169170    if (fCoincidenceMap.ReadFile(fNameCoincidenceMap)<0)
    170171        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;
    171180
    172181    return kTRUE;
     
    260269                delete arr->Remove(ttl);
    261270
     271        // Remove the empty slots
     272        arr->Compress();
     273
    262274        // If we have at least one trigger keep the earliest one.
    263275        // FIXME: The triggers should be ordered in time automatically: To be checked!
     
    280292    triggers.Sort();
    281293
     294    // inf2?
     295    *fLog << all;
     296    *gLog << triggers.GetEntriesFast() << " triggers in " << triggers.GetEntriesFast() << " patches.";
     297    *fLog << endl;
     298
    282299    // FIXME: Jitter! (Own class?)
    283300    fTrigger->SetVal(static_cast<MDigitalSignal*>(triggers[0])->GetStart());
    284301
    285 
    286     // inf2?
    287     *fLog << all << triggers.GetEntriesFast() << " triggers in " << triggers.GetEntriesFast() << " patches." << endl;
    288302
    289303    return kTRUE;
Note: See TracChangeset for help on using the changeset viewer.