Public Member Functions | Private Member Functions | List of all members
CRT::Geometry Class Referenceabstract

#include <Geometry.h>

Inheritance diagram for CRT::Geometry:
CRT::HardCodedGeometry

Public Member Functions

 Geometry ()=default
 
virtual ~Geometry ()=default
 
CRT::ModuleID ModuleID (const size_t module) const
 
CRT::StripID StripID (const size_t module, const size_t channel) const
 

Private Member Functions

virtual CRT::StripID doStripID (const CRT::ModuleID module, const size_t channel) const =0
 
virtual CRT::ModuleID doModuleID (const size_t module) const =0
 

Detailed Description

Definition at line 19 of file Geometry.h.

Constructor & Destructor Documentation

CRT::Geometry::Geometry ( )
default
virtual CRT::Geometry::~Geometry ( )
virtualdefault

Member Function Documentation

virtual CRT::ModuleID CRT::Geometry::doModuleID ( const size_t  module) const
privatepure virtual

Implemented in CRT::HardCodedGeometry.

virtual CRT::StripID CRT::Geometry::doStripID ( const CRT::ModuleID  module,
const size_t  channel 
) const
privatepure virtual

Implemented in CRT::HardCodedGeometry.

ModuleID CRT::Geometry::ModuleID ( const size_t  module) const

Definition at line 10 of file Geometry.cpp.

11  {
12  return doModuleID(module);
13  }
virtual CRT::ModuleID doModuleID(const size_t module) const =0
StripID CRT::Geometry::StripID ( const size_t  module,
const size_t  channel 
) const

Definition at line 15 of file Geometry.cpp.

16  {
17  //I can do any common post-processing of results here
18  return doStripID(ModuleID(module), channel);
19  }
virtual CRT::StripID doStripID(const CRT::ModuleID module, const size_t channel) const =0
uint8_t channel
Definition: CRTFragment.hh:201
CRT::ModuleID ModuleID(const size_t module) const
Definition: Geometry.cpp:10

The documentation for this class was generated from the following files: