[ROOT] Unable to apply any cut on a TChain...

From: Laurent Le Guillou (leguil@in2p3.fr)
Date: Thu Feb 27 2003 - 14:56:02 MET


	Hi Rooters,

	I am using Root 3.05/01 (root_v3.05.01.Linux.RH7.3.gcc296)
	on a Redhat 7.2 gcc 2.96.

	I am trying since 2 weeks to apply cuts on a TChain
	of TTrees. TTrees are simple ones with only simple
	variables (int, float, double). I am able to Draw or
	Scan the variables of the TChain, but, when I try
	to apply any cut, even the simplest one, a segmentation
	fault occured. Previously I have tried to use a Selector 
	with MakeSelector and a segfault occured too.

	For example :

	the following commands work :

	chain->Scan("Target:Field:CCD:Tile:Number", "");
	chain->Draw("Number", "");

	And this one produces a segfault :

	chain->Scan("Target:Field:CCD:Tile:Number", "Number>100");

************************************************************************
*    Row   *    Target *     Field *       CCD *      Tile *    Number *
************************************************************************

 *** Break *** segmentation violation
 Generating stack trace...
 0x401c07eb in TUnixSystem::StackTrace(void) + 0x25b from
/afs/in2p3.fr/home/l/leguil/usr/lib/root/lib/libCore.so
 0x401bf43e in TUnixSystem::DispatchSignals(ESignals) + 0xb2 from
/afs/in2p3.fr/home/l/leguil/usr/lib/root/lib/libCore.so
 0x401be5e7 in <unknown> from
/afs/in2p3.fr/home/l/leguil/usr/lib/root/lib/libCore.so
 0x401c20b5 in <unknown> from
/afs/in2p3.fr/home/l/leguil/usr/lib/root/lib/libCore.so
 0x40cd0a65 in <unknown> from /lib/i686/libpthread.so.0
 0x40d71958 in <unknown> from /lib/i686/libc.so.6
 0x414ad873 in TTreePlayer::Scan(char const *, char const *, char const *,
int, int) + 0xb47 from
/afs/in2p3.fr/home/l/leguil/usr/lib/root/lib/libTreePlayer.so
 0x40b7f98c in TTree::Scan(char const *, char const *, char const *, int,
int) + 0x50 from /afs/in2p3.fr/home/l/leguil/usr/lib/root/lib/libTree.so
 0x40b98401 in <unknown> from
/afs/in2p3.fr/home/l/leguil/usr/lib/root/lib/libTree.so
 0x405c8831 in G__call_cppfunc + 0x281 from
/afs/in2p3.fr/home/l/leguil/usr/lib/root/lib/libCint.so
 0x405b7fc5 in G__interpret_func + 0x8ad from
/afs/in2p3.fr/home/l/leguil/usr/lib/root/lib/libCint.so
 0x4059ded1 in G__getfunction + 0x1445 from
/afs/in2p3.fr/home/l/leguil/usr/lib/root/lib/libCint.so
 0x4062b21b in G__getstructmem + 0x7c3 from
/afs/in2p3.fr/home/l/leguil/usr/lib/root/lib/libCint.so
 0x40624026 in G__getvariable + 0x636 from
/afs/in2p3.fr/home/l/leguil/usr/lib/root/lib/libCint.so
 0x40595f99 in G__getitem + 0x4dd from
/afs/in2p3.fr/home/l/leguil/usr/lib/root/lib/libCint.so
 0x40594753 in G__getexpr + 0x8c3f from
/afs/in2p3.fr/home/l/leguil/usr/lib/root/lib/libCint.so
 0x405df723 in G__exec_function + 0x123 from
/afs/in2p3.fr/home/l/leguil/usr/lib/root/lib/libCint.so
 0x405e6b0c in G__exec_statement + 0x2e74 from
/afs/in2p3.fr/home/l/leguil/usr/lib/root/lib/libCint.so
 0x405b982c in G__interpret_func + 0x2114 from
/afs/in2p3.fr/home/l/leguil/usr/lib/root/lib/libCint.so
 0x4059e660 in G__getfunction + 0x1bd4 from
/afs/in2p3.fr/home/l/leguil/usr/lib/root/lib/libCint.so
 0x40595fc5 in G__getitem + 0x509 from
/afs/in2p3.fr/home/l/leguil/usr/lib/root/lib/libCint.so
 0x40594753 in G__getexpr + 0x8c3f from
/afs/in2p3.fr/home/l/leguil/usr/lib/root/lib/libCint.so
 0x405df723 in G__exec_function + 0x123 from
/afs/in2p3.fr/home/l/leguil/usr/lib/root/lib/libCint.so
 0x405e6b0c in G__exec_statement + 0x2e74 from
/afs/in2p3.fr/home/l/leguil/usr/lib/root/lib/libCint.so
 0x4057c470 in G__exec_tempfile + 0x2a0 from
/afs/in2p3.fr/home/l/leguil/usr/lib/root/lib/libCint.so
 0x405eeee9 in G__process_cmd + 0x4e85 from
/afs/in2p3.fr/home/l/leguil/usr/lib/root/lib/libCint.so
 0x4017e8ea in TCint::ProcessLine(char const *, TInterpreter::EErrorCode
*) + 0x9a from /afs/in2p3.fr/home/l/leguil/usr/lib/root/lib/libCore.so
 0x40105bff in TApplication::ProcessLine(char const *, bool, int *) +
0x56b from /afs/in2p3.fr/home/l/leguil/usr/lib/root/lib/libCore.so
 0x40ca221b in TRint::HandleTermInput(void) + 0x127 from
/afs/in2p3.fr/home/l/leguil/usr/lib/root/lib/libRint.so
 0x40ca1540 in TTermInputHandler::Notify(void) + 0x28 from
/afs/in2p3.fr/home/l/leguil/usr/lib/root/lib/libRint.so
 0x40ca287b in TTermInputHandler::ReadNotify(void) + 0x13 from
/afs/in2p3.fr/home/l/leguil/usr/lib/root/lib/libRint.so
 0x401bf833 in TUnixSystem::CheckDescriptors(void) + 0x113 from
/afs/in2p3.fr/home/l/leguil/usr/lib/root/lib/libCore.so
 0x401bef46 in TUnixSystem::DispatchOneEvent(bool) + 0x112 from
/afs/in2p3.fr/home/l/leguil/usr/lib/root/lib/libCore.so
 0x401514f5 in TSystem::InnerLoop(void) + 0x1d from
/afs/in2p3.fr/home/l/leguil/usr/lib/root/lib/libCore.so
 0x4015148a in TSystem::Run(void) + 0x7e from
/afs/in2p3.fr/home/l/leguil/usr/lib/root/lib/libCore.so
 0x4010678d in TApplication::Run(bool) + 0x31 from
/afs/in2p3.fr/home/l/leguil/usr/lib/root/lib/libCore.so
 0x40ca1d56 in TRint::Run(bool) + 0x2ba from
/afs/in2p3.fr/home/l/leguil/usr/lib/root/lib/libRint.so
 0x08048792 in main + 0x52 from
/afs/in2p3.fr/home/l/leguil/usr/lib/root/bin/root.exe
 0x40d5f657 in __libc_start_main at
/usr/src/build/158656-i686/BUILD/glibc-2.2.4/csu/../sysdeps/generic/libc-start.c:129
from /lib/i686/libc.so.6
 0x08048661 in __register_frame_info + 0x35 from
/afs/in2p3.fr/home/l/leguil/usr/lib/root/bin/root.exe
Root > Function AnalysisClouds() busy flag cleared


	What did I wrong ?
	Is it a bug ?
	
	When I use the TTreeViewer to draw a variable with a cut,
	it works (sometimes)...


	Cordialement,


	Laurent


  -------------------------------------------------------------------
    Laurent LE GUILLOU			            leguil@in2p3.fr
    ATER Paris 6 / LPNHE 	   Collaboration EROS / Projet SNLS
    LPNHE - Jussieu - Tour 33 rdc - Bureau 422 -  +33 1.44.27.41.66



This archive was generated by hypermail 2b29 : Thu Jan 01 2004 - 17:50:09 MET