AnalysisTree
Loading...
Searching...
No Matches
ChainDrawHelper.hpp
1/* Copyright (C) 2019-2021 GSI, Universität Tübingen
2 SPDX-License-Identifier: GPL-3.0-only
3 Authors: Viktor Klochkov, Ilya Selyuzhenkov */
4#ifndef ANALYSISTREE_INFRA_CHAINDRAWHELPER_HPP_
5#define ANALYSISTREE_INFRA_CHAINDRAWHELPER_HPP_
6
7#include "Configuration.hpp"
8
9#include <string>
10#include <vector>
11
12namespace AnalysisTree {
13
15
16 public:
17 explicit ChainDrawHelper(Configuration* configuration) : configuration_(configuration) {}
18 void DrawTransform(std::string& expr);
19
20 protected:
21 Configuration* configuration_{nullptr};
22
23 static std::vector<std::pair<std::string, int>> FindAndRemoveFields(std::string& expr);
24 void DrawFieldTransform(std::string& expr);
25};
26
27}// namespace AnalysisTree
28
29#endif//ANALYSISTREE_INFRA_CHAINDRAWHELPER_HPP_
Definition ChainDrawHelper.hpp:14
A class to store configuration of the whole AnalysisTree object.
Definition Configuration.hpp:58
Cuts keep list of SimpleCuts. Logical AND is applied for all SimpleCut in the Cuts object.
Definition BranchConfig.cpp:10