Analysis Software
Documentation for sPHENIX simulation software
 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 
34 {
35  public:
37  virtual ~Prototype3DSTReader();
38 
40  int Init(PHCompositeNode *);
41 
44 
46  int End(PHCompositeNode *);
47 
48  void AddTower(const std::string &name) { _tower_postfix.push_back(name); }
49 
51  {
52  _towertemp_postfix.push_back(name);
53  }
54 
55  void AddRunInfo(const std::string &name) { _runinfo_list.push_back(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;
87  TClonesArray *_arr_ptr;
88  double _dvalue;
89 
90  enum enu_type
91  {
100  };
102  };
103  typedef std::vector<record> records_t;
105 
107 
109 
110  int _event;
111 
113 
114  // TFile * _file;
115  TTree *_T;
116 
119 
120  void build_tree();
121 };
122 
123 #endif