// // $Id: CpsGeometryMessenger.cpp,v 1.5 2000/12/05 16:52:57 hobbs Exp $ // // File: CpsGeometryMessenger.cpp // Purpose: // Created: 19-DEC-1998 John Hobbs // // $Revision: 1.5 $ // // // Include files #include #include #include #include #include #include using namespace std; using namespace edm; void CpsGeometryMessenger::refresh(d0_Ref bg, const bool passnull)const // // Purpose: Send a message to the geometers of all subdetectors. This can be // called only if there is a valid geometry in the geometry manager. // { // Update the standard list of subdetectors... d0_Ref cpsgeom = bg->get_cps(); int version=(-1); if( !cpsgeom.is_null() ) version = cpsgeom->get_constants_version(); // Who am I? dbidSet::DETDB reco = dbidSet::RECOCPS; dbidSet::DETDB user = dbidSet::USERCPS; EnvID thisGeom = build_envid(reco,user,version); CpsGeometerDecoupler cps; if( passnull || !cpsgeom.is_null() ) cps.refresh(cpsgeom,thisGeom); }