// // $Id: FPSGeometryMessenger.cpp,v 1.5 2000/12/05 16:52:57 hobbs Exp $ // // File: FPSGeometryMessenger.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 FPSGeometryMessenger::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 subdetectors... d0_Ref fpsgeom = bg->get_fps(); int version=(-1); if( !fpsgeom.is_null() ) version = fpsgeom->get_constants_version(); // Who am I? dbidSet::DETDB reco = dbidSet::RECOFPS; dbidSet::DETDB user = dbidSet::USERFPS; EnvID thisGeom = build_envid(reco,user,version); FPSGeometerDecoupler fps; if( passnull || !fpsgeom.is_null() ) fps.refresh(fpsgeom,thisGeom); }