Changeset 3483


Ignore:
Timestamp:
03/12/04 09:03:24 (21 years ago)
Author:
stamerra
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/Changelog

    r3481 r3483  
    1818
    1919                                                 -*-*- END OF LINE -*-*-
     20
     21 2004/03/12: Antonio Stamerra
     22
     23   * mraw/MRawEvtHeader.[h,cc]
     24     - Added the method GetTriggerID() to decode the trigger pattern.
     25
    2026
    2127 2004/03/11: Abelardo Moralejo
  • trunk/MagicSoft/Mars/mraw/MRawEvtHeader.cc

    r3183 r3483  
    8484// Trigger Pattern used for this event
    8585// Each event triggers for a particular configuration and each 
    86 // configuration shoul have an ID (which is not fixed yet).
     86// configuration should have an ID (which is not fixed yet).
    8787//
    8888// UShort_t fAllLowGainOn
     
    332332}
    333333
     334// --------------------------------------------------------------------------
     335//
     336//   Low level decoding of the trigger pattern.
     337//   The trigger pattern consists of 16 bits (8+8 bits) generated by the
     338//   trigger system.
     339//   The first 8 bits correspond to the trigger configuration before the
     340//   prescaling, the others after prescaling.
     341//   The meaning of the configuration depends on the chosen trigger table
     342//   (that is how the trigger has been programmed) and must be interpreted
     343//    at higher level by the analysis.
     344//   Bit structure:
     345//          not prscd | prscaled
     346//           xxxx xxxx xxxx xxxx    <-- pattern (x=0,1)
     347//     bit   7654 3210 7654 3210
     348//          H                   L
     349//
     350//    e.g.   1000 0000 1000 1000 (hex: 8080) is the pattern when no
     351//         L2 trigger selection and no prescaling is applied.
     352//       
     353//    Up to now only fTrigPattern[0] is used.
     354//
     355UInt_t MRawEvtHeader::GetTriggerID() const
     356{
     357  UInt_t trigID=0;
     358
     359  trigID = fTrigPattern[0];
     360
     361  return trigID;
     362}
  • trunk/MagicSoft/Mars/mraw/MRawEvtHeader.h

    r3374 r3483  
    6262    UInt_t   GetNumTrigLvl2() const  { return fNumTrigLvl2; }
    6363    UInt_t   GetDAQEvtNumber() const { return fDAQEvtNumber; }
     64   
     65    UInt_t GetTriggerID() const;
    6466
    6567    int ReadEvt(istream& fin, UShort_t ver);
Note: See TracChangeset for help on using the changeset viewer.