CbmRichRingsConverter.h 1.41 KiB
/* Copyright (C) 2021 Physikalisches Institut, Eberhard Karls Universitaet Tuebingen, Tuebingen
SPDX-License-Identifier: GPL-3.0-only
Authors: Viktor Klochkov [committer] */
#ifndef ANALYSIS_TREE_RICHRINGSCONVERTER_H_
#define ANALYSIS_TREE_RICHRINGSCONVERTER_H_
#include "CbmConverterTask.h"
#include "AnalysisTree/Detector.hpp"
class TClonesArray;
namespace AnalysisTree
{
class Matching;
}
class CbmRichRingsConverter final : public CbmConverterTask {
public:
explicit CbmRichRingsConverter(std::string out_branch_name, std::string match_to = "")
: CbmConverterTask(std::move(out_branch_name), std::move(match_to)) {};
~CbmRichRingsConverter() final;
void Init() final;
void ProcessData(CbmEvent* event) final;
void Finish() final {};
private:
TClonesArray* cbm_global_tracks_ {nullptr};
TClonesArray* cbm_rich_rings_ {nullptr};
AnalysisTree::HitDetector* rich_rings_ {nullptr};
AnalysisTree::Matching* vtx_tracks_2_rich_ {nullptr};
int i_r_ {AnalysisTree::UndefValueInt};
int i_n_hits_ {AnalysisTree::UndefValueInt};
int i_axis_ {AnalysisTree::UndefValueInt};
int i_center_ {AnalysisTree::UndefValueInt};
int i_chi2_ {AnalysisTree::UndefValueInt};
int i_radial_angle_ {AnalysisTree::UndefValueInt};
int i_radial_pos_ {AnalysisTree::UndefValueInt};
int i_phi_ellipse_ {AnalysisTree::UndefValueInt};
ClassDef(CbmRichRingsConverter, 1)
};
#endif //ANALYSIS_TREE_RICHRINGSCONVERTER_H_