File indexing completed on 2024-04-06 12:28:24
0001 #include "TClass.h"
0002
0003 #include <string>
0004 #include <vector>
0005
0006
0007
0008 std::vector<std::string> classes = {
0009
0010 "mkfit::IterationLayerConfig",
0011 "mkfit::IterationParams",
0012
0013 "mkfit::IterationConfig",
0014 "mkfit::IterationsInfo"};
0015
0016
0017
0018
0019
0020
0021
0022
0023
0024
0025
0026
0027
0028
0029
0030
0031 void dump_vars() {
0032 gSystem->Load("libConfigDict.so");
0033
0034 for (auto &cls : classes) {
0035 printf("NLOHMANN_DEFINE_TYPE_NON_INTRUSIVE(%s,\n", cls.c_str());
0036
0037 TClass *tc = TClass::GetClass(cls.c_str());
0038 TList *ml = tc->GetListOfDataMembers();
0039 TIter it(ml);
0040 TDataMember *dm = (TDataMember *)it.Next();
0041 while (dm) {
0042
0043 printf(" /* %s */ %s", dm->GetTypeName(), dm->GetName());
0044 dm = (TDataMember *)it.Next();
0045 if (dm)
0046 printf(",");
0047 printf("\n");
0048 }
0049 printf(")\n\n");
0050 }
0051 }