76 {
77
78 MsgStream log(
msgSvc(),
"EmcDigiCnv");
79 log << MSG::DEBUG << "EmcDigiCnv::DataObjectToTObject" << endreq;
80 StatusCode sc=StatusCode::SUCCESS;
81
83 if (!emcDigiColTds) {
84 log << MSG::ERROR << "Could not downcast to EmcDigiCol" << endreq;
85 return StatusCode::FAILURE;
86 }
87
88 DataObject *evt;
91 log << MSG::ERROR << "Could not get DigiEvent in TDS " << endreq;
92 return StatusCode::FAILURE;
93 }
95 if (!devtTds) {
96 log << MSG::ERROR << "EmcDigiCnv:Could not downcast to TDS DigiEvent" << endreq;
97 }
98 IOpaqueAddress *addr;
99
102
104 if (!m_emcDigiCol) return sc;
106 EmcDigiCol::const_iterator emcDigiTds;
107
108 for (emcDigiTds = emcDigiColTds->begin(); emcDigiTds != emcDigiColTds->end(); emcDigiTds++) {
109 UInt_t measure = (*emcDigiTds)->getMeasure();
110 UInt_t
time = (*emcDigiTds)->getTimeChannel();
111 UInt_t
charge = (*emcDigiTds)->getChargeChannel();
112 UInt_t id = (*emcDigiTds)->getIntId();
113 Int_t trackIndex = (*emcDigiTds)->getTrackIndex();
114
116
117
121
123 }
124
125 return StatusCode::SUCCESS;
126}
ObjectVector< EmcDigi > EmcDigiCol
static TDigiEvent * getWriteObject()
returns object to be written (maintained here for all DIGI-converters)
IDataProviderSvc * m_eds
pointer to eventdataservice
virtual StatusCode createRep(DataObject *pObject, IOpaqueAddress *&refpAddress)
Convert the transient object to the requested representation.
void addEmcDigi(TEmcDigi *digi)
Add a TkrDigi into the TKR data collection.
void clearEmcDigiCol()
clear the whole array (necessary because of the consts-s)
const TObjArray * getEmcDigiCol() const
retrieve the whole TObjArray of TkrDigi Data
void setMeasure(const UInt_t measure)
void initialize(UInt_t id, UInt_t time=0, UInt_t charge=0)
void setTrackIndex(const int trackIndex)
_EXTERN_ std::string Event