Copy std::vector from one TTree to another

My code for this is entirely in PyROOT, so I don’t know what part I am supposed to compile. I have seen other posts where people talk about a Loader.C file with some preprocessor directives, for using vector<vector> for example. Is such a file necessary for std::copy or vector::assign? I’m still not sure what I need to write in that file…my attempts at guessing are not working.

Example of a post with a Loader.C file:

Jean-François