83 {
84
85 MsgStream log(
msgSvc(),
"RecEmcHitCnv");
86 log << MSG::DEBUG << "RecEmcHitCnv::DataObjectToTObject" << endreq;
87
88 StatusCode sc=StatusCode::SUCCESS;
89
91 if (!emcHitColTds) {
92 log << MSG::ERROR << "Could not downcast to RecEmcHitCol" << endreq;
93 return StatusCode::FAILURE;
94 }
95
96 DataObject *evt;
98 if (evt==NULL) {
99 log << MSG::ERROR << "Could not get RecEvent in TDS " << endreq;
100 return StatusCode::FAILURE;
101 }
103 if (!devtTds) {
104 log << MSG::ERROR << "RecEmcHitCnv:Could not downcast to TDS DstEvent" << endreq;
105 }
106 IOpaqueAddress *addr;
107
110
112 if (!m_emcHitCol) return sc;
113
114
116
117 RecEmcHitCol::const_iterator emcHitTds;
118
119 for(emcHitTds = emcHitColTds->begin();
120 emcHitTds != emcHitColTds->end();
121 emcHitTds++) {
122 Int_t cellId = (*emcHitTds)->getCellId();
123 Double_t
energy = (*emcHitTds)->getEnergy();
124 Double_t
time = (*emcHitTds)->getTime();
125
127
131
133 }
134
135 return StatusCode::SUCCESS;
136}
************Class m_ypar INTEGER m_KeyWgt INTEGER m_nphot INTEGER m_KeyGPS INTEGER m_IsBeamPolarized INTEGER m_EvtGenInterface DOUBLE PRECISION m_Emin DOUBLE PRECISION m_sphot DOUBLE PRECISION m_Xenph DOUBLE PRECISION m_q2 DOUBLE PRECISION m_PolBeam2 DOUBLE PRECISION m_xErrPb *COMMON c_KK2f $ !CMS energy average $ !Spin Polarization vector first beam $ !Spin Polarization vector second beam $ !Beam energy spread[GeV] $ !minimum hadronization energy[GeV] $ !input READ never touch them !$ !debug facility $ !maximum weight $ !inverse alfaQED $ !minimum real photon energy
ObjectVector< RecEmcHit > RecEmcHitCol
static TRecTrackEvent * getWriteObject()
returns object to be written (maintained here for all DIGI-converters)
RecTrackCnv * getRecTrackCnv()
IDataProviderSvc * m_eds
pointer to eventdataservice
virtual StatusCode createRep(DataObject *pObject, IOpaqueAddress *&refpAddress)
Convert the transient object to the requested representation.
void setCellId(const Int_t id)
void setEnergy(const Double_t e)
void setTime(const Double_t time)
void addEmcHit(TRecEmcHit *Track)
Add a TkrTrack into the Emc data collection */.
void clearEmcHitCol()
clear the whole array (necessary because of the consts-s) */
const TObjArray * getEmcHitCol() const
retrieve the whole TObjArray of EmcHit Data
_EXTERN_ std::string Event