99 {
100
101
102
103 MsgStream log(
msgSvc(), name());
104
105
106 SmartDataPtr<Event::EventHeader> eventHeader(eventSvc(),"/Event/EventHeader");
107 if (!eventHeader) {
108 log << MSG::FATAL << "Could not find Event Header" << endreq;
109 return( StatusCode::FAILURE);
110 }
111 log << MSG::INFO << "eventNo-->" << eventHeader->eventNumber()<<endreq;
112
113
114 SmartDataPtr<MdcDigiCol> mdcDigiCol(eventSvc(),"/Event/Digi/MdcDigiCol");
115 if (!mdcDigiCol) {
116 log << MSG::FATAL << "Could not find Mdc digi!!" << endreq;
117 return( StatusCode::FAILURE);
118 }
119
120 SmartDataPtr<TofDigiCol> tofDigiCol(eventSvc(),"/Event/Digi/TofDigiCol");
121 if (!tofDigiCol) {
122 log << MSG::FATAL << "Could not find Tof digi!!" << endreq;
123 return( StatusCode::FAILURE);
124 }
125 SmartDataPtr<EmcDigiCol> emcDigiCol(eventSvc(),"/Event/Digi/EmcDigiCol");
126 if (!emcDigiCol) {
127 log << MSG::FATAL << "Could not find Emc digi!!" << endreq;
128 return( StatusCode::FAILURE);
129 }
133 }
134 }
135
136 SmartDataPtr<MucDigiCol> mucDigiCol(eventSvc(),"/Event/Digi/MucDigiCol");
137 if (!mucDigiCol) {
138 log << MSG::FATAL << "Could not find Muc digi!!" << endreq;
139 return( StatusCode::FAILURE);
140 }
141
142
143 unsigned int nhitsMdc=mdcDigiCol->size();
147 }
148 }
149 unsigned int nhitsEmc=emcDigiCol->size();
150 unsigned int nhitsMuc=mucDigiCol->size();
151 unsigned int nhitsTof=tofDigiCol->size();
152
153 double rndm=CLHEP::RandFlat::shoot();
154
155 log << MSG::INFO << " Number of hits in MDC:EMC:MUC:TOF is " << nhitsMdc
156 << ":" << nhitsEmc << ":" << nhitsMuc << ":" <<nhitsTof <<"; "
157 << "random number:" << rndm <<endreq;
158
159
164
166
171
173
179
181
182 return StatusCode::SUCCESS;
183}
void setValue(float value)
bool addToEFVec(uint32_t val, uint32_t pos)
bool setVecBit(uint32_t val, uint32_t vecpos, uint32_t bbegin, uint32_t bend)
IRawDataProviderSvc * m_rawDigiSvc
virtual EmcDigiCol & getEmcDigiVec(uint32_t control=0)=0
virtual bool isOnlineMode()=0
virtual MdcDigiVec & getMdcDigiVec(uint32_t control=0)=0