/
githubmirror
/
cmssw
Обзор
Документация
Войти
/
githubmirror
/
cmssw
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
RecoTracker/TkDetLayers/src/PixelRodBuilder.cc
24 строки
1000 B
Adinda de Wit
Adding IT barrel layer 1 with two sensors per module
08 июн 2023, 22:06
08 июн 2023, 22:06
5af9d66
Код
Авторство
О чём код?
#include "PixelRodBuilder.h" using namespace edm; using namespace std; PixelRod* PixelRodBuilder::build(const GeometricDet* aRod, const TrackerGeometry* theGeomDetGeometry) { vector<const GeometricDet*> allGeometricDets = aRod->components(); vector<const GeomDet*> theGeomDets; vector<const GeometricDet*> compGeometricDets; for (auto& it : allGeometricDets) { compGeometricDets = it->components(); if (it->type() == GeometricDet::ITPhase2Combined) { const GeomDet* theGeomDet = theGeomDetGeometry->idToDet(compGeometricDets[0]->geographicalId()); theGeomDets.push_back(theGeomDet); const GeomDet* theGeomDetBrother = theGeomDetGeometry->idToDet(compGeometricDets[1]->geographicalId()); theGeomDets.push_back(theGeomDetBrother); } else if (it->type() == GeometricDet::DetUnit) { const GeomDet* theGeomDet = theGeomDetGeometry->idToDet(it->geographicalId()); theGeomDets.push_back(theGeomDet); } } return new PixelRod(theGeomDets); }