10 #include <tracking/svdROIFinder/SVDROIGeometry.h>
11 #include <framework/logging/Logger.h>
12 #include <vxd/geometry/GeoCache.h>
13 #include <vxd/geometry/SensorInfoBase.h>
38 std::set<Belle2::VxdID>::iterator itSvdLayers = svdLayers.begin();
42 while ((itSvdLayers != svdLayers.end()) && (itSvdLayers->getLayerNumber() != 7)) {
44 std::set<Belle2::VxdID> svdLadders = geoCache.getLadders(*itSvdLayers);
45 std::set<Belle2::VxdID>::iterator itSvdLadders = svdLadders.begin();
47 while (itSvdLadders != svdLadders.end()) {
49 std::set<Belle2::VxdID> svdSensors = geoCache.getSensors(*itSvdLadders);
50 std::set<Belle2::VxdID>::iterator itSvdSensors = svdSensors.begin();
52 while (itSvdSensors != svdSensors.end()) {
53 B2DEBUG(20,
" svd sensor info " << *itSvdSensors);
55 ROIDetPlane plane(*itSvdSensors, toleranceZ, tolerancePhi);
57 plane.setSharedPlanePtr(sharedPlane);
68 B2DEBUG(20,
"just filled the plane list with " <<
m_planeList.size() <<
"planes");
77 std::list<ROIDetPlane>::iterator itPlanes =
m_planeList.begin();
79 B2DEBUG(20,
" ..-append Planes, checking " <<
m_planeList.size() <<
" planes");
83 if (itPlanes->isSensorInRange(recoTrackPosition, layer))
84 selectedPlanes->push_back(*itPlanes);
90 B2DEBUG(20,
" ..--list of sensor IDs of the selected planes for this track:");
91 itPlanes = selectedPlanes->begin();
92 while (itPlanes != selectedPlanes->end()) {
93 B2DEBUG(20,
" " << (itPlanes->getVxdID()));
ROIDetPlane describes the plane containing a sensor.
void appendSelectedPlanes(std::list< ROIDetPlane > *selectedPlanes, ROOT::Math::XYZVector recoTrackPosition, int layer)
appends the interesting planes
SVDROIGeometry()
Constructor.
void fillPlaneList(double toleranceZ, double tolerancePhi)
fill the list of planes
~SVDROIGeometry()
Destructor.
std::list< ROIDetPlane > m_planeList
list of planes
Class to faciliate easy access to sensor information of the VXD like coordinate transformations or pi...
static GeoCache & getInstance()
Return a reference to the singleton instance.
Abstract base class for different kinds of events.
std::shared_ptr< genfit::DetPlane > SharedPlanePtr
Shared Pointer to a DetPlane.