Analysis Software
Documentation for
sPHENIX
simulation software
Home page
Related Pages
Modules
Namespaces
Classes
Files
Examples
External Links
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
Prototype3DSTReader.h
Go to the documentation of this file.
Or view
the newest version in sPHENIX GitHub for file Prototype3DSTReader.h
1
// Tell emacs that this is a C++ source
2
// -*- C++ -*-.
3
// $Id: Prototype3DSTReader.h,v 1.7 2015/02/27 23:42:23 jinhuang Exp $
4
13
#ifndef PROTOTYPE3_PROTOTYPE3DSTREADER_H
14
#define PROTOTYPE3_PROTOTYPE3DSTREADER_H
15
16
#include "
RawTower_Prototype3.h
"
17
#include "
RawTower_Temperature.h
"
18
19
#include <
fun4all/SubsysReco.h
>
20
21
#include <memory>
22
#include <string>
23
#include <vector>
24
25
class
PHCompositeNode
;
26
class
TClonesArray;
27
class
TTree;
28
33
class
Prototype3DSTReader
:
public
SubsysReco
34
{
35
public
:
36
Prototype3DSTReader
(
const
std::string
&
filename
);
37
virtual
~Prototype3DSTReader
();
38
40
int
Init
(
PHCompositeNode
*);
41
43
int
process_event
(
PHCompositeNode
*);
44
46
int
End
(
PHCompositeNode
*);
47
48
void
AddTower
(
const
std::string
&
name
) {
_tower_postfix
.push_back(name); }
49
50
void
AddTowerTemperature
(
const
std::string
&
name
)
51
{
52
_towertemp_postfix
.push_back(name);
53
}
54
55
void
AddRunInfo
(
const
std::string
&
name
) {
_runinfo_list
.push_back(name); }
56
void
AddEventInfo
(
const
std::string
&
name
)
57
{
58
_eventinfo_list
.push_back(name);
59
}
60
62
double
get_tower_zero_sup
() {
return
_tower_zero_sup
; }
63
65
void
set_tower_zero_sup
(
double
b
) {
_tower_zero_sup
=
b
; }
66
67
protected
:
68
// std::vector<std::string> _node_postfix;
69
std::vector<std::string>
_tower_postfix
;
71
std::vector<std::string>
_towertemp_postfix
;
72
// std::vector<std::string> _jet_postfix;
73
// std::vector<std::string> _node_name;
74
std::vector<std::string>
_runinfo_list
;
75
std::vector<std::string>
_eventinfo_list
;
76
77
int
nblocks
;
78
79
80
typedef
std::shared_ptr<TClonesArray>
arr_ptr
;
81
82
struct
record
83
{
84
unsigned
int
_cnt
;
85
std::string
_name
;
86
arr_ptr
_arr
;
87
TClonesArray *
_arr_ptr
;
88
double
_dvalue
;
89
90
enum
enu_type
91
{
92
typ_hit
,
93
typ_part
,
94
typ_vertex
,
95
typ_tower
,
96
typ_jets
,
97
typ_runinfo
,
98
typ_eventinfo
,
99
typ_towertemp
100
};
101
enu_type
_type
;
102
};
103
typedef
std::vector<record>
records_t
;
104
records_t
_records
;
105
106
typedef
RawTower_Prototype3
RawTower_type
;
107
108
typedef
RawTower_Temperature
RawTowerT_type
;
109
110
int
_event
;
111
112
std::string
_out_file_name
;
113
114
// TFile * _file;
115
TTree *
_T
;
116
118
double
_tower_zero_sup
;
119
120
void
build_tree
();
121
};
122
123
#endif
prototype
blob
master
offline
packages
Prototype3
Prototype3DSTReader.h
Built by
Jin Huang
. updated:
Sat Feb 17 2024 22:18:29
using
1.8.2 with
sPHENIX GitHub integration