Generating a dictionary for a vector of a custom structure

one way to do it is by calling GenerateDictionary as I do here: Generate dictionary for dinamically created custom STL collections - #2 by eguiraud .

Sorry for omitting this in the original question, but an error occurs once the std::vector<FatJetStruct> is added to the GenerateDictionary call.

import ROOT

#ROOT.gInterpreter.GenerateDictionary("FatJetStruct","FatJetStruct.h")#Runs fine
ROOT.gInterpreter.GenerateDictionary("FatJetStruct;std::vector<FatJetStruct>","FatJetStruct.h")#Returns an error

The error starts with

In file included from /users/mrogul/Work/py3TIMBER/Zbb_SF/test/AutoDict_FatJetStruct_2404355643_cxx_ACLiC_dict.cxx:32:
/cvmfs/cms.cern.ch/slc7_amd64_gcc10/lcg/root/6.24.07-911656c6946166b2b8b55eaa4b517565/include/TCollectionProxyInfo.h: In instantiation of 'static void* ROOT::Detail::TCollectionProxyInfo::Type<T>::construct(void*, size_t) [with T = std::vector<FatJetStruct>; size_t = long unsigned int]':
/cvmfs/cms.cern.ch/slc7_amd64_gcc10/lcg/root/6.24.07-911656c6946166b2b8b55eaa4b517565/include/TCollectionProxyInfo.h:582:51:   required from 'static ROOT::Detail::TCollectionProxyInfo* ROOT::Detail::TCollectionProxyInfo::Generate(const T&) [with T = ROOT::Detail::TCollectionProxyInfo::Pushback<std::vector<FatJetStruct> >]'
/users/mrogul/Work/py3TIMBER/Zbb_SF/test/AutoDict_FatJetStruct_2404355643_cxx_ACLiC_dict.cxx:124:128:   required from here
/cvmfs/cms.cern.ch/slc7_amd64_gcc10/lcg/root/6.24.07-911656c6946166b2b8b55eaa4b517565/include/TCollectionProxyInfo.h:339:13: error: no matching function for call to 'FatJetStruct::FatJetStruct()'
  339 |             ::new(m) Value_t();
      |             ^~~~~~~~~~~~~~~~~~

Otherwise I think adding the right #pragma link C++ class (inside a #ifdef __CLING__ guard) in FatJetStruct.h should do the job.

I’m not sure what would be the proper usage of #pragma link... here. If it’s something simple, could you point me to which line should added where in the header file?