Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
caloTowerEmbed.h
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file caloTowerEmbed.h
1 // Tell emacs that this is a C++ source
2 // -*- C++ -*-.
3 #ifndef CALOTOWEREMBED_H
4 #define CALOTOWEREMBED_H
5 
6 #include <calobase/TowerInfoContainer.h> // for TowerInfoContainer, TowerIn...
7 
8 #include <calobase/RawTowerGeom.h>
9 #include <calobase/RawTowerGeomContainer.h>
10 
11 #include <fun4all/SubsysReco.h>
12 
13 #include <cassert>
14 #include <iostream>
15 #include <string>
16 
17 #include "TFile.h"
18 #include "TTree.h"
19 
20 //class CDBInterface;
21 //class CDBTTree;
22 class PHCompositeNode;
26 
27 class caloTowerEmbed : public SubsysReco
28 {
29  public:
30  caloTowerEmbed(const std::string &name = "caloTowerEmbed");
31 
32  ~caloTowerEmbed() override;
33 
34  int InitRun(PHCompositeNode *topNode) override;
35  int process_event(PHCompositeNode *topNode) override;
36  int End(PHCompositeNode *topNode) override;
37  void CreateNodeTree(PHCompositeNode *topNode);
38 
39 
40  void set_useRetower(bool a){ m_useRetower = a; };
41 
43  {
44  CEMC = 0,
45  HCALIN = 1,
46  HCALOUT = 2,
47  EPD = 3
48  };
49 
50  private:
51  TowerInfoContainer *_data_towers[3] = {nullptr,nullptr,nullptr};
52  TowerInfoContainer *_sim_towers[3] = {nullptr,nullptr,nullptr};
53 
57 
58  bool m_useRetower = false;
59 
60  // CDBInterface *cdb = nullptr;
61  //CDBTTree *cdbttree = nullptr;
64 
65 };
66 
67 #endif // CALOTOWEREMBED_H