Hi All,
I'm trying to fill a RooDataSet with contents of a tree and get a
segmentation violation error. The commands are:
root [0] TFile *_file0 =
TFile::Open("/uscms/home/ilyao/nobackup/Summer11/428Reduced/MEResults/microNtuples/micro_SingleMu_temp3000Evt.root")
root [1] TTree * tree = (TTree*)_file0->Get("EPDTree")
root [2] _mjj = new
RooRealVar("EvtTree.Mjj","EvtTree.Mjj",30.0,300.0,"GeV");
root [3] RooRealVar Mass = *_mjj
root [4] RooDataSet* data = new RooDataSet("data","data",tree,Mass)
And the only complication is that EPDTree is not flat and has a branch
EvtTree, which contains Mjj (alternatively I have tried _mjj = new
RooRealVar("Mjj","Mjj",30.0,300.0,"GeV"); , but that also yields the
segmentation violation).
Any advice is appreciated,
Ilya
Error:
*** Break *** segmentation violation
There was a crash.
This is the entire stack trace of all threads:
#0 0x000000360b29a115 in waitpid () from /lib64/libc.so.6
#1 0x000000360b23c481 in do_system () from /lib64/libc.so.6
#2 0x00002abdfe869222 in TUnixSystem::StackTrace() ()
from
/uscmst1/prod/sw/cms/slc5_amd64_gcc434/lcg/root/5.27.06b-cms23/lib/libCore.so
#3 0x00002abdfe869cdc in TUnixSystem::DispatchSignals(ESignals) ()
from
/uscmst1/prod/sw/cms/slc5_amd64_gcc434/lcg/root/5.27.06b-cms23/lib/libCore.so
#4 <signal handler called>
#5 0x000000360b27288e in free () from /lib64/libc.so.6
#6 0x00002abe0097bf2d in int TStreamerInfo::ReadBuffer<char**>(TBuffer&,
char** const&, int, int, int, int) ()
from
/uscmst1/prod/sw/cms/slc5_amd64_gcc434/lcg/root/5.27.06b-cms23/lib/libRIO.so
#7 0x00002abe0057b183 in
TBranchElement::ReadLeavesMemberBranchCount(TBuffer&)
()
from
/uscmst1/prod/sw/cms/slc5_amd64_gcc434/lcg/root/5.27.06b-cms23/lib/libTree.so
#8 0x00002abe0056c2e5 in TBranch::GetEntry(long long, int) ()
from
/uscmst1/prod/sw/cms/slc5_amd64_gcc434/lcg/root/5.27.06b-cms23/lib/libTree.so
#9 0x00002abe005782a7 in TBranchElement::GetEntry(long long, int) ()
from
/uscmst1/prod/sw/cms/slc5_amd64_gcc434/lcg/root/5.27.06b-cms23/lib/libTree.so
#10 0x00002abe005783ba in TBranchElement::GetEntry(long long, int) ()
from
/uscmst1/prod/sw/cms/slc5_amd64_gcc434/lcg/root/5.27.06b-cms23/lib/libTree.so
#11 0x00002abe005b3760 in TTree::GetEntry(long long, int) ()
from
/uscmst1/prod/sw/cms/slc5_amd64_gcc434/lcg/root/5.27.06b-cms23/lib/libTree.so
#12 0x00002abe005b9f3f in TTree::CopyEntries(TTree*, long long, char
const*) ()
from
/uscmst1/prod/sw/cms/slc5_amd64_gcc434/lcg/root/5.27.06b-cms23/lib/libTree.so
#13 0x00002abe005bb908 in TTree::CloneTree(long long, char const*) ()
from
/uscmst1/prod/sw/cms/slc5_amd64_gcc434/lcg/root/5.27.06b-cms23/lib/libTree.so
#14 0x00002abe01b92a35 in RooTreeDataStore::loadValues(TTree const*,
RooFormulaVar const*, char const*, int, int) ()
from
/uscmst1/prod/sw/cms/slc5_amd64_gcc434/cms/cmssw/CMSSW_4_2_8/external/slc5_amd64_gcc434/lib/libRooFitCore.so
#15 0x00002abe01b92fb5 in RooTreeDataStore::RooTreeDataStore(char
const*, char const*, RooArgSet const&, TTree&, char const*, char const*) ()
from
/uscmst1/prod/sw/cms/slc5_amd64_gcc434/cms/cmssw/CMSSW_4_2_8/external/slc5_amd64_gcc434/lib/libRooFitCore.so
#16 0x00002abe01a905a7 in RooDataSet::RooDataSet(char const*, char
const*, TTree*, RooArgSet const&, char const*, char const*) ()
from
/uscmst1/prod/sw/cms/slc5_amd64_gcc434/cms/cmssw/CMSSW_4_2_8/external/slc5_amd64_gcc434/lib/libRooFitCore.so
#17 0x00002abe0178fa4b in G__G__RooFitCore1_553_0_6(G__value*, char
const*, G__param*, int) ()
from
/uscmst1/prod/sw/cms/slc5_amd64_gcc434/cms/cmssw/CMSSW_4_2_8/external/slc5_amd64_gcc434/lib/libRooFitCore.so
#18 0x00002abdfedd5114 in Cint::G__ExceptionWrapper(int (*)(G__value*,
char const*, G__param*, int), G__value*, char*, G__param*, int) ()
from
/uscmst1/prod/sw/cms/slc5_amd64_gcc434/lcg/root/5.27.06b-cms23/lib/libCint.so
#19 0x00002abdfee8ba70 in G__execute_call ()
from
/uscmst1/prod/sw/cms/slc5_amd64_gcc434/lcg/root/5.27.06b-cms23/lib/libCint.so
#20 0x00002abdfee8c879 in G__call_cppfunc ()
from
/uscmst1/prod/sw/cms/slc5_amd64_gcc434/lcg/root/5.27.06b-cms23/lib/libCint.so
#21 0x00002abdfee6b3d6 in G__interpret_func ()
from
/uscmst1/prod/sw/cms/slc5_amd64_gcc434/lcg/root/5.27.06b-cms23/lib/libCint.so
#22 0x00002abdfee59274 in G__getfunction ()
from
/uscmst1/prod/sw/cms/slc5_amd64_gcc434/lcg/root/5.27.06b-cms23/lib/libCint.so
#23 0x00002abdfee86dcf in G__new_operator ()
from
/uscmst1/prod/sw/cms/slc5_amd64_gcc434/lcg/root/5.27.06b-cms23/lib/libCint.so
#24 0x00002abdfee33e9e in G__getexpr ()
from
/uscmst1/prod/sw/cms/slc5_amd64_gcc434/lcg/root/5.27.06b-cms23/lib/libCint.so
#25 0x00002abdfee1f989 in G__define_var ()
from
/uscmst1/prod/sw/cms/slc5_amd64_gcc434/lcg/root/5.27.06b-cms23/lib/libCint.so
#26 0x00002abdfeeb5c39 in G__exec_statement ()
from
/uscmst1/prod/sw/cms/slc5_amd64_gcc434/lcg/root/5.27.06b-cms23/lib/libCint.so
#27 0x00002abdfee182dc in G__exec_tempfile_core ()
from
/uscmst1/prod/sw/cms/slc5_amd64_gcc434/lcg/root/5.27.06b-cms23/lib/libCint.so
#28 0x00002abdfee185be in G__exec_tempfile_fp ()
from
/uscmst1/prod/sw/cms/slc5_amd64_gcc434/lcg/root/5.27.06b-cms23/lib/libCint.so
#29 0x00002abdfeec62f2 in G__process_cmd ()
from
/uscmst1/prod/sw/cms/slc5_amd64_gcc434/lcg/root/5.27.06b-cms23/lib/libCint.so
#30 0x00002abdfe82b705 in TCint::ProcessLine(char const*,
TInterpreter::EErrorCode*) ()
from
/uscmst1/prod/sw/cms/slc5_amd64_gcc434/lcg/root/5.27.06b-cms23/lib/libCore.so
#31 0x00002abdfe7871ca in TApplication::ProcessLine(char const*, bool,
int*) ()
from
/uscmst1/prod/sw/cms/slc5_amd64_gcc434/lcg/root/5.27.06b-cms23/lib/libCore.so
#32 0x00002abdff974008 in TRint::HandleTermInput() ()
from
/uscmst1/prod/sw/cms/slc5_amd64_gcc434/lcg/root/5.27.06b-cms23/lib/libRint.so
#33 0x00002abdfe867214 in TUnixSystem::CheckDescriptors() ()
from
/uscmst1/prod/sw/cms/slc5_amd64_gcc434/lcg/root/5.27.06b-cms23/lib/libCore.so
#34 0x00002abdfe867830 in TUnixSystem::DispatchOneEvent(bool) ()
from
/uscmst1/prod/sw/cms/slc5_amd64_gcc434/lcg/root/5.27.06b-cms23/lib/libCore.so
#35 0x00002abdfe7e5636 in TSystem::InnerLoop() ()
from
/uscmst1/prod/sw/cms/slc5_amd64_gcc434/lcg/root/5.27.06b-cms23/lib/libCore.so
#36 0x00002abdfe7e767c in TSystem::Run() ()
from
/uscmst1/prod/sw/cms/slc5_amd64_gcc434/lcg/root/5.27.06b-cms23/lib/libCore.so
#37 0x00002abdfe7850ff in TApplication::Run(bool) ()
from
/uscmst1/prod/sw/cms/slc5_amd64_gcc434/lcg/root/5.27.06b-cms23/lib/libCore.so
#38 0x00002abdff975d28 in TRint::Run(bool) ()
from
/uscmst1/prod/sw/cms/slc5_amd64_gcc434/lcg/root/5.27.06b-cms23/lib/libRint.so
#39 0x000000000040100d in main ()
The lines below might hint at the cause of the crash.
If they do not help you then please submit a bug report at
http://root.cern.ch/bugs. Please post the ENTIRE stack trace
from above as an attachment in addition to anything else
that might help us fixing this issue.
#5 0x000000360b27288e in free () from /lib64/libc.so.6
#6 0x00002abe0097bf2d in int TStreamerInfo::ReadBuffer<char**>(TBuffer&,
char** const&, int, int, int, int) ()
from
/uscmst1/prod/sw/cms/slc5_amd64_gcc434/lcg/root/5.27.06b-cms23/lib/libRIO.so
#7 0x00002abe0057b183 in
TBranchElement::ReadLeavesMemberBranchCount(TBuffer&)
()
from
/uscmst1/prod/sw/cms/slc5_amd64_gcc434/lcg/root/5.27.06b-cms23/lib/libTree.so
#8 0x00002abe0056c2e5 in TBranch::GetEntry(long long, int) ()
from
/uscmst1/prod/sw/cms/slc5_amd64_gcc434/lcg/root/5.27.06b-cms23/lib/libTree.so
#9 0x00002abe005782a7 in TBranchElement::GetEntry(long long, int) ()
from
/uscmst1/prod/sw/cms/slc5_amd64_gcc434/lcg/root/5.27.06b-cms23/lib/libTree.so
#10 0x00002abe005783ba in TBranchElement::GetEntry(long long, int) ()
from
/uscmst1/prod/sw/cms/slc5_amd64_gcc434/lcg/root/5.27.06b-cms23/lib/libTree.so
#11 0x00002abe005b3760 in TTree::GetEntry(long long, int) ()
from
/uscmst1/prod/sw/cms/slc5_amd64_gcc434/lcg/root/5.27.06b-cms23/lib/libTree.so
#12 0x00002abe005b9f3f in TTree::CopyEntries(TTree*, long long, char
const*) ()
from
/uscmst1/prod/sw/cms/slc5_amd64_gcc434/lcg/root/5.27.06b-cms23/lib/libTree.so
#13 0x00002abe005bb908 in TTree::CloneTree(long long, char const*) ()
from
/uscmst1/prod/sw/cms/slc5_amd64_gcc434/lcg/root/5.27.06b-cms23/lib/libTree.so
#14 0x00002abe01b92a35 in RooTreeDataStore::loadValues(TTree const*,
RooFormulaVar const*, char const*, int, int) ()
from
/uscmst1/prod/sw/cms/slc5_amd64_gcc434/cms/cmssw/CMSSW_4_2_8/external/slc5_amd64_gcc434/lib/libRooFitCore.so
#15 0x00002abe01b92fb5 in RooTreeDataStore::RooTreeDataStore(char
const*, char const*, RooArgSet const&, TTree&, char const*, char const*) ()
from
/uscmst1/prod/sw/cms/slc5_amd64_gcc434/cms/cmssw/CMSSW_4_2_8/external/slc5_amd64_gcc434/lib/libRooFitCore.so
#16 0x00002abe01a905a7 in RooDataSet::RooDataSet(char const*, char
const*, TTree*, RooArgSet const&, char const*, char const*) ()
from
/uscmst1/prod/sw/cms/slc5_amd64_gcc434/cms/cmssw/CMSSW_4_2_8/external/slc5_amd64_gcc434/lib/libRooFitCore.so
Tree Contents:
root [1] EPDTree->Show(0)
======> EVENT:0
METree = (METree*)0x14b01200
fUniqueID = 0
fBits = 50331648
m_tProbStat = 18
m_tProbStat.fUniqueID = 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0
m_tProbStat.fBits = 50331648, 50331648, 50331648, 50331648, 50331648,
50331648, 50331648, 50331648, 50331648, 50331648, 50331648, 50331648,
50331648, 50331648, 50331648, 50331648, 50331648, 50331648
m_tProbStat.tmeType = 400, 401, 300, 301, 250, 201, 200, 500, 150, 150,
150, 150, 150, 100, 100, 100, 100, 100
m_tProbStat.tmeParam = 0, 0, 0, 0, 172.5, 172.5, 172.5, 0, 120, 130,
140, 150, 160, 115, 120, 125, 130, 135
m_tProbStat.tN = 4, 8, 4, 8, 2, 4, 4, 2, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4
m_tProbStat.tRealTime = 1.83861, 4.69096, 6.09436, 80.5961, 92.269,
1.2414, 2.90533, 0.684932, 1.0671, 1.03307, 1.08342, 1.08747, 1.09431,
3.195, 3.18393, 3.06607, 3.06423, 3.05648
m_tProbStat.tCpuTime = 1.84, 4.69, 6.09, 80.58, 92.26, 1.24, 2.91, 0.68,
1.07, 1.03, 1.09, 1.08, 1.1, 3.19, 3.19, 3.06, 3.07, 3.05
m_tProbStat.tEventProb = 6.32184e-11, 4.99743e-14, 9.01672e-09,
2.55227e-09, 4.62859e-07, 1.46065e-12, 1.02749e-11, 8.36578e-07,
6.85754e-14, 7.40258e-14, 8.36858e-14, 9.43114e-14, 1.0797e-13,
1.66038e-16, 1.26115e-16, 9.77902e-17, 7.78768e-17, 6.30547e-17
m_tProbStat.tEventErr = 0.00574755, 0.00404546, 0.00658666, 0.00492939,
0.0135182, 0.00609778, 0.0080612, 0.00735508, 0.00719849, 0.0071803,
0.00720104, 0.00720229, 0.00720693, 0.00499927, 0.00499916, 0.00499779,
0.0049987, 0.00499912
m_tProbStat.tEventMaxProb = 1.09802e-05, 3.70119e-09, 0.000605614,
0.000307943, 21745.7, 4.26144e-06, 1.71044e-05, 0.0104617, 5.54302e-09,
6.01568e-09, 6.59205e-09, 7.30117e-09, 8.18346e-09, 6.54197e-12,
5.11769e-12, 4.07716e-12, 3.2999e-12, 2.70604e-12
m_tSize = 18
m_run = 172620
m_event = 20509
EvtTree = (EventNtuple*)0x14e5c3f0
fUniqueID = 0
fBits = 50331648
jLV = (vector<TLorentzVector>*)0x14e5c410
jLV.fUniqueID = 0, 0
jLV.fBits = 50331648, 50331648
jLV.fP.fUniqueID = 0, 0
jLV.fP.fBits = 50331648, 50331648
jLV.fP.fX = -47.1174, -17.0048
jLV.fP.fY = 20.6471, 20.7956
jLV.fP.fZ = 18.0544, -27.2597
jLV.fE = 57.0386, 38.8446
METLV = (vector<TLorentzVector>*)0x14e5c440
METLV.fUniqueID = 0
METLV.fBits = 50331648
METLV.fP.fUniqueID = 0
METLV.fP.fBits = 50331648
METLV.fP.fX = -12.4515
METLV.fP.fY = 32.6605
METLV.fP.fZ = 0
METLV.fE = 34.9535
lLV = (vector<TLorentzVector>*)0x14e5c470
lLV.fUniqueID = 0
lLV.fBits = 50331648
lLV.fP.fUniqueID = 0
lLV.fP.fBits = 50331648
lLV.fP.fX = 98.1054
lLV.fP.fY = -45.7716
lLV.fP.fZ = 28.189
lLV.fE = 111.868
matchedpdgId = (vector<int>*)0x14e5c460
matchedDeltaR = (vector<double>*)0x14e5c478
jBtag = (vector<int>*)0x14e5c490
lQ = 1
ldetComp = 0
run = 172620
event = 20509
Mjj = 57.2688
leptonCat = 1
leptonCat_passAll = 1
DRlj1 = 3.11926
DRlj2 = 2.92779
Thetalj1pj2 = -0.981902
lTotIso = 0.0234415
lecalIso = -10
lhcalIso = -10
ltrkIso = 0.0234415
METEt = 34.9535
lPhi = -0.436536
mnt = (MicroNtuple*)0x1508ab00
fUniqueID = 0
fBits = 3001
nJets = 2
eventProb[18] = 6.32184e-11 , 4.99743e-14 , 9.01672e-09 , 2.55227e-09 ,
4.62859e-07 ,
1.46065e-12 , 1.02749e-11 , 8.36578e-07 , 6.85754e-14 , 7.40258e-14 ,
8.36858e-14 , 9.43114e-14 , 1.0797e-13 , 1.66038e-16 , 1.26115e-16 ,
9.77902e-17 , 7.78768e-17 , 6.30547e-17
eventMaxProb[18] = 1.09802e-05 , 3.70119e-09 , 0.000605614 , 0.000307943
, 21745.7 ,
4.26144e-06 , 1.71044e-05 , 0.0104617 , 5.54302e-09 , 6.01568e-09 ,
6.59205e-09 , 7.30117e-09 , 8.18346e-09 , 6.54197e-12 , 5.11769e-12 ,
4.07716e-12 , 3.2999e-12 , 2.70604e-12
bProb = 0
0 ,
weight = 0
epd1tag = 0
epd2tag = 0
epd1tagSchan = 0
epd2tagSchan = 0
epd1tagTchan = 0
epd2tagTchan = 0
epdPretagWWandWZ = 0.11951
epd0tagWWandWZ = 0.981527
epd1tagWWandWZ = nan
epd2tagWWandWZ = nan
epd1tagWH[11] = 0 , 0 , 0 , 0 , 0 ,
0 , 0 , 0 , 0 , 2.36246e-310 ,
2.36246e-310
epd2tagWH[11] = 0 , 0 , 0 , 0 , 0 ,
0 , 0 , 0 , 0 , nan ,
0
epd1tagHWW[11] = 0 , 0 , 0 , 0 , 0 ,
0 , 0 , 0 , 0 , 0 ,
0
epd2tagHWW[11] = 0 , 0 , 0 , 0 , 0 ,
0 , 0 , 0 , 0 , 2.36246e-310 ,
2.36246e-310
ilyao
Posts: 2
Joined: Thu Sep 22, 2011 23:55
Top
--
------------------------------------------------------------
| Ricardo Eusebi | Office: Mitchell Inst. M323 |
| High Energy Physics | Phone : (979) 458 7907 |
| Texas A&M University | email : eusebi_at_physics.tamu.edu |
------------------------------------------------------------
Received on Tue Sep 27 2011 - 20:47:43 CEST