CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_4_2_9_HLT1_bphpatch4/src/Geometry/CaloTopology/src/EcalEndcapHardcodedTopology.cc

Go to the documentation of this file.
00001 #include "Geometry/CaloTopology/interface/EcalEndcapHardcodedTopology.h"
00002 
00003 EEDetId EcalEndcapHardcodedTopology::incrementIx(const EEDetId& id) const {
00004   if (! (EEDetId::validDetId(id.ix()+1,id.iy(),id.zside()) ) ) return EEDetId(0); // null det id
00005   else return EEDetId(id.ix()+1,id.iy(),id.zside());     
00006 }
00007 
00008 EEDetId EcalEndcapHardcodedTopology::decrementIx(const EEDetId& id) const {
00009   if (! (EEDetId::validDetId(id.ix()-1,id.iy(),id.zside()) ) ) return EEDetId(0); // null det id
00010   else return EEDetId(id.ix()-1,id.iy(),id.zside());     
00011 }
00012 
00013 EEDetId EcalEndcapHardcodedTopology::incrementIy(const EEDetId& id) const {
00014   if (! (EEDetId::validDetId(id.ix(),id.iy()+1,id.zside()) ) ) return EEDetId(0); // null det id
00015   else return EEDetId(id.ix(),id.iy()+1,id.zside());     
00016 }
00017 
00018 EEDetId EcalEndcapHardcodedTopology::decrementIy(const EEDetId& id) const {
00019   if (! (EEDetId::validDetId(id.ix(),id.iy()-1,id.zside()) ) ) return EEDetId(0); // null det id
00020   else return EEDetId(id.ix(),id.iy()-1,id.zside());     
00021 }