74 {
75
76 MsgStream log(
msgSvc(),
"MucDigiCnv");
77 log << MSG::DEBUG << "MucDigiCnv::DataObjectToTObject" << endreq;
78 StatusCode sc=StatusCode::SUCCESS;
79
81 if (!mucDigiColTds) {
82 log << MSG::ERROR << "Could not downcast to MucDigiCol" << endreq;
83 return StatusCode::FAILURE;
84 }
85
86 DataObject *evt;
88 if (evt==NULL) {
89 log << MSG::ERROR << "Could not get DigiEvent in TDS " << endreq;
90 return StatusCode::FAILURE;
91 }
93 if (!devtTds) {
94 log << MSG::ERROR << "MucDigiCnv:Could not downcast to TDS DigiEvent" << endreq;
95 }
96 IOpaqueAddress *addr;
97
100
102 if (!m_mucDigiCol) return sc;
104 MucDigiCol::const_iterator mucDigiTds;
105
106 for (mucDigiTds = mucDigiColTds->begin(); mucDigiTds != mucDigiColTds->end(); mucDigiTds++) {
107 UInt_t
time = (*mucDigiTds)->getTimeChannel();
108 UInt_t charge = (*mucDigiTds)->getChargeChannel();
109 UInt_t id = (*mucDigiTds)->getIntId();
110 Int_t trackIndex = (*mucDigiTds)->getTrackIndex();
111
113
114
118 }
119
120 return StatusCode::SUCCESS;
121}
ObjectVector< MucDigi > MucDigiCol
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.
const TObjArray * getMucDigiCol() const
retrieve the whole TObjArray of MucDigi Data
void addMucDigi(TMucDigi *digi)
Add a MucDigi into the MUC Data collection.
void clearMucDigiCol()
clear the whole array
void initialize(UInt_t id, UInt_t time=0, UInt_t charge=0)
void setTrackIndex(const int trackIndex)
_EXTERN_ std::string Event