Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: Refactor RootTrackStatesWriter #2648

Merged
merged 11 commits into from
Nov 13, 2023
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,8 @@ class RootTrackStatesWriter final : public WriterT<ConstTrackContainer> {
const ConstTrackContainer& tracks) override;

private:
enum ParameterType { ePredicted, eFiltered, eSmoothed, eUnbiased, eSize };

Config m_cfg; ///< The config class

ReadDataHandle<SimParticleContainer> m_inputParticles{this, "InputParticles"};
Expand Down Expand Up @@ -145,90 +147,90 @@ class RootTrackStatesWriter final : public WriterT<ConstTrackContainer> {
std::vector<float> m_pull_y_hit; ///< hit pull y
std::vector<int> m_dim_hit; ///< dimension of measurement

std::array<int, 4>
std::array<int, eSize>
m_nParams{}; ///< number of states which have
///< filtered/predicted/smoothed/unbiased parameters
andiwand marked this conversation as resolved.
Show resolved Hide resolved
std::array<std::vector<bool>, 4>
std::array<std::vector<bool>, eSize>
m_hasParams; ///< status of the filtered/predicted/smoothed/unbiased
///< parameters
std::array<std::vector<float>, 4>
std::array<std::vector<float>, eSize>
m_eLOC0; ///< predicted/filtered/smoothed/unbiased parameter eLOC0
std::array<std::vector<float>, 4>
std::array<std::vector<float>, eSize>
m_eLOC1; ///< predicted/filtered/smoothed/unbiased parameter eLOC1
std::array<std::vector<float>, 4>
std::array<std::vector<float>, eSize>
m_ePHI; ///< predicted/filtered/smoothed/unbiased parameter ePHI
std::array<std::vector<float>, 4>
std::array<std::vector<float>, eSize>
m_eTHETA; ///< predicted/filtered/smoothed/unbiased parameter eTHETA
std::array<std::vector<float>, 4>
std::array<std::vector<float>, eSize>
m_eQOP; ///< predicted/filtered/smoothed/unbiased parameter eQOP
std::array<std::vector<float>, 4>
std::array<std::vector<float>, eSize>
m_eT; ///< predicted/filtered/smoothed/unbiased parameter eT
std::array<std::vector<float>, 4>
std::array<std::vector<float>, eSize>
m_res_eLOC0; ///< predicted/filtered/smoothed/unbiased
///< parameter eLOC0 residual
std::array<std::vector<float>, 4>
std::array<std::vector<float>, eSize>
m_res_eLOC1; ///< predicted/filtered/smoothed/unbiased
///< parameter eLOC1 residual
std::array<std::vector<float>, 4>
std::array<std::vector<float>, eSize>
m_res_ePHI; ///< predicted/filtered/smoothed/unbiased
///< parameter ePHI residual
std::array<std::vector<float>, 4>
std::array<std::vector<float>, eSize>
m_res_eTHETA; ///< predicted/filtered/smoothed/unbiased parameter eTHETA
///< residual
std::array<std::vector<float>, 4>
std::array<std::vector<float>, eSize>
m_res_eQOP; ///< predicted/filtered/smoothed/unbiased
///< parameter eQOP residual
std::array<std::vector<float>, 4>
std::array<std::vector<float>, eSize>
m_res_eT; ///< predicted/filtered/smoothed/unbiased parameter eT residual
std::array<std::vector<float>, 4>
std::array<std::vector<float>, eSize>
m_err_eLOC0; ///< predicted/filtered/smoothed/unbiased
///< parameter eLOC0 error
std::array<std::vector<float>, 4>
std::array<std::vector<float>, eSize>
m_err_eLOC1; ///< predicted/filtered/smoothed/unbiased
///< parameter eLOC1 error
std::array<std::vector<float>, 4>
std::array<std::vector<float>, eSize>
m_err_ePHI; ///< predicted/filtered/smoothed/unbiased
///< parameter ePHI error
std::array<std::vector<float>, 4>
std::array<std::vector<float>, eSize>
m_err_eTHETA; ///< predicted/filtered/smoothed/unbiased
///< parameter eTHETA error
std::array<std::vector<float>, 4>
std::array<std::vector<float>, eSize>
m_err_eQOP; ///< predicted/filtered/smoothed/unbiased
///< parameter eQOP error
std::array<std::vector<float>, 4>
std::array<std::vector<float>, eSize>
m_err_eT; ///< predicted/filtered/smoothed/unbiased parameter eT error
std::array<std::vector<float>, 4>
std::array<std::vector<float>, eSize>
m_pull_eLOC0; ///< predicted/filtered/smoothed/unbiased
///< parameter eLOC0 pull
std::array<std::vector<float>, 4>
std::array<std::vector<float>, eSize>
m_pull_eLOC1; ///< predicted/filtered/smoothed/unbiased
///< parameter eLOC1 pull
std::array<std::vector<float>, 4>
std::array<std::vector<float>, eSize>
m_pull_ePHI; ///< predicted/filtered/smoothed/unbiased
///< parameter ePHI pull
std::array<std::vector<float>, 4>
std::array<std::vector<float>, eSize>
m_pull_eTHETA; ///< predicted/filtered/smoothed/unbiased
///< parameter eTHETA pull
std::array<std::vector<float>, 4>
std::array<std::vector<float>, eSize>
m_pull_eQOP; ///< predicted/filtered/smoothed/unbiased
///< parameter eQOP pull
std::array<std::vector<float>, 4>
std::array<std::vector<float>, eSize>
m_pull_eT; ///< predicted/filtered/smoothed/unbiased parameter eT pull
std::array<std::vector<float>, 4>
std::array<std::vector<float>, eSize>
m_x; ///< predicted/filtered/smoothed/unbiased parameter global x
std::array<std::vector<float>, 4>
std::array<std::vector<float>, eSize>
m_y; ///< predicted/filtered/smoothed/unbiased parameter global y
std::array<std::vector<float>, 4>
std::array<std::vector<float>, eSize>
m_z; ///< predicted/filtered/smoothed/unbiased parameter global z
std::array<std::vector<float>, 4>
std::array<std::vector<float>, eSize>
m_px; ///< predicted/filtered/smoothed/unbiased parameter px
std::array<std::vector<float>, 4>
std::array<std::vector<float>, eSize>
m_py; ///< predicted/filtered/smoothed/unbiased parameter py
std::array<std::vector<float>, 4>
std::array<std::vector<float>, eSize>
m_pz; ///< predicted/filtered/smoothed/unbiased parameter pz
std::array<std::vector<float>, 4>
std::array<std::vector<float>, eSize>
m_eta; ///< predicted/filtered/smoothed/unbiased parameter eta
std::array<std::vector<float>, 4>
std::array<std::vector<float>, eSize>
m_pT; ///< predicted/filtered/smoothed/unbiased parameter pT

std::vector<float> m_chi2; ///< chisq from filtering
Expand Down
Loading
Loading