- Timestamp:
- May 18, 2009, 6:49:32 PM (16 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/interface/CaloUtil.h
r264 r391 125 125 D_CaloTower& operator[](const unsigned int i) {return _calotowers[i];} 126 126 const D_CaloTower& getElement(const float eta, const float phi) ; 127 const D_CaloTower& getElement(const float eta, const float phi) const; 127 128 void addTower(const D_CaloTower& tower); 128 129 // sorts the elements with respect to their eta -
trunk/src/CaloUtil.cc
r264 r391 216 216 return dummyTower; // if not found 217 217 } 218 219 const D_CaloTower& D_CaloTowerList::getElement(const float eta, const float phi) const { 220 if(!_sorted) cout << "Warning: unsorted list!"; 221 for (unsigned int i=0; i< _calotowers.size(); i++) { 222 if(_calotowers[i].getEta() == eta && 223 _calotowers[i].getPhi() == phi ) 224 return _calotowers[i]; 225 } 226 return dummyTower; // if not found 227 } 228
Note:
See TracChangeset
for help on using the changeset viewer.