1 #define DETECTORDATASVC_DETDATASVC_CPP
16 #define ON_DEBUG if (UNLIKELY(outputLevel() <= MSG::DEBUG))
17 #define ON_VERBOSE if (UNLIKELY(outputLevel() <= MSG::VERBOSE))
19 #define DEBMSG ON_DEBUG debug()
20 #define VERMSG ON_VERBOSE verbose()
35 error() <<
"Unable to retrieve " << m_persistencySvcName <<
endmsg;
39 sc = setDataLoader(cnv_svc);
41 error() <<
"Unable to set DataLoader" <<
endmsg;
46 m_addrCreator = cnv_svc;
47 if (
UNLIKELY(!m_addrCreator.isValid()) ) {
48 error() <<
"Unable to get AddressCreator." <<
endmsg;
52 return setupDetectorDescription();
59 debug() <<
"Setting DetectorDataSvc root node... " <<
endmsg;
77 error() <<
"Detector data location name not set. Detector data will "
83 unsigned long iargs[]={0,0};
94 error() <<
"Unable to set detector data store root" <<
endmsg;
99 error() <<
"Unable to create address for /dd" <<
endmsg;
107 info() <<
"Detector description not requested to be loaded" <<
endmsg;
159 unsigned long iargs[] = {0,0};
172 error() <<
"Unable to set detector data store root" <<
endmsg;
175 error() <<
"Unable to create address for /dd" <<
endmsg;
234 if ( 0 == toUpdate ) {
235 error() <<
"There is no DataObject to update" <<
endmsg;
236 return INVALID_OBJECT;
241 if ( 0 == condition ) {
243 <<
"Cannot update DataObject: DataObject does not implement IValidity"
251 <<
"Cannot update DataObject: event time undefined"
258 DEBMSG <<
"DataObject is valid: no need to update" <<
endmsg;
267 DEBMSG <<
"Delegate update to relevant conversion service" <<
endmsg;
270 error() <<
"Could not update DataObject" <<
endmsg;
271 if ( status == NO_DATA_LOADER )
277 condition =
dynamic_cast<IValidity*
>(toUpdate);
278 if ( 0 == condition ) {
279 error() <<
"Updated DataObject does not implement IValidity" <<
endmsg;
284 error() <<
"Updated DataObject is not valid" <<
endmsg;
285 error() <<
"Are you sure the conversion service has updated it?" <<
endmsg;
290 DEBMSG <<
"Method updateObject exiting successfully" <<
endmsg;