#ifndef ICTHGeomId_hxx_seen #define ICTHGeomId_hxx_seen #include "IGeometryId.hxx" namespace COMET { /// Define the geometry identifiers for elements in the COMET geometry. namespace GeomId { /// Define the CTH specific geometry identifiers. namespace CTH { /// Define a geometry identifier to the entire CTH detector. IGeometryId Detector(); /// Define a geometry identifier to a CTH module. IGeometryId Module(int mod); /// Define a geometry identifier to a CTH segment pair. IGeometryId Counter(int mod, int segId, int scint, int lightG); /// Check if the id is for the CTH. bool IsCTH(IGeometryId id); /// If this is a Module id, return the Module number, /// otherwise return -1. int GetModule(IGeometryId id); /// If this is a segment id, return the segment number, /// otherwise return -1. int GetSegmentId(IGeometryId id); /// If this is a scintillator, return 1, otherwise 0 int GetScintillator(IGeometryId id); /// If this is a LG, return 1, otherwise 0 int GetLightGuide(IGeometryId id); } } } #endif