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 {
112
114
115 m_tofCnv->
convert(tofBuf, etfBuf, tofDigiCol);
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132 StatusCode scTof = m_evtSvc->registerObject("/Event/Digi/TofDigiCol", tofDigiCol);
133 if( scTof!=StatusCode::SUCCESS ) {
134 std::cout<< "Could not register TOF digi collection" <<std::endl;
135 }
136 }
137
138 if(m_emcdigi)
139 {
141
143 m_emcCnv->
convert(emcBuf, emcDigiCol);
144
145 StatusCode scEmc = m_evtSvc->registerObject("/Event/Digi/EmcDigiCol", emcDigiCol);
146 if( scEmc!=StatusCode::SUCCESS ) {
147 std::cout<< "Could not register EMC digi collection" <<std::endl;
148 }
149 }
150
151 if(m_mucdigi)
152 {
154
156 m_mucCnv->
convert(mucBuf, mucDigiCol);
157
158 StatusCode scMuc = m_evtSvc->registerObject("/Event/Digi/MucDigiCol", mucDigiCol);
159 if( scMuc!=StatusCode::SUCCESS ) {
160 std::cout<< "Could not register MUC digi collection" <<std::endl;
161 }
162 }
163
164 m_raw_event->
reset();
165
166 return StatusCode::SUCCESS;
167}
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)