Hall-D Software  alpha
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
DBeamPhoton.h
Go to the documentation of this file.
1 // $Id$
2 //
3 // File: DBeamPhoton.h
4 // Created: Thu Feb 14 10:11:52 EST 2008
5 // Creator: davidl (on Darwin fwing-dhcp13.jlab.org 8.10.1 i386)
6 //
7 
8 #ifndef _DBeamPhoton_
9 #define _DBeamPhoton_
10 
11 #include <PID/DKinematicData.h>
12 
14 {
15  public:
17 
18  unsigned int dCounter = 0;
19  DetectorSystem_t dSystem = SYS_NULL; //SYS_TAGM or SYS_TAGH (SYS_NULL if tag MCGEN and misses the tagger!)
20 
21  void toStrings(vector<pair<string,string> > &items)const{
22  AddString(items, "E(GeV)", "%f", momentum().Mag());
23  AddString(items, "System", "%s", SystemName(dSystem));
24  AddString(items, "Counter", "%d", dCounter);
25  AddString(items, "t(ns)", "%3.1f", time());
26  }
27 };
28 
29 
30 
31 #endif // _DBeamPhoton_
32 
unsigned int dCounter
Definition: DBeamPhoton.h:18
JOBJECT_PUBLIC(DBeamPhoton)
Definition: GlueX.h:16
DetectorSystem_t
Definition: GlueX.h:15
double time(void) const
void toStrings(vector< pair< string, string > > &items) const
Definition: DBeamPhoton.h:21
const char * SystemName(DetectorSystem_t sys)
Definition: GlueX.h:38
DetectorSystem_t dSystem
Definition: DBeamPhoton.h:19
const DVector3 & momentum(void) const