Hall-D Software  alpha
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
DTAGHGeometry.h
Go to the documentation of this file.
1 //
2 // File: DTAGHGeometry.h
3 // Created: Sat Jul 5, 10:09:27 EST 2014
4 // Creator: jonesrt on gluey.phys.uconn.edu
5 //
6 
7 #ifndef _DTAGHGeometry_
8 #define _DTAGHGeometry_
9 
10 #include <string>
11 
12 #include <JANA/JFactory.h>
13 #include <JANA/JObject.h>
14 using namespace jana;
15 
16 #include "units.h"
17 
18 #define TAGH_MAX_COUNTER 274
19 
20 class DTAGHGeometry : public JObject {
21  public:
22 
23  JOBJECT_PUBLIC(DTAGHGeometry);
24 
25  DTAGHGeometry(JEventLoop *loop);
26  ~DTAGHGeometry();
27 
28  static const unsigned int kCounterCount;
29 
30  // counters are numbered 1..kCounterCount
31  double getElow(unsigned int counter) const;
32  double getEhigh(unsigned int counter) const;
33  bool E_to_counter(double E, unsigned int &counter) const;
34 
35  void toStrings(vector<pair<string,string> > &items) const {
36  AddString(items, "kCounterCount", "%d", kCounterCount);
37  }
38 
39  private:
41  double m_counter_xlow[TAGH_MAX_COUNTER+1];
42  double m_counter_xhigh[TAGH_MAX_COUNTER+1];
43 };
44 
45 #endif // _DTAGHGeometry_
#define TAGH_MAX_COUNTER
Definition: DTAGHGeometry.h:18
void toStrings(vector< pair< string, string > > &items) const
Definition: DTAGHGeometry.h:35
double counter
Definition: FitGains.C:151
double m_endpoint_energy_GeV
Definition: DTAGHGeometry.h:40
static const unsigned int kCounterCount
Definition: DTAGHGeometry.h:28