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
DEventProcessor_eta_ntuple.h
Go to the documentation of this file.
1
// $Id: DEventProcessor_eta_ntuple.h 1816 2006-06-06 14:38:18Z davidl $
2
//
3
// File: DEventProcessor_eta_ntuple.h
4
// Created: Sun Apr 24 06:45:21 EDT 2005
5
// Creator: davidl (on Darwin Harriet.local 7.8.0 powerpc)
6
//
7
8
#ifndef _DEventProcessor_eta_ntuple_
9
#define _DEventProcessor_eta_ntuple_
10
11
#include <pthread.h>
12
13
#include <TFile.h>
14
#include <TH1.h>
15
#include <TH2.h>
16
#include <TH3.h>
17
#include <TTree.h>
18
19
#include <JANA/JFactory.h>
20
#include <JANA/JEventProcessor.h>
21
#include <JANA/JEventLoop.h>
22
using namespace
jana;
23
24
#include <
Event.h
>
25
26
class
DTrackWireBased
;
27
class
DMCThrown
;
28
29
#define MAX_PARTS 20
30
#define MAX_START 5
31
#define MAX_BCAL 10
32
33
class
DEventProcessor_eta_ntuple
:
public
JEventProcessor{
34
35
public
:
36
37
typedef
struct
{
38
int
event
;
// event number
39
float
E_beam
;
// E of beam photon
40
float
px_beam
;
// px of beam photon
41
float
py_beam
;
// py of beam photon
42
float
pz_beam
;
// px of beam photon
43
float
E_proton_thrown
;
// E of scattered proton
44
float
px_proton_thrown
;
// px of scattered proton
45
float
py_proton_thrown
;
// py of scattered proton
46
float
pz_proton_thrown
;
// pz of scattered proton
47
float
E_eta_thrown
;
// E of thrown eta
48
float
px_eta_thrown
;
// px of thrown eta
49
float
py_eta_thrown
;
// py of thrown eta
50
float
pz_eta_thrown
;
// pz of thrown eta
51
float
x
;
// x of interaction vertex (thrown)
52
float
y
;
// y of interaction vertex (thrown)
53
float
z
;
// z of interaction vertex (thrown)
54
int
prod_mech
;
// production mechanism
55
int
decay_mode
;
// decay mode
56
int
Nfcal
;
// Number of reconstructed clusters in FCAL
57
float
E_fcal[
MAX_PARTS
];
// E of the Nfcal clusters
58
float
px_fcal[
MAX_PARTS
];
// px of the Nfcal clusters
59
float
py_fcal[
MAX_PARTS
];
// py of the Nfcal clusters
60
float
pz_fcal[
MAX_PARTS
];
// pz of the Nfcal clusters
61
float
x_fcal[
MAX_PARTS
];
// x of the Nfcal clusters at FCAL
62
float
y_fcal[
MAX_PARTS
];
// y of the Nfcal clusters at FCAL
63
float
z_fcal[
MAX_PARTS
];
// z of the Nfcal clusters at FCAL
64
float
E_eta_best
;
// E of reconstructed eta closest to eta mass
65
float
px_eta_best
;
// px of reconstructed eta closest to eta mass
66
float
py_eta_best
;
// py of reconstructed eta closest to eta mass
67
float
pz_eta_best
;
// pz of reconstructed eta closest to eta mass
68
float
M_eta_best
;
// M of reconstructed eta closest to eta mass
69
float
t
;
70
int
Nstart
;
// Number of start counter hits
71
float
phi_start[
MAX_START
];
// phi of paddle center for hit sc
72
float
phi_start_diff[
MAX_START
];
// diff of sc phi and eta_best phi
73
float
E_bcal_tot
;
// Total energy deposited in BCAL
74
int
Nbcal
;
// Number of reconstructed BCAL photons
75
float
E_bcal[
MAX_BCAL
];
// E of Nbcal clusters
76
float
phi_bcal[
MAX_BCAL
];
// phi of Nbcal clusters
77
float
theta_bcal[
MAX_BCAL
];
// theta of Nbcal clusters
78
}
Event_ntuple_t
;
79
80
DEventProcessor_eta_ntuple
(){};
81
~DEventProcessor_eta_ntuple
(){};
82
83
Event
*evt;
84
TTree *
tree
;
85
86
87
private
:
88
jerror_t init(
void
);
///< Invoked via DEventProcessor virtual method
89
jerror_t evnt(JEventLoop *loop, uint64_t eventnumber);
///< Invoked via DEventProcessor virtual method
90
jerror_t erun(
void
);
///< Invoked via DEventProcessor virtual method
91
jerror_t fini(
void
);
///< Invoked via DEventProcessor virtual method
92
93
TLorentzVector MakeTLorentz(
const
DKinematicData
*
track
,
double
mass);
94
95
pthread_mutex_t
mutex
;
96
bool
make_root
;
97
bool
make_hbook
;
98
Event_ntuple_t
evt_ntuple
;
99
100
void
FillNtuple(
void
);
101
};
102
103
#endif // _DEventProcessor_eta_ntuple_
104
track
Definition:
track.h:16
DEventProcessor_eta_ntuple::Event_ntuple_t::t
float t
Definition:
DEventProcessor_eta_ntuple.h:69
DEventProcessor_eta_ntuple::Event_ntuple_t::pz_eta_thrown
float pz_eta_thrown
Definition:
DEventProcessor_eta_ntuple.h:50
DEventProcessor_eta_ntuple::Event_ntuple_t::py_eta_thrown
float py_eta_thrown
Definition:
DEventProcessor_eta_ntuple.h:49
DEventProcessor_eta_ntuple::Event_ntuple_t::py_beam
float py_beam
Definition:
DEventProcessor_eta_ntuple.h:41
DEventProcessor_eta_ntuple::Event_ntuple_t::Nbcal
int Nbcal
Definition:
DEventProcessor_eta_ntuple.h:74
DEventProcessor_eta_ntuple::tree
TTree * tree
Definition:
DEventProcessor_eta_ntuple.h:84
DEventProcessor_eta_ntuple::Event_ntuple_t::M_eta_best
float M_eta_best
Definition:
DEventProcessor_eta_ntuple.h:68
DEventProcessor_eta_ntuple::make_root
bool make_root
Definition:
DEventProcessor_eta_ntuple.h:96
Event
Definition:
eta_ntuple/Event.h:20
DEventProcessor_eta_ntuple::mutex
pthread_mutex_t mutex
Definition:
DEventProcessor_eta_ntuple.h:95
DEventProcessor_eta_ntuple::Event_ntuple_t::py_proton_thrown
float py_proton_thrown
Definition:
DEventProcessor_eta_ntuple.h:45
DEventProcessor_eta_ntuple::~DEventProcessor_eta_ntuple
~DEventProcessor_eta_ntuple()
Definition:
DEventProcessor_eta_ntuple.h:81
Event.h
DMCThrown
Definition:
DMCThrown.h:16
DEventProcessor_eta_ntuple::Event_ntuple_t::E_bcal_tot
float E_bcal_tot
Definition:
DEventProcessor_eta_ntuple.h:73
DEventProcessor_eta_ntuple::Event_ntuple_t::prod_mech
int prod_mech
Definition:
DEventProcessor_eta_ntuple.h:54
DEventProcessor_eta_ntuple::Event_ntuple_t::y
float y
Definition:
DEventProcessor_eta_ntuple.h:52
DEventProcessor_eta_ntuple::DEventProcessor_eta_ntuple
DEventProcessor_eta_ntuple()
Definition:
DEventProcessor_eta_ntuple.h:80
DEventProcessor_eta_ntuple::Event_ntuple_t::E_eta_thrown
float E_eta_thrown
Definition:
DEventProcessor_eta_ntuple.h:47
DEventProcessor_eta_ntuple::Event_ntuple_t::decay_mode
int decay_mode
Definition:
DEventProcessor_eta_ntuple.h:55
DEventProcessor_eta_ntuple::Event_ntuple_t::px_eta_thrown
float px_eta_thrown
Definition:
DEventProcessor_eta_ntuple.h:48
DEventProcessor_eta_ntuple::Event_ntuple_t::E_beam
float E_beam
Definition:
DEventProcessor_eta_ntuple.h:39
DEventProcessor_eta_ntuple::Event_ntuple_t::pz_eta_best
float pz_eta_best
Definition:
DEventProcessor_eta_ntuple.h:67
MAX_BCAL
#define MAX_BCAL
Definition:
DEventProcessor_eta_ntuple.h:31
MAX_START
#define MAX_START
Definition:
DEventProcessor_eta_ntuple.h:30
DEventProcessor_eta_ntuple::Event_ntuple_t::px_proton_thrown
float px_proton_thrown
Definition:
DEventProcessor_eta_ntuple.h:44
DEventProcessor_eta_ntuple::Event_ntuple_t::py_eta_best
float py_eta_best
Definition:
DEventProcessor_eta_ntuple.h:66
DKinematicData
Definition:
DKinematicData.h:24
DEventProcessor_eta_ntuple::Event_ntuple_t::px_eta_best
float px_eta_best
Definition:
DEventProcessor_eta_ntuple.h:65
DEventProcessor_eta_ntuple::Event_ntuple_t::z
float z
Definition:
DEventProcessor_eta_ntuple.h:53
DTrackWireBased
Definition:
DTrackWireBased.h:16
DEventProcessor_eta_ntuple
Definition:
DEventProcessor_eta_ntuple.h:33
DEventProcessor_eta_ntuple::Event_ntuple_t::px_beam
float px_beam
Definition:
DEventProcessor_eta_ntuple.h:40
DEventProcessor_eta_ntuple::Event_ntuple_t::Nfcal
int Nfcal
Definition:
DEventProcessor_eta_ntuple.h:56
DEventProcessor_eta_ntuple::evt_ntuple
Event_ntuple_t evt_ntuple
Definition:
DEventProcessor_eta_ntuple.h:98
DEventProcessor_eta_ntuple::Event_ntuple_t::pz_beam
float pz_beam
Definition:
DEventProcessor_eta_ntuple.h:42
DEventProcessor_eta_ntuple::Event_ntuple_t::E_proton_thrown
float E_proton_thrown
Definition:
DEventProcessor_eta_ntuple.h:43
MAX_PARTS
#define MAX_PARTS
Definition:
DEventProcessor_eta_ntuple.h:29
DEventProcessor_eta_ntuple::Event_ntuple_t::event
int event
Definition:
DEventProcessor_eta_ntuple.h:38
DEventProcessor_eta_ntuple::Event_ntuple_t::Nstart
int Nstart
Definition:
DEventProcessor_eta_ntuple.h:70
DEventProcessor_eta_ntuple::Event_ntuple_t::x
float x
Definition:
DEventProcessor_eta_ntuple.h:51
DEventProcessor_eta_ntuple::Event_ntuple_t::E_eta_best
float E_eta_best
Definition:
DEventProcessor_eta_ntuple.h:64
DEventProcessor_eta_ntuple::Event_ntuple_t::pz_proton_thrown
float pz_proton_thrown
Definition:
DEventProcessor_eta_ntuple.h:46
DEventProcessor_eta_ntuple::make_hbook
bool make_hbook
Definition:
DEventProcessor_eta_ntuple.h:97
DEventProcessor_eta_ntuple::Event_ntuple_t
Definition:
DEventProcessor_eta_ntuple.h:37
plugins
Analysis
eta_ntuple
DEventProcessor_eta_ntuple.h
Generated on Fri Jul 26 2019 14:00:33 for Hall-D Software by
1.8.5