Hall-D Software  alpha
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
DCCALShower.h
Go to the documentation of this file.
1 /*
2  * File: DCCALHit_factory.h
3  *
4  * Created on 11/25/18 by A.S.
5  * use structure similar to FCAL
6  */
7 
8 
9 #ifndef _DCCALShower_
10 #define _DCCALShower_
11 
12 #include <DVector3.h>
13 #include "DCCALHit.h"
14 #include "hycal.h"
15 
16 using namespace std;
17 
18 #include <JANA/JObject.h>
19 #include <JANA/JFactory.h>
20 using namespace jana;
21 
22 #define CCAL_USER_HITS_MAX 1000
23 
24 class DCCALShower : public JObject {
25  public:
26  JOBJECT_PUBLIC(DCCALShower);
27 
28  DCCALShower();
29  ~DCCALShower();
30 
31 
32  int type;
33  int dime;
34  int status;
35  int id;
36  int idmax;
37 
38  double E;
39  double x;
40  double y;
41  double z;
42  double x1;
43  double y1;
44  double chi2;
45  double sigma_E;
46  double Emax;
47  double time;
48  double sigma_t;
49 
50  int id_storage[MAX_CC];
51  double en_storage[MAX_CC];
52  double t_storage[MAX_CC];
53 
54  void toStrings(vector<pair<string,string> > &items) const {
55  AddString(items, "E(GeV)", "%2.3f", E);
56  AddString(items, "Emax(GeV)", "%2.3f", Emax);
57  AddString(items, "x(cm)", "%3.1f", x);
58  AddString(items, "y(cm)", "%3.1f", y);
59  AddString(items, "z(cm)", "%3.1f", z);
60  AddString(items, "x1(cm)", "%3.1f", x1);
61  AddString(items, "y1(cm)", "%3.1f", y1);
62  AddString(items, "chi2", "%3.1f", chi2);
63  AddString(items, "type", "%3d", type);
64  AddString(items, "dime", "%3d", dime);
65  AddString(items, "status", "%3d", status);
66  AddString(items, "id", "%3d", id);
67  AddString(items, "idmax", "%3d", idmax);
68  AddString(items, "sigma_E", "%3.1f", sigma_E);
69  AddString(items, "t(ns)", "%2.3f", time);
70  }
71 
72  private:
73 
74 };
75 
76 
77 #endif // _DCCALShower_
78 
Double_t x[NCHANNELS]
Definition: st_tw_resols.C:39
#define y
double Emax
Definition: DCCALShower.h:46
double x
Definition: DCCALShower.h:39
double y1
Definition: DCCALShower.h:43
double z
Definition: DCCALShower.h:41
double y
Definition: DCCALShower.h:40
void toStrings(vector< pair< string, string > > &items) const
Definition: DCCALShower.h:54
double chi2
Definition: DCCALShower.h:44
double x1
Definition: DCCALShower.h:42
double E
Definition: DCCALShower.h:38
double time
Definition: DCCALShower.h:47
double sigma_t
Definition: DCCALShower.h:48
#define MAX_CC
Definition: hycal.h:20
double sigma_E
Definition: DCCALShower.h:45