Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
CaloTowerStatus.h
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file CaloTowerStatus.h
1 // Tell emacs that this is a C++ source
2 // -*- C++ -*-.
3 #ifndef CALOTOWERSTATUS_H
4 #define CALOTOWERSTATUS_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 
21 {
22  public:
23  CaloTowerStatus(const std::string &name = "CaloTowerStatus");
24 
25  ~CaloTowerStatus() 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  {
39  return;
40  }
41  void set_badChi2_treshold(float threshold)
42  {
43  badChi2_treshold = threshold;
44  return;
45  }
46  void set_fraction_badChi2_threshold(float threshold)
47  {
48  fraction_badChi2_threshold = threshold;
49  return;
50  }
51  void set_time_cut(float threshold)
52  {
53  time_cut = threshold;
54  return;
55  }
56 
57  private:
59 
63 
64  bool m_doHotChi2{true};
65  bool m_doTime{true};
66  bool m_doHotMap{true};
67 
69 
78 
79  float badChi2_treshold = 1e4;
81  float time_cut = 2; // number of samples from the mean time for the channel in the run
82 };
83 
84 #endif // CALOTOWERBUILDER_H