Hall-D Software  alpha
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
DFDCCathodeCluster.h
Go to the documentation of this file.
1 //*********************************************************************
2 // DFDCCathodeCluster.h: defintion for a cathode strip distribution
3 // Author: Craig Bookwalter (craigb at jlab.org)
4 // Date: Apr 2006
5 //*********************************************************************
6 
7 #ifndef DFDCCATHODECLUSTER_H
8 #define DFDCCATHODECLUSTER_H
9 
10 #include <vector>
11 #include <string>
12 #include <sstream>
13 #include <iomanip>
14 
15 #include "DFDCHit.h"
16 #include <JANA/JObject.h>
17 using namespace jana;
18 
19 #define HIT_TIME_DIFF_MIN 10.0
20 
21 class DFDCCathodeCluster : public JObject {
22  public:
23  JOBJECT_PUBLIC(DFDCCathodeCluster); /// DANA identifier
24 
25  vector<const DFDCHit*> members; ///< DFDCHits that make up this cluster
26  int plane; ///< V=1, U=3
27  int gLayer; ///< #1-24, which detection layer of all FDC
28  int gPlane; ///< #1-74, which plane out of all FDC modules
29  float q_tot; ///< total energy/charge deposited in the cluster
30 
31  /// Return a sensible string representation of this object
32  void toStrings(vector<pair<string,string> > &items)const{
33  AddString(items, "Nmembers", "%d", members.size());
34  AddString(items, "plane", "%d", plane);
35  AddString(items, "gLayer", "%d", gLayer);
36  AddString(items, "gPlane", "%d", gPlane);
37  AddString(items, "q_tot", "%f", q_tot);
38  }
39 };
40 
41 #endif //DFDCCATHODECLUSTER_H
vector< const DFDCHit * > members
DANA identifier.
float q_tot
total energy/charge deposited in the cluster
int gPlane
#1-74, which plane out of all FDC modules
int gLayer
#1-24, which detection layer of all FDC
void toStrings(vector< pair< string, string > > &items) const
Return a sensible string representation of this object.