76 {
77
78 MsgStream log(
msgSvc(),
"TofDigiCnv");
79 log << MSG::DEBUG << "TofDigiCnv::DataObjectToTObject" << endreq;
80 StatusCode sc=StatusCode::SUCCESS;
81
83 if (!tofDigiColTds) {
84 log << MSG::ERROR << "Could not downcast to TofDigiCol" << 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 << "TofDigiCnv:Could not downcast to TDS DigiEvent" << endreq;
97 }
98 IOpaqueAddress *addr;
99
101
103
105 if (!m_tofDigiCol) return sc;
107 TofDigiCol::const_iterator tofDigiTds;
108
109 for (tofDigiTds = tofDigiColTds->begin(); tofDigiTds != tofDigiColTds->end(); tofDigiTds++) {
110 UInt_t overflow = (*tofDigiTds)->getOverflow();
111 UInt_t
time = (*tofDigiTds)->getTimeChannel();
112 UInt_t
charge = (*tofDigiTds)->getChargeChannel();
113 UInt_t id = (*tofDigiTds)->getIntId();
114 Int_t trackIndex = (*tofDigiTds)->getTrackIndex();
115
117
118
122
124 }
125
126 return StatusCode::SUCCESS;
127}
ObjectVector< TofDigi > TofDigiCol
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 addTofDigi(TTofDigi *digi)
Add a TofDigi into the TOF Data collection.
void clearTofDigiCol()
clear the whole array
const TObjArray * getTofDigiCol() const
retrieve the whole TObjArray of TofDigi Data
void initialize(UInt_t id, UInt_t time=0, UInt_t charge=0)
void setTrackIndex(const int trackIndex)
void setOverflow(const UInt_t overflow)
_EXTERN_ std::string Event