Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
helixResiduals.h
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file helixResiduals.h
1 #ifndef HELIXRESIDUALS_H
2 #define HELIXRESIDUALS_H
3 
9 #include <trackermillepedealignment/HelicalFitter.h>
10 
11 #include <fun4all/SubsysReco.h>
12 
13 class TFile;
14 class TNtuple;
15 
16 class PHCompositeNode;
17 class SvtxTrack;
18 class SvtxTrackMap;
19 
20 class helixResiduals : public SubsysReco
21 {
22  public:
23  helixResiduals(const std::string& name = "helixResiduals");
25 
26  int InitRun(PHCompositeNode* topNode) override;
27  int process_event(PHCompositeNode* /*topNode*/) override;
28  int End(PHCompositeNode* /*topNode*/) override;
29  void set_output_file(const std::string& outputfile) { filepath = outputfile; }
30 
31  private:
32  int getNodes(PHCompositeNode* topNode);
33 
34  void fill_residuals(TrackSeed* seed, int seed_id, bool isTpc);
35 
36  HelicalFitter* _fitter = nullptr;
37  ActsGeometry* tGeometry = nullptr;
38 
39  TNtuple* ntp_residuals = nullptr;
40 
41  SvtxTrackMap* _tracks = nullptr;
45 
46  TFile* fout = nullptr;
47 
49 };
50 
51 #endif // HELIXRESIDUALS_H