Generate the dictionary for this class (vector<TLorentzVector>)

Hello everyone,

I am aware that, this question has already been answered. I am adding the vector in the branches, while producing nTuples in CMSSW framewrork (5_3_0) and root version Root 5.32.

I am getting the following error :


Fatal Root Error: @SUB=TTree::Branch
The class requested (vector) for the branch “gen_Jet_P4” refer to an stl collection and do not have a compiled CollectionProxy. Please generate the dictionary for this class (vector)


I have already tried to add following lines in my analysis.h file :
#include
#include “TLorentzVector.h”

#ifdef CINT
#pragma link C++ class std::vector< TLorentzVector >;
#pragma link C++ class std::vector< std::vector< TLorentzVector > >;
#endif

But still, it is giving me the same error. Please Let me know, if there is some other things which needs to be done>

Thanks in advance
Rajat

Hi Rajat,

if you are writing a cmssw module to skim out your ntuple, you need to follow cmssw conventions. You can have a look here for more info twiki.cern.ch/twiki/bin/view/CM … ewProducts or redirect your question to the appropriate CMS forum.

Danilo