Mike Kordosky <kordosky@mail.hep.utexas.edu> writes: > Hi, > > I am having a problem associated with TTree::Draw that I believe is > associated with some recent change to root/cint. I have the following > unnamed macro: > > { > > TCut pid("nhitstrips/nhitplanes>1.65 && ceradc[2]==0"); > TCut trig("triggerword>300"); > > > TFile f("/data/disk5/dsts/angle-1-22-03/UberDST-41008.root"); > TH1F* h1 = new TH1F("h1", "h1", 200, 0, 200); > > TCut tof1("toftdc[2]-toftdc[0]>580 && toftdc[2]-toftdc[0]<640"); > > > TCanvas* c2 = new TCanvas("c2", "c2", 600, 800); > c2->Divide(1,2); > c2->cd(1); > > f.cd(); > > TH2F* hps1 = new TH2F("hps1", "hps1", 60, -0.5, 59.5, 24, -0.5, 23.5); > > snarltree->Draw("hitlist[].strip:hitlist[].plane>>hps1", > "(hitlist[].padc+hitlist[].nadc)>0"&&pid&&trig&&tof1,"colz"); > > } > > Running this macro causes root to dump: > > *** Break *** segmentation violation > Generating stack trace... > 0x401b01a7 in TUnixSystem::StackTrace() + 0x393 from > /data/disk4/minoscode/root/lib/libCore.so > 0x401aeb1b in TUnixSystem::DispatchSignals(ESignals) + 0x85 from > /data/disk4/minoscode/root/lib/libCore.so > 0x401adb68 in <unknown> from /data/disk4/minoscode/root/lib/libCore.so > 0x401b1cae in <unknown> from /data/disk4/minoscode/root/lib/libCore.so > 0x40dc2f05 in <unknown> from /lib/i686/libpthread.so.0 > 0x42029188 in <unknown> from /data/disk4/minoscode/root/bin/root.exe > 0x40c78e72 in <unknown> from /data/disk4/minoscode/root/lib/libTree.so > 0x405dbaff in G__call_cppfunc + 0x2c4 from > /data/disk4/minoscode/root/lib/libCint.so > . > . Hi Mike, it resembles a problem I reported some time ago - http://root.cern.ch/root/roottalk/roottalk02/4702.html it turned out to be an untimely deletion of the temporary TCut object. Does it help if you rearrange the cut in the Draw method? For example c1="(hitlist..." and c1&&pid&&trig&&tof1 cheers Jiri
This archive was generated by hypermail 2b29 : Thu Jan 01 2004 - 17:50:12 MET