// // $Id: SmtGeometryMessenger.cpp,v 1.6 2000/12/05 16:52:57 hobbs Exp $ // // File: SmtGeometryMessenger.cpp // Purpose: // Created: 29-OCT-1997 John Hobbs // // $Revision: 1.6 $ // // // Include files #include #include #include #include #include #include using namespace std; using namespace edm; void SmtGeometryMessenger::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 subdetector... d0_Ref sigeom = bg->get_silicon(); int version=(-1); if( !sigeom.is_null() ) version = sigeom->get_constants_version(); // Who am I? dbidSet::DETDB reco = dbidSet::RECOSMT; dbidSet::DETDB user = dbidSet::USERSMT; EnvID thisGeom = build_envid(reco,user,version); // And now do the update SiGeometerDecoupler si; if( passnull || !sigeom.is_null() ) si.refresh(sigeom,thisGeom); }