Belle II Software development
MakeROOTCompatible.h
1/**************************************************************************
2 * basf2 (Belle II Analysis Software Framework) *
3 * Author: The Belle II Collaboration *
4 * *
5 * See git log for contributors and copyright holders. *
6 * This file is licensed under LGPL-3.0, see LICENSE.md. *
7 **************************************************************************/
8
9#pragma once
10
11#include <string>
12#include <map>
13
14namespace Belle2 {
25
26 public:
27
31 static std::string makeROOTCompatible(std::string str);
32
36 static std::string invertMakeROOTCompatible(std::string str);
37
41 static std::map<std::string, std::string> getSubstitutionMap();
42
43 };
44
46}
Helper class for converting strings into a ROOT-friendly format (e.g.: removing special characters in...
static std::map< std::string, std::string > getSubstitutionMap()
Substituation map for makeROOTCompatible.
static std::string makeROOTCompatible(std::string str)
Remove special characters that ROOT dislikes in branch names, e.g.
static std::string invertMakeROOTCompatible(std::string str)
Invert makeROOTCompatible operation.
Abstract base class for different kinds of events.