Hall-D Software
alpha
Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
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
DCCALShower::dime
int dime
Definition:
DCCALShower.h:33
x
Double_t x[NCHANNELS]
Definition:
st_tw_resols.C:39
y
#define y
DCCALShower::Emax
double Emax
Definition:
DCCALShower.h:46
DCCALHit.h
DCCALShower::x
double x
Definition:
DCCALShower.h:39
DCCALShower::y1
double y1
Definition:
DCCALShower.h:43
DCCALShower::id
int id
Definition:
DCCALShower.h:35
DCCALShower::z
double z
Definition:
DCCALShower.h:41
DCCALShower::y
double y
Definition:
DCCALShower.h:40
DCCALShower::toStrings
void toStrings(vector< pair< string, string > > &items) const
Definition:
DCCALShower.h:54
DCCALShower::chi2
double chi2
Definition:
DCCALShower.h:44
DCCALShower::status
int status
Definition:
DCCALShower.h:34
DCCALShower
Definition:
DCCALShower.h:24
DCCALShower::type
int type
Definition:
DCCALShower.h:32
DCCALShower::idmax
int idmax
Definition:
DCCALShower.h:36
DCCALShower::x1
double x1
Definition:
DCCALShower.h:42
hycal.h
DCCALShower::E
double E
Definition:
DCCALShower.h:38
DCCALShower::time
double time
Definition:
DCCALShower.h:47
DCCALShower::sigma_t
double sigma_t
Definition:
DCCALShower.h:48
DVector3.h
MAX_CC
#define MAX_CC
Definition:
hycal.h:20
DCCALShower::sigma_E
double sigma_E
Definition:
DCCALShower.h:45
libraries
CCAL
DCCALShower.h
Generated on Fri Jul 26 2019 14:00:25 for Hall-D Software by
1.8.5