/
githubmirror
/
cmssw
Обзор
Документация
Войти
/
githubmirror
/
cmssw
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
TrackingTools/DetLayers/src/DetRodOneR.cc
45 строк
1 KB
Shahzad Malik Muzaffar
[RECONSTRUCTION] Drop Geometry/CommonDetUnit package
28 май 2026, 12:57
28 май 2026, 12:57
685f036
Код
Авторство
О чём код?
#include "TrackingTools/DetLayers/interface/DetRodOneR.h" #include "TrackingTools/TrajectoryState/interface/TrajectoryStateOnSurface.h" #include "TrackingTools/DetLayers/interface/RodPlaneBuilderFromDet.h" #include <Utilities/General/interface/precomputed_value_sort.h> #include <Geometry/CommonTopologies/interface/DetSorting.h> #include <algorithm> #include <cmath> using namespace std; DetRodOneR::~DetRodOneR() {} DetRodOneR::DetRodOneR(vector<const GeomDet*>::const_iterator first, vector<const GeomDet*>::const_iterator last) : DetRod(false), theDets(first, last) { initialize(); } DetRodOneR::DetRodOneR(const vector<const GeomDet*>& dets) : DetRod(false), theDets(dets) { initialize(); } void DetRodOneR::initialize() { // assume the dets ARE in a rod; // sort them in Z precomputed_value_sort(theDets.begin(), theDets.end(), geomsort::DetZ()); setPlane(RodPlaneBuilderFromDet()(theDets)); } // It needs that the basic component to have the compatible() method bool DetRodOneR::add(int idet, vector<DetWithState>& result, const TrajectoryStateOnSurface& startingState, const Propagator& prop, const MeasurementEstimator& est) const { pair<bool, TrajectoryStateOnSurface> compat = theCompatibilityChecker.isCompatible(theDets[idet], startingState, prop, est); if (compat.first) { result.push_back(DetWithState(theDets[idet], compat.second)); } return compat.first; }