Hall-D Software  alpha
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
DEventTag.h
Go to the documentation of this file.
1 // $Id$
2 //
3 // File: DEventTag.h
4 // Created: Fri Dec 4 10:14:22 EST 2015
5 // Creator: davidl (on Darwin harriet.jlab.org 13.4.0 i386)
6 //
7 
8 #ifndef _DEventTag_
9 #define _DEventTag_
10 
11 #include <JANA/jerror.h>
12 
13 #include <TRIGGER/DL3Trigger.h>
14 
15 class DEventTag:public jana::JObject{
16  public:
18 
19  DEventTag(uint64_t es=0L, DL3Trigger::L3_decision_t d=DL3Trigger::kNO_DECISION, uint64_t l3s=0, uint32_t l3a=0, double mva=3E-6)
21  mva_response = ((double)(mva_encoded & 0x7FFFFFFF))/1000.0;
22  if( mva_encoded & 0x80000000 ) mva_response = -mva_response;
23  }
24 
25  uint64_t event_status; ///< JANA event status word when event was written
26  DL3Trigger::L3_decision_t L3_decision; ///< L3 decision when event was written
27  uint64_t L3_status; ///< L3 status word when event was written
28  uint32_t L3_algorithm; ///< L3 algorithm identifier when event was written
29  double mva_response; ///< L3 MVA response (if any)
30  uint32_t mva_encoded; ///< same as above but encoded as unsigned int (for debugging)
31 
32  // This method is used primarily for pretty printing
33  // the second argument to AddString is printf style format
34  void toStrings(vector<pair<string,string> > &items)const{
35  AddString(items, "event_status", "0x%x" , event_status);
36  AddString(items, "L3_decision" , "%d" , L3_decision);
37  AddString(items, "L3_status" , "0x%016x" , L3_status);
38  AddString(items, "L3_algorithm", "0x%08x" , L3_algorithm);
39  AddString(items, "L3_mva_response", "%5.3f" , mva_response);
40  }
41 
42 };
43 
44 #endif // _DEventTag_
45 
L3_decision_t
The DL3Trigger object is used to tell the level-3 trigger process whether or not to discard the event...
Definition: DL3Trigger.h:68
uint32_t L3_algorithm
L3 algorithm identifier when event was written.
Definition: DEventTag.h:28
JOBJECT_PUBLIC(DEventTag)
DL3Trigger::L3_decision_t L3_decision
L3 decision when event was written.
Definition: DEventTag.h:26
double mva_response
L3 MVA response (if any)
Definition: DEventTag.h:29
uint64_t event_status
JANA event status word when event was written.
Definition: DEventTag.h:25
uint64_t L3_status
L3 status word when event was written.
Definition: DEventTag.h:27
DEventTag(uint64_t es=0L, DL3Trigger::L3_decision_t d=DL3Trigger::kNO_DECISION, uint64_t l3s=0, uint32_t l3a=0, double mva=3E-6)
Definition: DEventTag.h:19
uint32_t mva_encoded
same as above but encoded as unsigned int (for debugging)
Definition: DEventTag.h:30
void toStrings(vector< pair< string, string > > &items) const
Definition: DEventTag.h:34