00001 // 00002 // Define the relationship of crystals 00003 // 00004 // Zhe Wang 2004, 3, 29 00005 // 00006 #ifndef EMC_REC_NEIGHBOR_H 00007 #define EMC_REC_NEIGHBOR_H 00008 00009 #include "EmcRecEventModel/RecEmcEventModel.h" 00010 00011 class EmcRecNeighbor 00012 { 00013 public: 00014 // Constructors and destructors 00015 EmcRecNeighbor(); 00016 ~EmcRecNeighbor(); 00017 00018 // 3*3 00019 bool IsNeighbor(const Identifier& id1, 00020 const Identifier& id2); 00021 00022 // 5*5 00023 bool IsNextNeighbor(const Identifier& id1, 00024 const Identifier& id2); 00025 00026 // 3*3 00027 RecEmcIDVector GetNeighbors(const Identifier& id); 00028 00029 // 5*5 00030 RecEmcIDVector GetNextNeighbors(const Identifier& id); 00031 }; 00032 00033 #endif 00034