// // $Id: SiEnd.icc,v 1.3 1998/01/30 19:55:15 barberis Exp $ // // File: SiEnd.icc // Purpose: // Created: 15-DEC-1997 Emanuela Barberis // // $Revision: 1.3 $ // // inline int SiEnd::get_disk_count() const // // Purpose: Return the number of disks in the end sections // of the tracker // { return _disks.size(); } inline const SiDisk* SiEnd::get_disk(int idis) const // // Purpose: Grant read only access to the idisk-th disk. Disks are // numbered from 1 to get_disk_count() // { if( idis<1 || idis>_disks.size() ) abort(); return &_disks[idis-1]; } inline SiDisk* SiEnd::get_mutable_disk(int idis) // // Purpose: Give modifiable access to disk idisk. Disks are numbered // from 1 to get_disk_count() // { if( idis<1 || idis>_disks.size() ) abort(); return &_disks[idis-1]; }