EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
TpcSpaceChargeMatrixInversion.h
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file TpcSpaceChargeMatrixInversion.h
1 #ifndef TPCCALIB_TPCSPACECHARGEMATRIXINVERSION_H
2 #define TPCCALIB_TPCSPACECHARGEMATRIXINVERSION_H
3 
8 #include <fun4all/Fun4AllBase.h>
9 
10 #include <memory>
11 
12 // forward declaration
14 
21 {
22  public:
23 
25  TpcSpaceChargeMatrixInversion( const std::string& = "TPCSPACECHARGEMATRIXINVERSION" );
26 
28 
29 
32  { m_use_micromegas = value; }
33 
35 
39  void set_outputfile( const std::string& filename );
40 
42  bool add( const TpcSpaceChargeMatrixContainer& );
43 
45  bool add_from_file( const std::string& filename, const std::string& objectname = "TpcSpaceChargeMatrixContainer" );
46 
48  void calculate_distortions();
49 
51 
52  private:
53 
55  std::string m_outputfile = "DistortionCorrections.root";
56 
58  bool m_use_micromegas = true;
59 
61  std::unique_ptr<TpcSpaceChargeMatrixContainer> m_matrix_container;
62 
63 };
64 
65 #endif