I'm trying to build a very simple tree
with my class A this way:
class A
{
public:
Int_t a;
Int_t b;
};
A *CC;
TROOT simple("simple","trees");
main()
{
Int_t split = 0;
Int_t bsize = 32000;
// Create a ROOT Tree
TTree *tree = new TTree("T","An example of ROOT tree");
tree->Branch("aa","A",&CC,bsize,split);
return 0;
}
and I'm getting the message
Error in <TTree::BranchObject>: Cannot find class:A
What am I doing wrong?
This archive was generated by hypermail 2b29 : Tue Jan 04 2000 - 00:43:43 MET