1 #define DETECTORDATASVC_DETDATASVC_CPP
17 #define ON_DEBUG if (UNLIKELY(outputLevel() <= MSG::DEBUG))
18 #define ON_VERBOSE if (UNLIKELY(outputLevel() <= MSG::VERBOSE))
20 #define DEBMSG ON_DEBUG debug()
21 #define VERMSG ON_VERBOSE verbose()
36 error() <<
"Unable to retrieve " << m_persistencySvcName <<
endmsg;
40 sc = setDataLoader(cnv_svc);
42 error() <<
"Unable to set DataLoader" <<
endmsg;
47 m_addrCreator = cnv_svc;
48 if (
UNLIKELY(!m_addrCreator.isValid()) ) {
49 error() <<
"Unable to get AddressCreator." <<
endmsg;
53 return setupDetectorDescription();
60 debug() <<
"Setting DetectorDataSvc root node... " <<
endmsg;
78 error() <<
"Detector data location name not set. Detector data will "
84 unsigned long iargs[]={0,0};
95 error() <<
"Unable to set detector data store root" <<
endmsg;
100 error() <<
"Unable to create address for /dd" <<
endmsg;
108 info() <<
"Detector description not requested to be loaded" <<
endmsg;
160 unsigned long iargs[] = {0,0};
173 error() <<
"Unable to set detector data store root" <<
endmsg;
176 error() <<
"Unable to create address for /dd" <<
endmsg;
235 if ( 0 == toUpdate ) {
236 error() <<
"There is no DataObject to update" <<
endmsg;
237 return INVALID_OBJECT;
242 if ( 0 == condition ) {
244 <<
"Cannot update DataObject: DataObject does not implement IValidity"
252 <<
"Cannot update DataObject: event time undefined"
259 DEBMSG <<
"DataObject is valid: no need to update" <<
endmsg;
268 DEBMSG <<
"Delegate update to relevant conversion service" <<
endmsg;
271 error() <<
"Could not update DataObject" <<
endmsg;
272 if ( status == NO_DATA_LOADER )
278 condition =
dynamic_cast<IValidity*
>(toUpdate);
279 if ( 0 == condition ) {
280 error() <<
"Updated DataObject does not implement IValidity" <<
endmsg;
285 error() <<
"Updated DataObject is not valid" <<
endmsg;
286 error() <<
"Are you sure the conversion service has updated it?" <<
endmsg;
291 DEBMSG <<
"Method updateObject exiting successfully" <<
endmsg;