Geometry
TrackerNumberingBuilder
plugins
CmsTrackerDetIdBuilder.h
Go to the documentation of this file.
1
#ifndef Geometry_TrackerNumberingBuilder_CmsTrackerDetIdBuilder_H
2
#define Geometry_TrackerNumberingBuilder_CmsTrackerDetIdBuilder_H
3
4
#include "
FWCore/ParameterSet/interface/types.h
"
5
#include <ostream>
6
#include <vector>
7
#include <array>
8
9
class
GeometricDet
;
10
15
class
CmsTrackerDetIdBuilder
{
16
public
:
17
CmsTrackerDetIdBuilder
(
const
std::vector<int> &detidShifts);
18
void
buildId
(
GeometricDet
&det);
19
20
private
:
21
void
iterate
(
GeometricDet
&det,
int
level
,
unsigned
int
ID
);
22
static
const
unsigned
int
nSubDet
= 6;
23
static
const
int
maxLevels
= 6;
24
25
// This is the map between detid and navtype to restore backward compatibility between 12* and 13* series
26
std::map<std::string, uint32_t>
m_mapNavTypeToDetId
;
27
std::array<int, nSubDet * maxLevels>
m_detidshifts
;
28
};
29
30
#endif
personalPlayback.level
level
Definition:
personalPlayback.py:22
CmsTrackerDetIdBuilder::m_mapNavTypeToDetId
std::map< std::string, uint32_t > m_mapNavTypeToDetId
Definition:
CmsTrackerDetIdBuilder.h:26
types.h
CmsTrackerDetIdBuilder::m_detidshifts
std::array< int, nSubDet *maxLevels > m_detidshifts
Definition:
CmsTrackerDetIdBuilder.h:27
GeometricDet
Definition:
GeometricDet.h:30
CmsTrackerDetIdBuilder::CmsTrackerDetIdBuilder
CmsTrackerDetIdBuilder(const std::vector< int > &detidShifts)
Definition:
CmsTrackerDetIdBuilder.cc:13
align::ID
uint32_t ID
Definition:
Definitions.h:24
CmsTrackerDetIdBuilder::nSubDet
static const unsigned int nSubDet
Definition:
CmsTrackerDetIdBuilder.h:22
CmsTrackerDetIdBuilder::maxLevels
static const int maxLevels
Definition:
CmsTrackerDetIdBuilder.h:23
CmsTrackerDetIdBuilder
Definition:
CmsTrackerDetIdBuilder.h:15
CmsTrackerDetIdBuilder::iterate
void iterate(GeometricDet &det, int level, unsigned int ID)
Definition:
CmsTrackerDetIdBuilder.cc:32
CmsTrackerDetIdBuilder::buildId
void buildId(GeometricDet &det)
Definition:
CmsTrackerDetIdBuilder.cc:24
Generated for CMSSW Reference Manual by
1.8.16