// // $Id: SiCentral.icc,v 1.3 1998/02/12 19:38:49 hobbs Exp $ // // File: SiCentral.icc // Purpose: // Created: 15-DEC-1997 Emanuela Barberis // // $Revision: 1.3 $ // // inline int SiCentral::get_barrel_count() const // // Purpose: Return the number of barrels in the central section // of the tracker // { return _barrels.size(); } inline int SiCentral::get_disk_count() const // // Purpose: Return the number of disks (F) in the central section // of the tracker // { return _disks.size(); } inline const SiBarrel* SiCentral::get_barrel(int id) const // // Purpose: Grant read only access to the ibarrel-th barrel. Barrels are // numbered from 1 to get_barrel_count() // { if ( id>0 && id <= _barrels.size() ) return &_barrels[id-1]; return 0; } inline const SiDisk* SiCentral::get_disk(int id) const // // Purpose: Grant read only access to the idisk-th disk. Disks are // numbered from 1 to get_disk_count() // { if ( id>0 && id <= _disks.size() ) return &_disks[id-1]; return 0; } inline SiBarrel* SiCentral::get_mutable_barrel(int id) // // Purpose: Give modifiable access to barrel ibarrel. Barrels are numbered // from 1 to get_barrel_count() // { if ( id>0 && id <= _barrels.size() ) return &_barrels[id-1]; return 0; } inline SiDisk* SiCentral::get_mutable_disk(int id) // // Purpose: Give modifiable access to disk idisk. Disks are numbered // from 1 to get_disk_count() // { if ( id>0 && id <= _disks.size() ) return &_disks[id-1]; return 0; }