HardCodedGeometry.h
Go to the documentation of this file.
1 //File: HardCodedGeometry.h
2 //Brief: CRT geometry from hard-coded values. Converts (module, channel) pairs into
3 // sorting criteria for identifying overlapping hits in the detector. Prefer
4 // values from the offline framework's geometry service when possible.
5 //Author: Andrew Olivier aolivier@ur.rochester.edu
6 
7 #ifndef CRT_HARDCODEDGEOMETRY_H
8 #define CRT_HARDCODEDGEOMETRY_H
9 #include "duneprototypes/Protodune/singlephase/CRT/alg/geom/Geometry.h" //Interface that this header describes an implementation for.
10 
11 namespace CRT
12 {
14  {
15  public:
17  virtual ~HardCodedGeometry() = default;
18 
19  //Public interface provided by Geometry
20  private:
21  virtual CRT::ModuleID doModuleID(const size_t module) const override;
22  virtual CRT::StripID doStripID(const CRT::ModuleID module, const size_t channel) const override;
23 
24  //Data used for mapping calculation
25  const size_t fModulesPerPlane;
26  const size_t fStripsPerLayer;
27  };
28 }
29 
30 #endif //CRT_HARDCODEDGEOMETRY_H
virtual CRT::StripID doStripID(const CRT::ModuleID module, const size_t channel) const override
uint8_t channel
Definition: CRTFragment.hh:201
virtual CRT::ModuleID doModuleID(const size_t module) const override
virtual ~HardCodedGeometry()=default