CMS 3D CMS Logo

CmsTrackerLevelBuilder.h
Go to the documentation of this file.
1 #ifndef Geometry_TrackerNumberingBuilder_CmsTrackerLevelBuilder_H
2 #define Geometry_TrackerNumberingBuilder_CmsTrackerLevelBuilder_H
3 
7 #include <string>
8 
9 class GeometricDet;
10 
12 public:
13  static bool subDetByType(const GeometricDet* a, const GeometricDet* b);
14  static bool phiSortNP(const GeometricDet* a, const GeometricDet* b); // NP** Phase2 BarrelEndcap
15  static bool isLessZ(const GeometricDet* a, const GeometricDet* b);
16  static bool isLessModZ(const GeometricDet* a, const GeometricDet* b);
17  static double getPhi(const GeometricDet* a);
18  static double getPhiModule(const GeometricDet* a);
19  static double getPhiGluedModule(const GeometricDet* a);
20  static double getPhiMirror(const GeometricDet* a);
21  static double getPhiModuleMirror(const GeometricDet* a);
22  static double getPhiGluedModuleMirror(const GeometricDet* a);
23  static bool isLessRModule(const GeometricDet* a, const GeometricDet* b);
24  static bool isLessR(const GeometricDet* a, const GeometricDet* b);
25 };
26 
30 template <class FilteredView>
32 public:
33  void build(FilteredView&, GeometricDet*, const std::string&) override;
35 
36 private:
37  virtual void buildComponent(FilteredView&, GeometricDet*, const std::string&) = 0;
38 
39 protected:
41 
42 private:
43  virtual void sortNS(FilteredView&, GeometricDet*) {}
45 };
46 
47 #endif
CmsTrackerLevelBuilder
Definition: CmsTrackerLevelBuilder.h:31
CmsTrackerLevelBuilderHelper::getPhiModuleMirror
static double getPhiModuleMirror(const GeometricDet *a)
Definition: CmsTrackerLevelBuilder.cc:122
CmsTrackerLevelBuilder::sortNS
virtual void sortNS(FilteredView &, GeometricDet *)
Definition: CmsTrackerLevelBuilder.h:43
types.h
CmsTrackerStringToEnum
Definition: CmsTrackerStringToEnum.h:10
CmsTrackerLevelBuilderHelper::isLessZ
static bool isLessZ(const GeometricDet *a, const GeometricDet *b)
Definition: CmsTrackerLevelBuilder.cc:28
CmsTrackerLevelBuilderHelper::getPhiGluedModule
static double getPhiGluedModule(const GeometricDet *a)
Definition: CmsTrackerLevelBuilder.cc:81
CmsTrackerLevelBuilder::~CmsTrackerLevelBuilder
~CmsTrackerLevelBuilder() override
Definition: CmsTrackerLevelBuilder.h:34
CmsTrackerLevelBuilderHelper::getPhiModule
static double getPhiModule(const GeometricDet *a)
Definition: CmsTrackerLevelBuilder.cc:47
CmsTrackerAbstractConstruction
Definition: CmsTrackerAbstractConstruction.h:12
CmsTrackerLevelBuilderHelper::getPhi
static double getPhi(const GeometricDet *a)
Definition: CmsTrackerLevelBuilder.cc:42
CmsTrackerLevelBuilderHelper::isLessR
static bool isLessR(const GeometricDet *a, const GeometricDet *b)
Definition: CmsTrackerLevelBuilder.cc:138
CmsTrackerLevelBuilder::_CmsTrackerStringToEnum
CmsTrackerStringToEnum _CmsTrackerStringToEnum
Definition: CmsTrackerLevelBuilder.h:44
CmsTrackerAbstractConstruction.h
CmsTrackerLevelBuilderHelper::subDetByType
static bool subDetByType(const GeometricDet *a, const GeometricDet *b)
Definition: CmsTrackerLevelBuilder.cc:10
GeometricDet
Definition: GeometricDet.h:30
CmsTrackerStringToEnum.h
CmsTrackerLevelBuilderHelper::isLessModZ
static bool isLessModZ(const GeometricDet *a, const GeometricDet *b)
Definition: CmsTrackerLevelBuilder.cc:38
b
double b
Definition: hdecay.h:118
CmsTrackerLevelBuilderHelper::getPhiMirror
static double getPhiMirror(const GeometricDet *a)
Definition: CmsTrackerLevelBuilder.cc:116
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
CmsTrackerLevelBuilderHelper
Definition: CmsTrackerLevelBuilder.h:11
CmsTrackerLevelBuilderHelper::getPhiGluedModuleMirror
static double getPhiGluedModuleMirror(const GeometricDet *a)
Definition: CmsTrackerLevelBuilder.cc:128
a
double a
Definition: hdecay.h:119
CmsTrackerLevelBuilder::build
void build(FilteredView &, GeometricDet *, const std::string &) override
Definition: CmsTrackerLevelBuilder.cc:141
CmsTrackerLevelBuilder::buildComponent
virtual void buildComponent(FilteredView &, GeometricDet *, const std::string &)=0
CmsTrackerLevelBuilderHelper::isLessRModule
static bool isLessRModule(const GeometricDet *a, const GeometricDet *b)
Definition: CmsTrackerLevelBuilder.cc:134
CmsTrackerLevelBuilder::theCmsTrackerStringToEnum
CmsTrackerStringToEnum theCmsTrackerStringToEnum
Definition: CmsTrackerLevelBuilder.h:40
CmsTrackerLevelBuilderHelper::phiSortNP
static bool phiSortNP(const GeometricDet *a, const GeometricDet *b)
Definition: CmsTrackerLevelBuilder.cc:18