This is the actual ROOT code.
Eventiterator *it = new testEventiterator();
Event *e = it->getNextEvent();
PHCompositeNode *mainnode = new PHCompositeNode("MAIN");
PHNode *rnode = new PHDataNode<Event>(e,"RAW");
mainnode->addNode(rnode);
AnalyzeRaw (mainnode, h1);
PHCompositeNode *tobemixed = new PHCompositeNode("MMAIN");
PHNode *e1node = new PHDataNode<Event>(e,"E1");
tobemixed->addNode(e1node);
e1node = new PHDataNode<Event>(e,"E2");
tobemixed->addNode(e1node);
AnalyzeRaw (tobemixed,h2);
Make the top node with RAW
Make a top node with E1, E2