Also by writing the pragma
for enum class
as #pragma link C++ enum Vari;
there are crashes.
What is it possible to tell from this backtrace:
0x00007fa56d474702 in TUnixSystem::StackTrace() () from /cvmfs/cms.cern.ch/slc7_amd64_gcc630/cms/cmssw/CMSSW_9_4_11/external/slc7_amd64_gcc630/bin/../../../../../../../slc7_amd64_gcc630/lcg/root/6.10.08-fmblme2/lib/libCore.so
#4 0x00007fa56d476bac in TUnixSystem::DispatchSignals(ESignals) () from /cvmfs/cms.cern.ch/slc7_amd64_gcc630/cms/cmssw/CMSSW_9_4_11/external/slc7_amd64_gcc630/bin/../../../../../../../slc7_amd64_gcc630/lcg/root/6.10.08-fmblme2/lib/libCore.so
#5 <signal handler called>
#6 0x00007fa56d048566 in int TStreamerInfoActions::ReadBasicType<unsigned int>(TBuffer&, void*, TStreamerInfoActions::TConfiguration const*) () from /cvmfs/cms.cern.ch/slc7_amd64_gcc630/cms/cmssw/CMSSW_9_4_11/external/slc7_amd64_gcc630/bin/../../../../../../../slc7_amd64_gcc630/lcg/root/6.10.08-fmblme2/lib/libRIO.so
#7 0x00007fa56cf69a85 in TBufferFile::ApplySequence(TStreamerInfoActions::TActionSequence const&, void*) () from /cvmfs/cms.cern.ch/slc7_amd64_gcc630/cms/cmssw/CMSSW_9_4_11/external/slc7_amd64_gcc630/bin/../../../../../../../slc7_amd64_gcc630/lcg/root/6.10.08-fmblme2/lib/libRIO.so
#8 0x00007fa56c858e1d in TBranchElement::ReadLeavesMember(TBuffer&) () from /cvmfs/cms.cern.ch/slc7_amd64_gcc630/cms/cmssw/CMSSW_9_4_11/external/slc7_amd64_gcc630/bin/../../../../../../../slc7_amd64_gcc630/lcg/root/6.10.08-fmblme2/lib/libTree.so
#9 0x00007fa56c84c07a in TBranch::GetEntry(long long, int) () from /cvmfs/cms.cern.ch/slc7_amd64_gcc630/cms/cmssw/CMSSW_9_4_11/external/slc7_amd64_gcc630/bin/../../../../../../../slc7_amd64_gcc630/lcg/root/6.10.08-fmblme2/lib/libTree.so
#10 0x00007fa56c864011 in TBranchElement::GetEntry(long long, int) () from /cvmfs/cms.cern.ch/slc7_amd64_gcc630/cms/cmssw/CMSSW_9_4_11/external/slc7_amd64_gcc630/bin/../../../../../../../slc7_amd64_gcc630/lcg/root/6.10.08-fmblme2/lib/libTree.so
#11 0x00007fa56c863fca in TBranchElement::GetEntry(long long, int) () from /cvmfs/cms.cern.ch/slc7_amd64_gcc630/cms/cmssw/CMSSW_9_4_11/external/slc7_amd64_gcc630/bin/../../../../../../../slc7_amd64_gcc630/lcg/root/6.10.08-fmblme2/lib/libTree.so
#12 0x00007fa56c863fca in TBranchElement::GetEntry(long long, int) () from /cvmfs/cms.cern.ch/slc7_amd64_gcc630/cms/cmssw/CMSSW_9_4_11/external/slc7_amd64_gcc630/bin/../../../../../../../slc7_amd64_gcc630/lcg/root/6.10.08-fmblme2/lib/libTree.so
#13 0x00007fa56c8a6cc1 in TTree::GetEntry(long long, int) () from /cvmfs/cms.cern.ch/slc7_amd64_gcc630/cms/cmssw/CMSSW_9_4_11/external/slc7_amd64_gcc630/bin/../../../../../../../slc7_amd64_gcc630/lcg/root/6.10.08-fmblme2/lib/libTree.so
and from this backtrace:
#6 0x00007f36571a0656 in std::_Rb_tree<Weights, std::pair<Weights const, WeightRecord>, std::_Select1st<std::pair<Weights const, WeightRecord> >, std::less<Weights>, std::allocator<std::pair<Weights const, WeightRecord> > >::_M_begin (this=0xf) at /cvmfs/cms.cern.ch/slc7_amd64_gcc630/external/gcc/6.3.0/include/c++/6.3.0/bits/stl_tree.h:666
#7 0x00007f36571a0674 in std::_Rb_tree<Weights, std::pair<Weights const, WeightRecord>, std::_Select1st<std::pair<Weights const, WeightRecord> >, std::less<Weights>, std::allocator<std::pair<Weights const, WeightRecord> > >::clear (this=0xf) at /cvmfs/cms.cern.ch/slc7_amd64_gcc630/external/gcc/6.3.0/include/c++/6.3.0/bits/stl_tree.h:1087
#8 0x00007f365719f4e0 in std::map<Weights, WeightRecord, std::less<Weights>, std::allocator<std::pair<Weights const, WeightRecord> > >::clear (this=0xf) at /cvmfs/cms.cern.ch/slc7_amd64_gcc630/external/gcc/6.3.0/include/c++/6.3.0/bits/stl_map.h:1044
#9 0x00007f36571bf1be in ROOT::Detail::TCollectionProxyInfo::Type<std::map<Weights, WeightRecord, std::less<Weights>, std::allocator<std::pair<Weights const, WeightRecord> > > >::clear (env=0x50dca30) at /cvmfs/cms.cern.ch/slc7_amd64_gcc630/cms/cmssw/CMSSW_9_4_11/external/slc7_amd64_gcc630/bin/../../../../../../../slc7_amd64_gcc630/lcg/root/6.10.08-fmblme2/include/TCollectionProxyInfo.h:306
#10 0x00007f36583eed39 in TGenCollectionStreamer::ReadBufferGeneric(TBuffer&, void*, TClass const*) () from /cvmfs/cms.cern.ch/slc7_amd64_gcc630/cms/cmssw/CMSSW_9_4_11/external/slc7_amd64_gcc630/bin/../../../../../../../slc7_amd64_gcc630/lcg/root/6.10.08-fmblme2/lib/libRIO.so
#11 0x00007f365838b1fa in TBufferFile::ReadFastArray(void*, TClass const*, int, TMemberStreamer*, TClass const*) () from /cvmfs/cms.cern.ch/slc7_amd64_gcc630/cms/cmssw/CMSSW_9_4_11/external/slc7_amd64_gcc630/bin/../../../../../../../slc7_amd64_gcc630/lcg/root/6.10.08-fmblme2/lib/libRIO.so
#12 0x00007f3658480544 in int TStreamerInfoActions::ReadSTL<&TStreamerInfoActions::ReadSTLMemberWiseSameClass, &TStreamerInfoActions::ReadSTLObjectWiseFastArray>(TBuffer&, void*, TStreamerInfoActions::TConfiguration const*) () from /cvmfs/cms.cern.ch/slc7_amd64_gcc630/cms/cmssw/CMSSW_9_4_11/external/slc7_amd64_gcc630/bin/../../../../../../../slc7_amd64_gcc630/lcg/root/6.10.08-fmblme2/lib/libRIO.so
#13 0x00007f365838aa85 in TBufferFile::ApplySequence(TStreamerInfoActions::TActionSequence const&, void*) () from /cvmfs/cms.cern.ch/slc7_amd64_gcc630/cms/cmssw/CMSSW_9_4_11/external/slc7_amd64_gcc630/bin/../../../../../../../slc7_amd64_gcc630/lcg/root/6.10.08-fmblme2/lib/libRIO.so
#14 0x00007f3657c79e1d in TBranchElement::ReadLeavesMember(TBuffer&) () from /cvmfs/cms.cern.ch/slc7_amd64_gcc630/cms/cmssw/CMSSW_9_4_11/external/slc7_amd64_gcc630/bin/../../../../../../../slc7_amd64_gcc630/lcg/root/6.10.08-fmblme2/lib/libTree.so
#15 0x00007f3657c6d07a in TBranch::GetEntry(long long, int) () from /cvmfs/cms.cern.ch/slc7_amd64_gcc630/cms/cmssw/CMSSW_9_4_11/external/slc7_amd64_gcc630/bin/../../../../../../../slc7_amd64_gcc630/lcg/root/6.10.08-fmblme2/lib/libTree.so
#16 0x00007f3657c85011 in TBranchElement::GetEntry(long long, int) () from /cvmfs/cms.cern.ch/slc7_amd64_gcc630/cms/cmssw/CMSSW_9_4_11/external/slc7_amd64_gcc630/bin/../../../../../../../slc7_amd64_gcc630/lcg/root/6.10.08-fmblme2/lib/libTree.so
#17 0x00007f3657c84fca in TBranchElement::GetEntry(long long, int) () from /cvmfs/cms.cern.ch/slc7_amd64_gcc630/cms/cmssw/CMSSW_9_4_11/external/slc7_amd64_gcc630/bin/../../../../../../../slc7_amd64_gcc630/lcg/root/6.10.08-fmblme2/lib/libTree.so
#18 0x00007f3657cc7cc1 in TTree::GetEntry(long long, int) () from /cvmfs/cms.cern.ch/slc7_amd64_gcc630/cms/cmssw/CMSSW_9_4_11/external/slc7_amd64_gcc630/bin/../../../../../../../slc7_amd64_gcc630/lcg/root/6.10.08-fmblme2/lib/libTree.so
Can you please tell me what is the correct and sure way to provide a pragma
for an enum class
so that it can be a key in a map and can be written to a TTree?