38 m_stat = *((
int*)pevt);
43 throw RawExMessage(
"[RootFileWriter] Get an invalid DistBossCode!");
47 TBufferFile buffer(TBuffer::kRead, size, ((
char*)pevt+4), kFALSE);
59 if (m_evt->m_EvtHeader) m_tree->Branch(
"TEvtHeader",
"TEvtHeader",&m_evt->m_EvtHeader,3200000,1);
60 if (m_evt->m_digiEvt) m_tree->Branch(
"TDigiEvent",
"TDigiEvent",&m_evt->m_digiEvt,3200000,1);
61 if (m_evt->m_dstEvt) m_tree->Branch(
"TDstEvent",
"TDstEvent", &m_evt->m_dstEvt, 3200000, 1);
62 if (m_evt->m_mcEvt) m_tree->Branch(
"TMcEvent",
"TMcEvent",&m_evt->m_mcEvt,3200000,1);
63 if (m_evt->m_trigEvt) m_tree->Branch(
"TTrigEvent",
"TTrigEvent",&m_evt->m_trigEvt,3200000,1);
64 if (m_evt->m_hltEvt) m_tree->Branch(
"THltEvent",
"THltEvent",&m_evt->m_hltEvt,3200000,1);
65 if (m_evt->m_rectrackEvt) m_tree->Branch(
"TRecEvent",
"TRecTrackEvent", &m_evt->m_rectrackEvt, 3200000, 1);
66 if (m_evt->m_evtRecObject) m_tree->Branch(
"TEvtRecObject",
"TEvtRecObject", &m_evt->m_evtRecObject, 3200000, 1);
68 m_jtree->Branch(
"JobInfo",&m_jobInfo);
73 if ( m_file->IsZombie() || (!m_file->IsOpen()) ) {
74 std::cout<<
"ROOT File: " << m_fname <<
" bad status in RootFileWriter" << std::endl;
78 int nb = m_tree->Fill();
80 std::cerr <<
"RootFileWriter: error in fill tree " << m_tree->GetName() << std::endl;
87 m_file = m_tree->GetCurrentFile();