EIC Software
Reference for
EIC
simulation and reconstruction software on GitHub
|
performs space charge distortion reconstruction using tracks More...
#include <fun4all_coresoftware/blob/master/offline/packages/tpccalib/TpcSpaceChargeMatrixInversion.h>
Public Member Functions | |
TpcSpaceChargeMatrixInversion (const std::string &="TPCSPACECHARGEMATRIXINVERSION") | |
constructor | |
modifiers | |
void | set_use_micromegas (bool value) |
set whether to use only tracks with micromegas or not | |
void | set_outputfile (const std::string &filename) |
output file | |
bool | add (const TpcSpaceChargeMatrixContainer &) |
add space charge correction matrix to current. Returns true on success | |
bool | add_from_file (const std::string &filename, const std::string &objectname="TpcSpaceChargeMatrixContainer") |
add space charge correction matrix, loaded from file, to current. Returns true on success | |
void | calculate_distortions () |
calculate distortions by inverting stored matrices, and save relevant histograms | |
Public Member Functions inherited from Fun4AllBase | |
virtual | ~Fun4AllBase () |
virtual const std::string | Name () const |
Returns the name of this module. | |
virtual void | Name (const std::string &name) |
Sets the name of this module. | |
virtual void | Print (const std::string &what="ALL") const |
virtual void | Verbosity (const int ival) |
Sets the verbosity of this module (0 by default=quiet). | |
virtual void | Verbosity (enu_Verbosity ival) |
Sets the verbosity of this module (0 by default=quiet). | |
virtual int | Verbosity () const |
Gets the verbosity of this module. | |
Private Attributes | |
std::string | m_outputfile = "DistortionCorrections.root" |
output file | |
bool | m_use_micromegas = true |
true if only tracks with micromegas must be used | |
std::unique_ptr < TpcSpaceChargeMatrixContainer > | m_matrix_container |
matrix container | |
Additional Inherited Members | |
Public Types inherited from Fun4AllBase | |
enum | enu_Verbosity { VERBOSITY_QUIET = 0, VERBOSITY_SOME = 1, VERBOSITY_MORE = 2, VERBOSITY_EVEN_MORE = 3, VERBOSITY_A_LOT = 4, VERBOSITY_MAX = INT_MAX - 10 } |
Protected Member Functions inherited from Fun4AllBase | |
Fun4AllBase (const std::string &name="NONAME") | |
performs space charge distortion reconstruction using tracks
Definition at line 20 of file TpcSpaceChargeMatrixInversion.h.
View newest version in sPHENIX GitHub at line 20 of file TpcSpaceChargeMatrixInversion.h
TpcSpaceChargeMatrixInversion::TpcSpaceChargeMatrixInversion | ( | const std::string & | name = "TPCSPACECHARGEMATRIXINVERSION" | ) |
constructor
Definition at line 38 of file TpcSpaceChargeMatrixInversion.cc.
View newest version in sPHENIX GitHub at line 38 of file TpcSpaceChargeMatrixInversion.cc
bool TpcSpaceChargeMatrixInversion::add | ( | const TpcSpaceChargeMatrixContainer & | source | ) |
add space charge correction matrix to current. Returns true on success
Definition at line 74 of file TpcSpaceChargeMatrixInversion.cc.
View newest version in sPHENIX GitHub at line 74 of file TpcSpaceChargeMatrixInversion.cc
References TpcSpaceChargeMatrixContainer::get_grid_dimensions(), m_matrix_container, and phibins.
Referenced by add_from_file().
bool TpcSpaceChargeMatrixInversion::add_from_file | ( | const std::string & | filename, |
const std::string & | objectname = "TpcSpaceChargeMatrixContainer" |
||
) |
add space charge correction matrix, loaded from file, to current. Returns true on success
Definition at line 47 of file TpcSpaceChargeMatrixInversion.cc.
View newest version in sPHENIX GitHub at line 47 of file TpcSpaceChargeMatrixInversion.cc
References add(), INPUTHEPMC::filename, run_skim::inputfile, and FROG::location().
void TpcSpaceChargeMatrixInversion::calculate_distortions | ( | ) |
calculate distortions by inverting stored matrices, and save relevant histograms
Definition at line 96 of file TpcSpaceChargeMatrixInversion.cc.
View newest version in sPHENIX GitHub at line 96 of file TpcSpaceChargeMatrixInversion.cc
References TpcSpaceChargeReconstructionHelper::copy_histogram(), Acts::Test::cov, TpcSpaceChargeReconstructionHelper::extrapolate_phi1(), TpcSpaceChargeReconstructionHelper::extrapolate_phi2(), TpcSpaceChargeReconstructionHelper::extrapolate_z(), Acts::UnitConstants::h, Acts::Test::hz, ir(), m_matrix_container, m_outputfile, m_use_micromegas, name, run_skim::outputfile, phibins, TpcSpaceChargeReconstructionHelper::split(), and Fun4AllBase::Verbosity().
void TpcSpaceChargeMatrixInversion::set_outputfile | ( | const std::string & | filename | ) |
output file
this is the file where space charge correction 3D histograms are stored they are suitable for being read by TpcClusterizer
Definition at line 43 of file TpcSpaceChargeMatrixInversion.cc.
View newest version in sPHENIX GitHub at line 43 of file TpcSpaceChargeMatrixInversion.cc
References INPUTHEPMC::filename, and m_outputfile.
|
inline |
set whether to use only tracks with micromegas or not
Definition at line 31 of file TpcSpaceChargeMatrixInversion.h.
View newest version in sPHENIX GitHub at line 31 of file TpcSpaceChargeMatrixInversion.h
References m_use_micromegas, and value.
|
private |
matrix container
Definition at line 61 of file TpcSpaceChargeMatrixInversion.h.
View newest version in sPHENIX GitHub at line 61 of file TpcSpaceChargeMatrixInversion.h
Referenced by add(), and calculate_distortions().
|
private |
output file
Definition at line 55 of file TpcSpaceChargeMatrixInversion.h.
View newest version in sPHENIX GitHub at line 55 of file TpcSpaceChargeMatrixInversion.h
Referenced by calculate_distortions(), and set_outputfile().
|
private |
true if only tracks with micromegas must be used
Definition at line 58 of file TpcSpaceChargeMatrixInversion.h.
View newest version in sPHENIX GitHub at line 58 of file TpcSpaceChargeMatrixInversion.h
Referenced by calculate_distortions(), and set_use_micromegas().