Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
CaloTowerCalib.h
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file CaloTowerCalib.h
1 // Tell emacs that this is a C++ source
2 // -*- C++ -*-.
3 #ifndef CALOTOWERCALIB_H
4 #define CALOTOWERCALIB_H
5 
6 #include "CaloTowerDefs.h"
7 
8 #include <calobase/TowerInfoContainer.h> // for TowerInfoContainer, TowerIn...
9 
10 #include <fun4all/SubsysReco.h>
11 
12 #include <cassert>
13 #include <iostream>
14 #include <string>
15 
16 class CDBTTree;
17 class PHCompositeNode;
18 class TowerInfoContainer;
19 
20 class CaloTowerCalib : public SubsysReco
21 {
22  public:
23  CaloTowerCalib(const std::string &name = "CaloTowerCalib");
24 
25  ~CaloTowerCalib() override;
26 
27  int InitRun(PHCompositeNode *topNode) override;
28  int process_event(PHCompositeNode *topNode) override;
29  void CreateNodeTree(PHCompositeNode *topNode);
30 
32  {
33  m_dettype = dettype;
34  return;
35  }
37  {
38  m_calibName = name;
40  return;
41  }
43  {
44  m_fieldname = name;
46  return;
47  }
49  {
51  return;
52  }
54  {
56  return;
57  }
58 
60  m_giveDirectURL = true;
61  m_directURL = url;
62  }
63 
64  void set_use_TowerInfov2(bool use) {m_use_TowerInfov2=use;}
65 
66  private:
68 
73  bool m_overrideCalibName {false};
74  bool m_overrideFieldName {false};
76  std::string m_outputNodePrefix {"TOWERINFO_CALIB_"};
79 
81 
82  bool m_giveDirectURL = false;
84 
85  CDBTTree *cdbttree = nullptr;
87 };
88 
89 #endif // CALOTOWERBUILDER_H