// // $Id: ChannelGeometry.cpp,v 1.7 2000/12/05 16:52:15 hobbs Exp $ // // File: ChannelGeometry.cc // Purpose: To initialize all D0 detector channel geometries // Created: 08-JUN-1998 Harry Melanson // // $Revision: 1.7 $ // // // Include files #include #include #include #include "ChannelGeometry.hpp" #include #include #include #include #include using namespace edm; // Constructor ChannelGeometry::ChannelGeometry(){} // Build calls each detector channel geometry build method void ChannelGeometry::build(edm::RCP* mainrcp) { // // CFT channel geometry // if( mainrcp->getBool("useCft") ) { RCP CftRCP = mainrcp->getRCP("CftChannelGeometry"); CftChannelGeometry* cft_channel = CftChannelGeometry::get_instance(); cft_channel->absRefresh(&CftRCP); } if( mainrcp->getBool("useSMT") ) { RCP SmtRCP = mainrcp->getRCP("SmtChannelGeometry"); SiChannelGeometer* smt_channel = SiChannelGeometer::get_instance(); smt_channel->absRefresh(&SmtRCP); } // Calorimeter does not have a separate channel geometry if( mainrcp->getBool("useCps") ) { RCP CpsRCP = mainrcp->getRCP("CpsChannelGeometry"); CpsChannelGeometry* cps_channel = CpsChannelGeometry::get_instance(); cps_channel->absRefresh(&CpsRCP); } if( mainrcp->getBool("useFPS") ) { RCP FpsRCP = mainrcp->getRCP("FPSChannelGeometry"); FPSGeometer* fpsgeo = FPSGeometer::get_instance(); FPSChannelGeometry* fps_channel = FPSChannelGeometry::make_instance(FpsRCP); } // Muon does not have a separate channel geometry }