?: TTree->Draw() with a cut on value in another TClonesArray

From: Dirk Meier (Dirk.Meier@cern.ch)
Date: Sun Mar 29 1998 - 23:42:17 MEST


Hi,

I draw values from a TTree in a histogramm like 

aTree->Draw("fData->Signal","fData->fPlaneNumber==1");

where fData is a pointer to a TClonesArray in events in the TTree.
So far so good.

My event has another TClonesArray with a pointer fTracks to it.
I try to draw the same histogram under a certain condition
of values in the second TClonesArray, like

aTree->Draw("fData->Signal","fData->fPlaneNumber==1 &&
	fTracks->fChiSquare<30.");

The second cut has no effect. 
Also I tried something like

aTree->Draw("fData->Signal:fTracks->fChiSquare","fData->fPlaneNumber==1");

which gives a histogram which make no sense..

I can draw these histograms, of course if I read the events
in a loop and fill a histogramm according to the cuts.
But I would like to do it in one commandline.


Is such a construction impossible?


Dirk Meier



This archive was generated by hypermail 2b29 : Tue Jan 04 2000 - 00:34:31 MET