Done

Mode 0 : D0_to_Kpi Signal MC

c3python DHad.py -t s -m 0 --tag s --sign 1
[ png
eps ]

Output the evt file for fit - woks.

dat/signal_Single_D0_to_Kpi.evt

Mode 0 : D0B_to_Kpi Signal MC

c3python DHad.py -t s -m 0 --tag s --sign -1
[ png
eps ]

Problem

When I did the fit for the mode 0 by command:
   $cd script/Roofit
   $. setup.sh
   $c3python single_tag_fit.py --mode 0 --file /home/xs32/work/CLEO/analysis/DHad/dat/evt/signal_Single_D0_to_Kpi.evt mc

Error message:

mode = 0
interfacecodes[mode] = kpi
Warning: m_mode(cmode) Missing ';' FILE:TranslateFitParms.C LINE:21

 *** Break *** segmentation violation
 Generating stack trace...
/usr/bin/addr2line: python: No such file or directory
/usr/bin/addr2line: python: No such file or directory
 0xb705c27b in TString::TString(TString const&) + 0x41 from /nfs/cleo3/Offline/rel/20050417_FULL/other_sources/Root/lib/libCore.so
 0xb708e2a3 in <unknown> from /nfs/cleo3/Offline/rel/20050417_FULL/other_sources/Root/lib/libCore.so
 0xb6c0a89b in G__call_cppfunc + 0x266 from /nfs/cleo3/Offline/rel/20050417_FULL/other_sources/Root/lib/libCint.so
 0xb6bf9fe2 in G__interpret_func + 0x706 from /nfs/cleo3/Offline/rel/20050417_FULL/other_sources/Root/lib/libCint.so
 0xb6be1bc0 in G__getfunction + 0x134f from /nfs/cleo3/Offline/rel/20050417_FULL/other_sources/Root/lib/libCint.so
 0xb6bc4d92 in G__define_var + 0x9d5 from /nfs/cleo3/Offline/rel/20050417_FULL/other_sources/Root/lib/libCint.so
 0xb6c556b6 in G__defined_type + 0x593 from /nfs/cleo3/Offline/rel/20050417_FULL/other_sources/Root/lib/libCint.so
 0xb6c25b70 in G__exec_statement + 0x18ec from /nfs/cleo3/Offline/rel/20050417_FULL/other_sources/Root/lib/libCint.so
 0xb6bfb5d7 in G__interpret_func + 0x1cfb from /nfs/cleo3/Offline/rel/20050417_FULL/other_sources/Root/lib/libCint.so
 0xb6c3151a in G__exec_asm + 0x1717 from /nfs/cleo3/Offline/rel/20050417_FULL/other_sources/Root/lib/libCint.so
 0xb6bf0456 in G__exec_bytecode + 0x8ec from /nfs/cleo3/Offline/rel/20050417_FULL/other_sources/Root/lib/libCint.so
 0xb6bfa89a in G__interpret_func + 0xfbe from /nfs/cleo3/Offline/rel/20050417_FULL/other_sources/Root/lib/libCint.so
 0xb6c7b63f in G__CallFunc::ExecInterpretedFunc(G__value*) + 0x11b from /nfs/cleo3/Offline/rel/20050417_FULL/other_sources/Root/lib/libCint.so
 0xb6c7b42c in G__CallFunc::ExecInt(void*) + 0x78 from /nfs/cleo3/Offline/rel/20050417_FULL/other_sources/Root/lib/libCint.so
 0xb7429c15 in PyROOT::MethodHolder::execute(void*, long&) + 0x5d from /nfs/cleo3/Offline/rel/20050417_FULL/other_sources/Root/lib/libPyROOT.so
 0xb74265f2 in PyROOT::ConstructorDispatcher::operator()(_object*, _object*) + 0x6a from /nfs/cleo3/Offline/rel/20050417_FULL/other_sources/Root/lib/libPyROOT.so
 0xb7427dd4 in PyROOT::MethodDispatcher::operator()(_object*, _object*) + 0x84 from /nfs/cleo3/Offline/rel/20050417_FULL/other_sources/Root/lib/libPyROOT.so
 0xb7427c22 in PyROOT::MethodDispatcher::invoke(_object*, _object*, _object*) + 0x2a from /nfs/cleo3/Offline/rel/20050417_FULL/other_sources/Root/lib/libPyROOT.so
 0xb7b24f8a in PyCFunction_Call at Objects/methodobject.c:118 from /nfs/cleo3/Offline/rel/20050417_FULL/other_sources/python/lib/libpython2.4.so.1.0
 0xb7afeb28 in PyObject_Call at Objects/abstract.c:1747 from /nfs/cleo3/Offline/rel/20050417_FULL/other_sources/python/lib/libpython2.4.so.1.0
 0xb7b0731a in <unknown> from /nfs/cleo3/Offline/rel/20050417_FULL/other_sources/python/lib/libpython2.4.so.1.0
 0xb7afeb28 in PyObject_Call at Objects/abstract.c:1747 from /nfs/cleo3/Offline/rel/20050417_FULL/other_sources/python/lib/libpython2.4.so.1.0
 0xb7b3e6ab in <unknown> from /nfs/cleo3/Offline/rel/20050417_FULL/other_sources/python/lib/libpython2.4.so.1.0
 0xb7b38dad in <unknown> from /nfs/cleo3/Offline/rel/20050417_FULL/other_sources/python/lib/libpython2.4.so.1.0
 0xb7afeb28 in PyObject_Call at Objects/abstract.c:1747 from /nfs/cleo3/Offline/rel/20050417_FULL/other_sources/python/lib/libpython2.4.so.1.0
 0xb7b5b544 in <unknown> from /nfs/cleo3/Offline/rel/20050417_FULL/other_sources/python/lib/libpython2.4.so.1.0
 0xb7b5afdc in <unknown> from /nfs/cleo3/Offline/rel/20050417_FULL/other_sources/python/lib/libpython2.4.so.1.0
 0xb7b5919b in PyEval_EvalFrame at Python/ceval.c:2163 from /nfs/cleo3/Offline/rel/20050417_FULL/other_sources/python/lib/libpython2.4.so.1.0
 0xb7b59c29 in PyEval_EvalCodeEx at Python/ceval.c:2730 from /nfs/cleo3/Offline/rel/20050417_FULL/other_sources/python/lib/libpython2.4.so.1.0
 0xb7b56e97 in PyEval_EvalCode at Python/ceval.c:490 from /nfs/cleo3/Offline/rel/20050417_FULL/other_sources/python/lib/libpython2.4.so.1.0
 0xb7b86560 in <unknown> from /nfs/cleo3/Offline/rel/20050417_FULL/other_sources/python/lib/libpython2.4.so.1.0
 0xb7b85b0d in PyRun_SimpleFileExFlags at Python/pythonrun.c:859 from /nfs/cleo3/Offline/rel/20050417_FULL/other_sources/python/lib/libpython2.4.so.1.0
 0xb7b85565 in PyRun_AnyFileExFlags at Python/pythonrun.c:663 from /nfs/cleo3/Offline/rel/20050417_FULL/other_sources/python/lib/libpython2.4.so.1.0
 0xb7b8dd9f in Py_Main at Modules/main.c:484 from /nfs/cleo3/Offline/rel/20050417_FULL/other_sources/python/lib/libpython2.4.so.1.0
 0x080486d6 in main + 0x22 from python
 0xb78b279d in __libc_start_main + 0xed from /lib/tls/libc.so.6
 0x08048625 in Py_Main + 0x31 from python
/home/xs32/local/bin/c3python: line 19:  2948 Aborted                 python $@
xs32_lnx618>

Plan

           0   , D0->K pi
           1   , D0->K pi pi0
           3   , D0->K 3pi
           200 , D+->K pi pi
           201 , D+->K pi pi pi0
           202 , D+->Ks pi
           203 , D+->Ks pi pi0
           204 , D+->Ks pi pi pi
           205 , D+->K K pi

Solved :

.C++