// // // File: SiL0.icc // Purpose: Add Layer0 to SMT // Created: 01-FEB-2005 Shaohua Fu // // inline int SiL0::get_barrel_count() const // // Purpose: Return the number of barrels in the layer0 section // of the tracker // { return _barrels.size(); } inline const SiBarrel* SiL0::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<1 || id > _barrels.size() ) abort(); return &_barrels[id-1]; } inline SiBarrel* SiL0::get_mutable_barrel(int id) // // Purpose: Give modifiable access to barrel ibarrel. Barrels are numbered // from 1 to get_barrel_count() // { if ( id<1 || id > _barrels.size() ) abort(); return &_barrels[id-1]; }