89 TGo4Log::Debug(
"##### TGo4CompositeEvent::activateBranch called from obj:%s",this->GetName());
91 TTree *tree = branch->GetTree();
92 TObjArray *br = tree->GetListOfBranches();
102 TGo4Log::Debug(
"-I-TGo4CompositeEvent::activateBranch from obj:%s bname:%s Elements:%d index:%d",
103 GetName(), branch->GetName(),
fNElements, init);
105 while (i < init + all_branches) {
107 TBranch *b = (TBranch *) br->At(i);
108 Bool_t readentry = kFALSE;
111 TString sub = b->GetName();
112 sub.Remove(sub.Length()-1);
116 TGo4Log::Debug(
"-I TGo4CompositeEvent::activateBranch use subbranch %s", b->GetName());
120 TClass *cl = gROOT->GetClass(b->GetClassName());
122 TGo4Log::Debug(
"-I class %s cannot be reconstructed", b->GetClassName());
128 par->SetName(sub.Data());
130 TGo4Log::Debug(
"-I Created new instance of class %s, name:%s", cl->GetName(), par->GetName());
133 TGo4Log::Error(
"-I class %s instance cannot be created", b->GetClassName());
145 TGo4Log::Debug(
"-I activate from obj:%s elems:%d index:%d adding:%s",
146 this->GetName(), init+
fNElements, i, par->GetName());
149 if (readentry) b->GetEntry(0);
152 TGo4Log::Debug(
"Add branch %s event %s offset %d", b->GetName(), par->GetName(), offset);
156 tree->SetBranchAddress(b->GetName(), par_ptr);
160 all_branches+=offset;
162 TGo4Log::Debug(
"-I from obj:%s activate indexing after offset:%d index:%d max:%d",
163 this->GetName(), offset, i, init+all_branches);
170 TGo4Log::Debug(
"-I activate return value from obj:%s offset:%i", GetName(), all_branches);
198 TGo4Log::Error(
"<TGo4CompositeEvent::addEventElement> object:%s already in structure => not added !",
199 aElement->GetName());
203 if ( aElement->
getId() < 0 ) {
204 TGo4Log::Error(
"<TGo4CompositeEvent::addEventElement> object:%s with invalid Id:%d => not added !",
205 aElement->GetName(), aElement->
getId());
210 TGo4Log::Error(
"<TGo4CompositeEvent::addEventElement> object:%s with Id:%d already used => not added !",
211 aElement->GetName(), aElement->
getId());
218 TGo4Log::Debug(
"-I adding element in :%s :%p of id:%i",GetName(),aElement, aElement->
getId());