74 {
75
76 MsgStream log(
msgSvc(), name());
77 log << MSG::INFO << "in execute()" << endreq;
78
80 StatusCode sc = m_evtSvc->registerObject("/Event/Digi",aDigiEvent);
81 if(sc!=StatusCode::SUCCESS) {
82 std::cout<< "Could not register DigiEvent" <<std::endl;
83 }
84
86
87
88 if(m_mdcdigi)
89 {
91
93 m_mdcCnv->
convert(mdcBuf, mdcDigiCol);
94
95
96
97
98
99
100
101 StatusCode scMdc = m_evtSvc->registerObject("/Event/Digi/MdcDigiCol", mdcDigiCol);
102 if( scMdc!=StatusCode::SUCCESS ) {
103 std::cout<< "Could not register MDC digi collection" <<std::endl;
104 }
105 }
106
107
108 if(m_tofdigi)
109 {
111
113 m_tofCnv->
convert(tofBuf, tofDigiCol);
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129 StatusCode scTof = m_evtSvc->registerObject("/Event/Digi/TofDigiCol", tofDigiCol);
130 if( scTof!=StatusCode::SUCCESS ) {
131 std::cout<< "Could not register TOF digi collection" <<std::endl;
132 }
133 }
134
135 if(m_emcdigi)
136 {
138
140 m_emcCnv->
convert(emcBuf, emcDigiCol);
141
142 StatusCode scEmc = m_evtSvc->registerObject("/Event/Digi/EmcDigiCol", emcDigiCol);
143 if( scEmc!=StatusCode::SUCCESS ) {
144 std::cout<< "Could not register EMC digi collection" <<std::endl;
145 }
146 }
147
148 if(m_mucdigi)
149 {
151
153 m_mucCnv->
convert(mucBuf, mucDigiCol);
154
155 StatusCode scMuc = m_evtSvc->registerObject("/Event/Digi/MucDigiCol", mucDigiCol);
156 if( scMuc!=StatusCode::SUCCESS ) {
157 std::cout<< "Could not register MUC digi collection" <<std::endl;
158 }
159 }
160
161 m_raw_event->
reset();
162
163 return StatusCode::SUCCESS;
164}
ObjectVector< EmcDigi > EmcDigiCol
ObjectVector< MdcDigi > MdcDigiCol
ObjectVector< MucDigi > MucDigiCol
ObjectVector< TofDigi > TofDigiCol
StatusCode convert(const BufferHolder &src, EmcDigiCol *des)
StatusCode convert(const BufferHolder &src, MdcDigiCol *des)
StatusCode convert(const BufferHolder &src, MucDigiCol *des)
const BufferHolder & getEmcBuf() const
const BufferHolder & getMdcBuf() const
const BufferHolder & getMucBuf() const
const BufferHolder & getTofBuf() const
StatusCode convert(const BufferHolder &src, TofDigiCol *des, LumiDigiCol *des2=0)