Changeset 3483
- Timestamp:
- 03/12/04 09:03:24 (21 years ago)
- Location:
- trunk/MagicSoft/Mars
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/Changelog
r3481 r3483 18 18 19 19 -*-*- 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 20 26 21 27 2004/03/11: Abelardo Moralejo -
trunk/MagicSoft/Mars/mraw/MRawEvtHeader.cc
r3183 r3483 84 84 // Trigger Pattern used for this event 85 85 // 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). 87 87 // 88 88 // UShort_t fAllLowGainOn … … 332 332 } 333 333 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 // 355 UInt_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 62 62 UInt_t GetNumTrigLvl2() const { return fNumTrigLvl2; } 63 63 UInt_t GetDAQEvtNumber() const { return fDAQEvtNumber; } 64 65 UInt_t GetTriggerID() const; 64 66 65 67 int ReadEvt(istream& fin, UShort_t ver);
Note:
See TracChangeset
for help on using the changeset viewer.