// // $Id: MuoGeometryMessenger.cpp,v 1.5 2001/01/12 17:58:09 russo Exp $ // // File: MuoGeometryMessenger.cpp // Purpose: // Created: 19-DEC-1998 John Hobbs // // $Revision: 1.5 $ // // // Include files #include #include #include #include #include "muon_geometry/MuoBaseGeometry_ref.hpp" #include using namespace std; using namespace edm; void MuoGeometryMessenger::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 muogeom = bg->get_muon(); int version=(-1); if( !muogeom.is_null() ) version = muogeom->get_constants_version(); // Who am I? dbidSet::DETDB reco = dbidSet::RECOMUO; dbidSet::DETDB user = dbidSet::USERMUO; EnvID thisGeom = build_envid(reco,user,version); MuoGeometerDecoupler muo; if( passnull || !muogeom.is_null() ) muo.refresh(muogeom,thisGeom); }