I sent this email twice days ago, but I don't know why, it doesn't get into the mailling list... maybe it is because the attachments. Lets try to solve this without them. ------------------------------------------------------------------------------------- Hi Rooters I've got a strange problem. I have a simple tree and need to plot one variable with some cuts. I used to do root> .x cuts.C root>higgs->Draw("higgsmass",mc) So far, it goes fine, but if I try to plot either the same plot (with exactly the same command) or a new one, I got a segmentation violation. The crash doen't occurs if I don't use cuts. I could not send the tree (it is a small file), but I included a print of it. The file cuts.C just define what is MC (signal+background), signal and data. Thanks for any help. Luiz The file "cuts.C" is below: { TCut signal = "strstr(channel,\"higs\")*scaling"; TCut data = "strstr(channel,\"data\")"; TCut backg = !data*"(!strstr(channel,\"higs\"))*scaling"; TCut mc = "(!strstr(channel,\"data\"))*scaling"; } root [1] higgs->Print() ****************************************************************************** *Tree :higgs : Masses from Higgs3fit * *Entries : 6451 : Total = 499021 bytes File Size = 67736 * * : : Tree compression factor = 1.00 * ****************************************************************************** *Br 0 :irun : irun/I * *Entries : 6451 : Total Size= 38196 bytes File Size = 0 * *Baskets : 0 : Basket Size= 32000 bytes Compression= 1.00 * *............................................................................* *Br 1 :ievt : ievt/I * *Entries : 6451 : Total Size= 38196 bytes File Size = 0 * *Baskets : 0 : Basket Size= 32000 bytes Compression= 1.00 * *............................................................................* *Br 2 :cms : cms/I * *Entries : 6451 : Total Size= 38190 bytes File Size = 0 * *Baskets : 0 : Basket Size= 32000 bytes Compression= 1.00 * *............................................................................* *Br 3 :channel : channel/C * *Entries : 6451 : Total Size= 134761 bytes File Size = 0 * *Baskets : 2 : Basket Size= 32000 bytes Compression= 1.00 * *............................................................................* *Br 4 :chrec : chrec/C * *Entries : 6451 : Total Size= 134741 bytes File Size = 0 * *Baskets : 2 : Basket Size= 32000 bytes Compression= 1.00 * *............................................................................* *Br 5 :higgsmass : higgsmass/F * *Entries : 6451 : Total Size= 38226 bytes File Size = 0 * *Baskets : 0 : Basket Size= 32000 bytes Compression= 1.00 * *............................................................................* *Br 6 :eemass : eemass/F * *Entries : 6451 : Total Size= 38208 bytes File Size = 0 * *Baskets : 0 : Basket Size= 32000 bytes Compression= 1.00 * *............................................................................* *Br 7 :scaling : scaling/F * *Entries : 6451 : Total Size= 38214 bytes File Size = 0 * *Baskets : 0 : Basket Size= 32000 bytes Compression= 1.00 * *............................................................................*
This archive was generated by hypermail 2b29 : Sat Jan 04 2003 - 23:51:23 MET