Changeset 8952 for trunk


Ignore:
Timestamp:
06/14/08 00:29:53 (16 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/Changelog

    r8951 r8952  
    2424   * datacenter/macros/fillcalib.C:
    2525     - fixed a bug introduced by the usage of InserUpdate
     26
     27   * datacenter/macros/fillsignal.C:
     28     - fixed a type (the wrong number was printed to the console)
     29
     30   * mjobs/MJCalibrateSignal.cc:
     31     - let all calibration triggered events pass to calibration
     32
     33   * mtrigger/MFTriggerPattern.[h,cc]:
     34     - count a bit more to increase the printed amout of
     35       information at the end
    2636
    2737
  • trunk/MagicSoft/Mars/datacenter/macros/fillsignal.C

    r8940 r8952  
    330330    cout << "  UnsuitableMax (99.9%)   " << setw(6) << unsuitablemax << endl;
    331331    cout << "  DeadMax                 " << setw(6) << deadmax << endl;
    332     cout << "  Rate Trigger       [Hz] "  << rateped << endl;
     332    cout << "  Rate Trigger       [Hz] "  << ratetrig << endl;
    333333    cout << "  Rate SUM           [Hz] "  << ratesum  << endl;
    334334    cout << "  Rate Ped+Trigger   [Hz]  " << rateped2 << endl;
  • trunk/MagicSoft/Mars/mjobs/MJCalibrateSignal.cc

    r8948 r8952  
    515515    // Deny or allow is done before prescaling.
    516516    //
    517     MFTriggerPattern fped;
     517    MFTriggerPattern fped("SelectPedestals");
    518518    fped.SetDefault(kTRUE);
    519519    fped.DenyCalibration();
     
    580580    fcalib.DenyAll();
    581581    fcalib.RequireCalibration();
     582    fcalib.AllowTriggerLvl1();
     583    fcalib.AllowTriggerLvl2();
     584    fcalib.AllowSumTrigger();
    582585
    583586    MCalibrationChargeCalc  chcalc;
  • trunk/MagicSoft/Mars/mtrigger/MFTriggerPattern.cc

    r8929 r8952  
    101101//
    102102// If Prescaled and Unprescaled pattern is 0 return default.
    103 // If all bits of the fMaskRequired* mask are found in the pattern set
    104 // fResult to true.
     103//
     104// If at least all bits in the fMaskRequired* mask are found in the
     105// trigger pattern set fResult to true. This means that is the required
     106// mask is 0 the dafult is changed from false to true.
     107//
    105108// If any bit matches the fMasDenied* mask fResult is forced to be false.
    106109//
    107 Int_t MFTriggerPattern::Eval() const
     110Int_t MFTriggerPattern::Eval()
    108111{
    109112    const Byte_t p = fPattern->GetPrescaled();
     
    111114    if (p==0 && u==0)
    112115    {
     116        fCounter[2]++;
    113117        return fDefault;
    114118    }
     
    123127    // Now overwrite the result if one of the bits is denied
    124128    if ( (p & fMaskDeniedPrescaled) || (u & fMaskDeniedUnprescaled) )
     129    {
     130        fCounter[3]++;
    125131        return kFALSE;
     132    }
    126133
    127134    return rc;
     
    155162    *fLog << dec << setfill(' ');
    156163
    157     *fLog << " " << setw(7) << fCounter[0] << " (" << setw(3) ;
     164    *fLog << "  " << setw(7) << fCounter[2] << " (" << setw(3);
     165    *fLog << (int)(fCounter[2]*100/n);
     166    *fLog << "%) Default (" << (fDefault?"true":"false") << ") returned." << endl;
     167
     168    *fLog << "  " << setw(7) << fCounter[3] << " (" << setw(3);
     169    *fLog << (int)(fCounter[3]*100/n);
     170    *fLog << "%) Trigger denied." << endl;
     171
     172    *fLog << " " << setw(7) << fCounter[0] << " (" << setw(3);
    158173    *fLog << (int)(fCounter[0]*100/n);
    159174    *fLog << "%) Accepted trigger pattern." << endl;
    160175
    161     *fLog << " " << setw(7) << fCounter[1] << " (" << setw(3) ;
     176    *fLog << " " << setw(7) << fCounter[1] << " (" << setw(3);
    162177    *fLog << (int)(fCounter[1]*100/n);
    163178    *fLog << "%) Rejected trigger pattern!" << endl;
  • trunk/MagicSoft/Mars/mtrigger/MFTriggerPattern.h

    r8929 r8952  
    3131
    3232  Bool_t fResult;                   //! Calculated result to be returned by IsExpressionTrue
    33   Int_t  fCounter[2];               //! Counter for results
     33  Int_t  fCounter[4];               //! Counter for results
    3434
    3535  // MFTriggerPattern
     
    3838  void Allow(const Byte_t mask, Prescale_t prescaled=kUnPrescaled);
    3939
    40   Int_t Eval() const;
     40  Int_t Eval();
    4141
    4242  // MTask
Note: See TracChangeset for help on using the changeset viewer.