You can use the tree aliases to do some of this:tree->SetAlias("getChannelName","iov.resultHeader.sensorResidual.getChannelName()");
tree->SetAlias("getLensResid","iov.resultHeader.sensorResidual.getLensResid()");
tree->SetAlias("getMeasRawNPoints_1","iov.resultHeader.sensorResidual.getMeasRawNPoints(1)");
tree->SetAlias("type","iov.resultHeader.sensorResidual.type");
...
tree->Scan("getChannelName:getLensResid","type==1 && getMeasRawNPoints_1!=0 && getLensResid<-0.6", "colsize=25")
Cheers,
Philippe.
PS. Note that the alias are simple string replacements