Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
QAG4SimulationDistortions.h
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file QAG4SimulationDistortions.h
1 // Tell emacs that this is a C++ source
2 // -*- C++ -*-.
3 #ifndef QAG4SIMULATIONDISTORTIONS_H
4 #define QAG4SIMULATIONDISTORTIONS_H
5 
6 #include <fun4all/SubsysReco.h>
7 #include <trackbase/TrkrDefs.h>
8 
9 #include <math.h>
10 #include <string>
11 #include <vector>
12 
13 class PHCompositeNode;
14 class SvtxTrackMap;
16 class SvtxTrack;
17 class ActsGeometry;
18 
20 {
21  public:
22  QAG4SimulationDistortions(const std::string& name = "QAG4SimulationDistortions");
23 
24  ~QAG4SimulationDistortions() override;
25 
26  int Init(PHCompositeNode*) override;
27  int InitRun(PHCompositeNode* topNode) override;
28  int process_event(PHCompositeNode*) override;
29 
30  private:
32  {
33  return std::string("h_") + Name() + std::string("_");
34  }
35 
36  std::vector<TrkrDefs::cluskey> get_cluster_keys(SvtxTrack* track);
37  bool checkTrack(SvtxTrack* track);
41 
42  int m_event = 0;
43  float m_tanAlpha = NAN;
44  float m_tanBeta = NAN;
45  float m_drphi = NAN;
46  float m_dz = NAN;
47  float m_clusR = NAN;
48  float m_clusPhi = NAN;
49  float m_clusZ = NAN;
50  float m_statePhi = NAN;
51  float m_stateZ = NAN;
52  float m_stateR = NAN;
53  float m_stateRPhiErr = NAN;
54  float m_stateZErr = NAN;
55  float m_clusRPhiErr = NAN;
56  float m_clusZErr = NAN;
57  TrkrDefs::cluskey m_cluskey = TrkrDefs::CLUSKEYMAX;
58 };
59 
60 #endif // QAG4SIMULATIONDISTORTIONS_H