-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #138 from JeffersonLab/davidl_DEventTag
Davidl DEventTag
- Loading branch information
Showing
5 changed files
with
112 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
// $Id$ | ||
// | ||
// File: DEventTag.h | ||
// Created: Fri Dec 4 10:14:22 EST 2015 | ||
// Creator: davidl (on Darwin harriet.jlab.org 13.4.0 i386) | ||
// | ||
|
||
#ifndef _DEventTag_ | ||
#define _DEventTag_ | ||
|
||
#include <JANA/jerror.h> | ||
|
||
#include <TRIGGER/DL3Trigger.h> | ||
|
||
class DEventTag:public jana::JObject{ | ||
public: | ||
JOBJECT_PUBLIC(DEventTag); | ||
|
||
DEventTag(uint64_t es=0L, DL3Trigger::L3_decision_t d=DL3Trigger::kNO_DECISION, uint64_t l3s=0, uint32_t l3a=0) | ||
:event_status(es),L3_decision(d),L3_status(l3s),L3_algorithm(l3a){} | ||
|
||
uint64_t event_status; ///< JANA event status word when event was written | ||
DL3Trigger::L3_decision_t L3_decision; ///< L3 decision when event was written | ||
uint64_t L3_status; ///< L3 status word when event was written | ||
uint32_t L3_algorithm; ///< L3 algorithm identifier when event was written | ||
|
||
// This method is used primarily for pretty printing | ||
// the second argument to AddString is printf style format | ||
void toStrings(vector<pair<string,string> > &items)const{ | ||
AddString(items, "event_status", "0x%x" , event_status); | ||
AddString(items, "L3_decision" , "%d" , L3_decision); | ||
AddString(items, "L3_status" , "0x%016x" , L3_status); | ||
AddString(items, "L3_algorithm", "0x%08x" , L3_algorithm); | ||
} | ||
|
||
}; | ||
|
||
#endif // _DEventTag_ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters