Hi Everyone,
I would like to generate a myClass.C macro from my tree by using a makeClass so I did this:
TFile* f = new TFile("run8TeV.0.txt.root");
TTree *redTree;
f->GetObject("redTree",redTree);
redTree->MakeClass("MyClass")
But I get all this error
Error in <TTreePlayer::MakeClass>: The branch named fCoordinates.fX (full path name: electron0_p4In.fCoordinates.fX) is hidden by another branch of the same name and its data will not be loaded.
Error in <TTreePlayer::MakeClass>: The branch named fCoordinates.fY (full path name: electron0_p4In.fCoordinates.fY) is hidden by another branch of the same name and its data will not be loaded.
Error in <TTreePlayer::MakeClass>: The branch named fCoordinates.fZ (full path name: electron0_p4In.fCoordinates.fZ) is hidden by another branch of the same name and its data will not be loaded.
Error in <TTreePlayer::MakeClass>: The branch named fCoordinates.fT (full path name: electron0_p4In.fCoordinates.fT) is hidden by another branch of the same name and its data will not be loaded.
Error in <TTreePlayer::MakeClass>: The branch named fCoordinates.fX (full path name: electron0_p4Out.fCoordinates.fX) is hidden by another branch of the same name and its data will not be loaded.
Error in <TTreePlayer::MakeClass>: The branch named fCoordinates.fY (full path name: electron0_p4Out.fCoordinates.fY) is hidden by another branch of the same name and its data will not be loaded.
Error in <TTreePlayer::MakeClass>: The branch named fCoordinates.fZ (full path name: electron0_p4Out.fCoordinates.fZ) is hidden by another branch of the same name and its data will not be loaded.
Error in <TTreePlayer::MakeClass>: The branch named fCoordinates.fT (full path name: electron0_p4Out.fCoordinates.fT) is hidden by another branch of the same name and its data will not be loaded.
Error in <TTreePlayer::MakeClass>: The branch named fCoordinates.fX (full path name: electron0_trk_p4.fCoordinates.fX) is hidden by another branch of the same name and its data will not be loaded.
Error in <TTreePlayer::MakeClass>: The branch named fCoordinates.fY (full path name: electron0_trk_p4.fCoordinates.fY) is hidden by another branch of the same name and its data will not be loaded.
Error in <TTreePlayer::MakeClass>: The branch named fCoordinates.fZ (full path name: electron0_trk_p4.fCoordinates.fZ) is hidden by another branch of the same name and its data will not be loaded.
Error in <TTreePlayer::MakeClass>: The branch named fCoordinates.fT (full path name: electron0_trk_p4.fCoordinates.fT) is hidden by another branch of the same name and its data will not be loaded.
Error in <TTreePlayer::MakeClass>: The branch named fCoordinates.fX (full path name: electron0_vrtx_p4.fCoordinates.fX) is hidden by another branch of the same name and its data will not be loaded.
Error in <TTreePlayer::MakeClass>: The branch named fCoordinates.fY (full path name: electron0_vrtx_p4.fCoordinates.fY) is hidden by another branch of the same name and its data will not be loaded.
Error in <TTreePlayer::MakeClass>: The branch named fCoordinates.fZ (full path name: electron0_vrtx_p4.fCoordinates.fZ) is hidden by another branch of the same name and its data will not be loaded.
Error in <TTreePlayer::MakeClass>: The branch named fCoordinates.fT (full path name: electron0_vrtx_p4.fCoordinates.fT) is hidden by another branch of the same name and its data will not be loaded.
Error in <TTreePlayer::MakeClass>: The branch named fCoordinates.fX (full path name: electron0_p4.fCoordinates.fX) is hidden by another branch of the same name and its data will not be loaded.
Error in <TTreePlayer::MakeClass>: The branch named fCoordinates.fY (full path name: electron0_p4.fCoordinates.fY) is hidden by another branch of the same name and its data will not be loaded.
Error in <TTreePlayer::MakeClass>: The branch named fCoordinates.fZ (full path name: electron0_p4.fCoordinates.fZ) is hidden by another branch of the same name and its data will not be loaded.
Error in <TTreePlayer::MakeClass>: The branch named fCoordinates.fT (full path name: electron0_p4.fCoordinates.fT) is hidden by another branch of the same name and its data will not be loaded.
Error in <TTreePlayer::MakeClass>: The branch named electron0_id2012_tight (full path name: electron0_id2012_tight) is hidden by another branch of the same name and its data will not be loaded.
Error in <TTreePlayer::MakeClass>: The branch named electron0_id2012_tight (full path name: electron0_id2012_tight) is hidden by another branch of the same name and its data will not be loaded.
Error in <TTreePlayer::MakeClass>: The branch named electron0_id2012_tight (full path name: electron0_id2012_tight) is hidden by another branch of the same name and its data will not be loaded.
Error in <TTreePlayer::MakeClass>: The branch named fCoordinates.fX (full path name: electron1_p4In.fCoordinates.fX) is hidden by another branch of the same name and its data will not be loaded.
Error in <TTreePlayer::MakeClass>: The branch named fCoordinates.fY (full path name: electron1_p4In.fCoordinates.fY) is hidden by another branch of the same name and its data will not be loaded.
Error in <TTreePlayer::MakeClass>: The branch named fCoordinates.fZ (full path name: electron1_p4In.fCoordinates.fZ) is hidden by another branch of the same name and its data will not be loaded.
Error in <TTreePlayer::MakeClass>: The branch named fCoordinates.fT (full path name: electron1_p4In.fCoordinates.fT) is hidden by another branch of the same name and its data will not be loaded.
Error in <TTreePlayer::MakeClass>: The branch named fCoordinates.fX (full path name: electron1_p4Out.fCoordinates.fX) is hidden by another branch of the same name and its data will not be loaded.
Error in <TTreePlayer::MakeClass>: The branch named fCoordinates.fY (full path name: electron1_p4Out.fCoordinates.fY) is hidden by another branch of the same name and its data will not be loaded.
Error in <TTreePlayer::MakeClass>: The branch named fCoordinates.fZ (full path name: electron1_p4Out.fCoordinates.fZ) is hidden by another branch of the same name and its data will not be loaded.
Error in <TTreePlayer::MakeClass>: The branch named fCoordinates.fT (full path name: electron1_p4Out.fCoordinates.fT) is hidden by another branch of the same name and its data will not be loaded.
Error in <TTreePlayer::MakeClass>: The branch named fCoordinates.fX (full path name: electron1_trk_p4.fCoordinates.fX) is hidden by another branch of the same name and its data will not be loaded.
Error in <TTreePlayer::MakeClass>: The branch named fCoordinates.fY (full path name: electron1_trk_p4.fCoordinates.fY) is hidden by another branch of the same name and its data will not be loaded.
Error in <TTreePlayer::MakeClass>: The branch named fCoordinates.fZ (full path name: electron1_trk_p4.fCoordinates.fZ) is hidden by another branch of the same name and its data will not be loaded.
Error in <TTreePlayer::MakeClass>: The branch named fCoordinates.fT (full path name: electron1_trk_p4.fCoordinates.fT) is hidden by another branch of the same name and its data will not be loaded.
Error in <TTreePlayer::MakeClass>: The branch named fCoordinates.fX (full path name: electron1_vrtx_p4.fCoordinates.fX) is hidden by another branch of the same name and its data will not be loaded.
Error in <TTreePlayer::MakeClass>: The branch named fCoordinates.fY (full path name: electron1_vrtx_p4.fCoordinates.fY) is hidden by another branch of the same name and its data will not be loaded.
Error in <TTreePlayer::MakeClass>: The branch named fCoordinates.fZ (full path name: electron1_vrtx_p4.fCoordinates.fZ) is hidden by another branch of the same name and its data will not be loaded.
Error in <TTreePlayer::MakeClass>: The branch named fCoordinates.fT (full path name: electron1_vrtx_p4.fCoordinates.fT) is hidden by another branch of the same name and its data will not be loaded.
Error in <TTreePlayer::MakeClass>: The branch named fCoordinates.fX (full path name: electron1_p4.fCoordinates.fX) is hidden by another branch of the same name and its data will not be loaded.
Error in <TTreePlayer::MakeClass>: The branch named fCoordinates.fY (full path name: electron1_p4.fCoordinates.fY) is hidden by another branch of the same name and its data will not be loaded.
Error in <TTreePlayer::MakeClass>: The branch named fCoordinates.fZ (full path name: electron1_p4.fCoordinates.fZ) is hidden by another branch of the same name and its data will not be loaded.
Error in <TTreePlayer::MakeClass>: The branch named fCoordinates.fT (full path name: electron1_p4.fCoordinates.fT) is hidden by another branch of the same name and its data will not be loaded.
Error in <TTreePlayer::MakeClass>: The branch named electron1_id2012_tight (full path name: electron1_id2012_tight) is hidden by another branch of the same name and its data will not be loaded.
Error in <TTreePlayer::MakeClass>: The branch named electron1_id2012_tight (full path name: electron1_id2012_tight) is hidden by another branch of the same name and its data will not be loaded.
Error in <TTreePlayer::MakeClass>: The branch named electron1_id2012_tight (full path name: electron1_id2012_tight) is hidden by another branch of the same name and its data will not be loaded.
Error in <TTreePlayer::MakeClass>: The branch named fCoordinates.fX (full path name: conversion0_refitPairMom_p4.fCoordinates.fX) is hidden by another branch of the same name and its data will not be loaded.
Error in <TTreePlayer::MakeClass>: The branch named fCoordinates.fY (full path name: conversion0_refitPairMom_p4.fCoordinates.fY) is hidden by another branch of the same name and its data will not be loaded.
Error in <TTreePlayer::MakeClass>: The branch named fCoordinates.fZ (full path name: conversion0_refitPairMom_p4.fCoordinates.fZ) is hidden by another branch of the same name and its data will not be loaded.
Error in <TTreePlayer::MakeClass>: The branch named fCoordinates.fT (full path name: conversion0_refitPairMom_p4.fCoordinates.fT) is hidden by another branch of the same name and its data will not be loaded.
Error in <TTreePlayer::MakeClass>: The branch named fCoordinates.fX (full path name: conversion0_vtxpos.fCoordinates.fX) is hidden by another branch of the same name and its data will not be loaded.
Error in <TTreePlayer::MakeClass>: The branch named fCoordinates.fY (full path name: conversion0_vtxpos.fCoordinates.fY) is hidden by another branch of the same name and its data will not be loaded.
Error in <TTreePlayer::MakeClass>: The branch named fCoordinates.fZ (full path name: conversion0_vtxpos.fCoordinates.fZ) is hidden by another branch of the same name and its data will not be loaded.
Error in <TTreePlayer::MakeClass>: The branch named fCoordinates.fT (full path name: conversion0_vtxpos.fCoordinates.fT) is hidden by another branch of the same name and its data will not be loaded.
Error in <TTreePlayer::MakeClass>: The branch named fCoordinates.fX (full path name: conversion1_refitPairMom_p4.fCoordinates.fX) is hidden by another branch of the same name and its data will not be loaded.
Error in <TTreePlayer::MakeClass>: The branch named fCoordinates.fY (full path name: conversion1_refitPairMom_p4.fCoordinates.fY) is hidden by another branch of the same name and its data will not be loaded.
Error in <TTreePlayer::MakeClass>: The branch named fCoordinates.fZ (full path name: conversion1_refitPairMom_p4.fCoordinates.fZ) is hidden by another branch of the same name and its data will not be loaded.
Error in <TTreePlayer::MakeClass>: The branch named fCoordinates.fT (full path name: conversion1_refitPairMom_p4.fCoordinates.fT) is hidden by another branch of the same name and its data will not be loaded.
Error in <TTreePlayer::MakeClass>: The branch named fCoordinates.fX (full path name: conversion1_vtxpos.fCoordinates.fX) is hidden by another branch of the same name and its data will not be loaded.
Error in <TTreePlayer::MakeClass>: The branch named fCoordinates.fY (full path name: conversion1_vtxpos.fCoordinates.fY) is hidden by another branch of the same name and its data will not be loaded.
Error in <TTreePlayer::MakeClass>: The branch named fCoordinates.fZ (full path name: conversion1_vtxpos.fCoordinates.fZ) is hidden by another branch of the same name and its data will not be loaded.
Error in <TTreePlayer::MakeClass>: The branch named fCoordinates.fT (full path name: conversion1_vtxpos.fCoordinates.fT) is hidden by another branch of the same name and its data will not be loaded.
Error in <TTreePlayer::MakeClass>: The branch named fCoordinates.fX (full path name: supercluster0_p4.fCoordinates.fX) is hidden by another branch of the same name and its data will not be loaded.
Error in <TTreePlayer::MakeClass>: The branch named fCoordinates.fY (full path name: supercluster0_p4.fCoordinates.fY) is hidden by another branch of the same name and its data will not be loaded.
Error in <TTreePlayer::MakeClass>: The branch named fCoordinates.fZ (full path name: supercluster0_p4.fCoordinates.fZ) is hidden by another branch of the same name and its data will not be loaded.
Error in <TTreePlayer::MakeClass>: The branch named fCoordinates.fT (full path name: supercluster0_p4.fCoordinates.fT) is hidden by another branch of the same name and its data will not be loaded.
Error in <TTreePlayer::MakeClass>: The branch named fCoordinates.fX (full path name: supercluster0_pos_p4.fCoordinates.fX) is hidden by another branch of the same name and its data will not be loaded.
Error in <TTreePlayer::MakeClass>: The branch named fCoordinates.fY (full path name: supercluster0_pos_p4.fCoordinates.fY) is hidden by another branch of the same name and its data will not be loaded.
Error in <TTreePlayer::MakeClass>: The branch named fCoordinates.fZ (full path name: supercluster0_pos_p4.fCoordinates.fZ) is hidden by another branch of the same name and its data will not be loaded.
Error in <TTreePlayer::MakeClass>: The branch named fCoordinates.fT (full path name: supercluster0_pos_p4.fCoordinates.fT) is hidden by another branch of the same name and its data will not be loaded.
Error in <TTreePlayer::MakeClass>: The branch named fCoordinates.fX (full path name: supercluster0_vtx_p4.fCoordinates.fX) is hidden by another branch of the same name and its data will not be loaded.
Error in <TTreePlayer::MakeClass>: The branch named fCoordinates.fY (full path name: supercluster0_vtx_p4.fCoordinates.fY) is hidden by another branch of the same name and its data will not be loaded.
Error in <TTreePlayer::MakeClass>: The branch named fCoordinates.fZ (full path name: supercluster0_vtx_p4.fCoordinates.fZ) is hidden by another branch of the same name and its data will not be loaded.
Error in <TTreePlayer::MakeClass>: The branch named fCoordinates.fT (full path name: supercluster0_vtx_p4.fCoordinates.fT) is hidden by another branch of the same name and its data will not be loaded.
Error in <TTreePlayer::MakeClass>: The branch named fCoordinates.fX (full path name: supercluster1_p4.fCoordinates.fX) is hidden by another branch of the same name and its data will not be loaded.
Error in <TTreePlayer::MakeClass>: The branch named fCoordinates.fY (full path name: supercluster1_p4.fCoordinates.fY) is hidden by another branch of the same name and its data will not be loaded.
Error in <TTreePlayer::MakeClass>: The branch named fCoordinates.fZ (full path name: supercluster1_p4.fCoordinates.fZ) is hidden by another branch of the same name and its data will not be loaded.
Error in <TTreePlayer::MakeClass>: The branch named fCoordinates.fT (full path name: supercluster1_p4.fCoordinates.fT) is hidden by another branch of the same name and its data will not be loaded.
Error in <TTreePlayer::MakeClass>: The branch named fCoordinates.fX (full path name: supercluster1_pos_p4.fCoordinates.fX) is hidden by another branch of the same name and its data will not be loaded.
Error in <TTreePlayer::MakeClass>: The branch named fCoordinates.fY (full path name: supercluster1_pos_p4.fCoordinates.fY) is hidden by another branch of the same name and its data will not be loaded.
Error in <TTreePlayer::MakeClass>: The branch named fCoordinates.fZ (full path name: supercluster1_pos_p4.fCoordinates.fZ) is hidden by another branch of the same name and its data will not be loaded.
Error in <TTreePlayer::MakeClass>: The branch named fCoordinates.fT (full path name: supercluster1_pos_p4.fCoordinates.fT) is hidden by another branch of the same name and its data will not be loaded.
Error in <TTreePlayer::MakeClass>: The branch named fCoordinates.fX (full path name: supercluster1_vtx_p4.fCoordinates.fX) is hidden by another branch of the same name and its data will not be loaded.
Error in <TTreePlayer::MakeClass>: The branch named fCoordinates.fY (full path name: supercluster1_vtx_p4.fCoordinates.fY) is hidden by another branch of the same name and its data will not be loaded.
Error in <TTreePlayer::MakeClass>: The branch named fCoordinates.fZ (full path name: supercluster1_vtx_p4.fCoordinates.fZ) is hidden by another branch of the same name and its data will not be loaded.
Error in <TTreePlayer::MakeClass>: The branch named fCoordinates.fT (full path name: supercluster1_vtx_p4.fCoordinates.fT) is hidden by another branch of the same name and its data will not be loaded.
Error in <TTreePlayer::MakeClass>: The branch named fCoordinates.fX (full path name: vertex_position.fCoordinates.fX) is hidden by another branch of the same name and its data will not be loaded.
Error in <TTreePlayer::MakeClass>: The branch named fCoordinates.fY (full path name: vertex_position.fCoordinates.fY) is hidden by another branch of the same name and its data will not be loaded.
Error in <TTreePlayer::MakeClass>: The branch named fCoordinates.fZ (full path name: vertex_position.fCoordinates.fZ) is hidden by another branch of the same name and its data will not be loaded.
Error in <TTreePlayer::MakeClass>: The branch named fCoordinates.fT (full path name: vertex_position.fCoordinates.fT) is hidden by another branch of the same name and its data will not be loaded.
Error in <TTreePlayer::MakeClass>: The branch named fCoordinates.fX (full path name: vertex_covMatrix.fCoordinates.fX) is hidden by another branch of the same name and its data will not be loaded.
Error in <TTreePlayer::MakeClass>: The branch named fCoordinates.fY (full path name: vertex_covMatrix.fCoordinates.fY) is hidden by another branch of the same name and its data will not be loaded.
Error in <TTreePlayer::MakeClass>: The branch named fCoordinates.fZ (full path name: vertex_covMatrix.fCoordinates.fZ) is hidden by another branch of the same name and its data will not be loaded.
Error in <TTreePlayer::MakeClass>: The branch named fCoordinates.fT (full path name: vertex_covMatrix.fCoordinates.fT) is hidden by another branch of the same name and its data will not be loaded.
So I will really appreciate if someone could explain why I get this error and to solve it. This is the link to access to the root file dropbox.com/s/j28vp30wqv063 … .root?dl=0