76 {
77
78 MsgStream log(
msgSvc(), name());
79 log << MSG::INFO << "in execute()" << endreq;
80
82 StatusCode sc = m_evtSvc->registerObject("/Event/Digi",aDigiEvent);
83 if(sc!=StatusCode::SUCCESS) {
84 std::cout<< "Could not register DigiEvent" <<std::endl;
85 }
86
88
89
90 if(m_mdcdigi)
91 {
93
95 m_mdcCnv->
convert(mdcBuf, mdcDigiCol);
96
97
98
99
100
101
102
103 StatusCode scMdc = m_evtSvc->registerObject("/Event/Digi/MdcDigiCol", mdcDigiCol);
104 if( scMdc!=StatusCode::SUCCESS ) {
105 std::cout<< "Could not register MDC digi collection" <<std::endl;
106 }
107 }
108
109
110 if(m_tofdigi)
111 {
114
116
117 m_tofCnv->
convert(tofBuf, etfBuf, tofDigiCol);
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134 StatusCode scTof = m_evtSvc->registerObject("/Event/Digi/TofDigiCol", tofDigiCol);
135 if( scTof!=StatusCode::SUCCESS ) {
136 std::cout<< "Could not register TOF digi collection" <<std::endl;
137 }
138 }
139
140 if(m_emcdigi)
141 {
143
145 m_emcCnv->
convert(emcBuf, emcDigiCol);
146
147 StatusCode scEmc = m_evtSvc->registerObject("/Event/Digi/EmcDigiCol", emcDigiCol);
148 if( scEmc!=StatusCode::SUCCESS ) {
149 std::cout<< "Could not register EMC digi collection" <<std::endl;
150 }
151 }
152
153 if(m_mucdigi)
154 {
156
158 m_mucCnv->
convert(mucBuf, mucDigiCol);
159
160 StatusCode scMuc = m_evtSvc->registerObject("/Event/Digi/MucDigiCol", mucDigiCol);
161 if( scMuc!=StatusCode::SUCCESS ) {
162 std::cout<< "Could not register MUC digi collection" <<std::endl;
163 }
164 }
165
166 m_raw_event->
reset();
167
168 return StatusCode::SUCCESS;
169}
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 & getEtfBuf() const
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)