Hi,
I am trying to run MakeClass off of a TTree. It gives me the following
snippets:
class NNAna {
public :
TTree *fChain; //!pointer to the analyzed TTree or TChain
Int_t fCurrent; //!current Tree number in a TChain
//Declaration of leaves types
Int_t Jet_B_njet;
Float_t Jet_B_chf[64]; //[njet]
Float_t Jet_B_e[64]; //[njet]
Float_t Jet_B_emf[64]; //[njet]
Float_t Jet_B_et[64]; //[njet]
Float_t Jet_B_eta[64]; //[njet]
Float_t Jet_B_etad[64]; //[njet]
Float_t Jet_B_grde[64]; //[njet]
Float_t Jet_B_jetprobrphi[64]; //[njet]
Int_t Jet_B_nch[64]; //[njet]
Int_t Jet_B_ngoodrphitracks[64]; //[njet]
Int_t Jet_B_ntracks[64]; //[njet]
Float_t Jet_B_phi[64]; //[njet]
Float_t Jet_B_px[64]; //[njet]
Float_t Jet_B_py[64]; //[njet]
Float_t Jet_B_pz[64]; //[njet]
Int_t Jet_B_trackIndices[64][200]; //[njet]
.
.
.
};
.
.
.
void NNAna::Init(TTree *tree)
{
// Set branch addresses
if (tree == 0) return;
fChain = tree;
fCurrent = -1;
fChain->SetMakeClass(1);
fChain->SetBranchAddress("Jet_B",&Jet_B_njet);
//------
// Shouldn't there be some stuff here to init the leaves
// to the variables in the class?????
/-------
Notify();
}
The MakeClass function sets the pointers to the branches, but not to the
leaves. Is this a bug, or am I using this wrong?
Thank you!
Sal Rappoccio
This archive was generated by hypermail 2b29 : Sat Jan 04 2003 - 23:51:10 MET