Belle II Software development
ROIGeometry Class Reference

This class appends the VXDIntercept infos of a track to the list of intercepts. More...

#include <ROIGeometry.h>

Public Member Functions

 ROIGeometry ()
 Constructor.
 
 ~ROIGeometry ()
 Destructor.
 
void fillPlaneList (double toleranceZ, double tolerancePhi, const VXD::SensorInfoBase::SensorType det)
 fill the list of planes
 
void appendSelectedPlanes (std::list< ROIDetPlane > *selectedPlanes, ROOT::Math::XYZVector recoTrackPosition, int layer)
 Append to selectedPlanes those in the internal list for which a sensor is near the RecoTrack position.
 

Public Attributes

std::list< ROIDetPlanem_planeList
 list of planes
 

Detailed Description

This class appends the VXDIntercept infos of a track to the list of intercepts.

Definition at line 24 of file ROIGeometry.h.

Constructor & Destructor Documentation

◆ ROIGeometry()

Constructor.

Definition at line 20 of file ROIGeometry.cc.

21{
22
23}

◆ ~ROIGeometry()

Destructor.

Definition at line 25 of file ROIGeometry.cc.

26{
27
28}

Member Function Documentation

◆ appendSelectedPlanes()

void appendSelectedPlanes ( std::list< ROIDetPlane > *  selectedPlanes,
ROOT::Math::XYZVector  recoTrackPosition,
int  layer 
)

Append to selectedPlanes those in the internal list for which a sensor is near the RecoTrack position.

Definition at line 72 of file ROIGeometry.cc.

73{
74
75
76 std::list<ROIDetPlane>::iterator itPlanes = m_planeList.begin();
77
78 B2DEBUG(20, "append Planes, checking " << m_planeList.size() << " planes");
79
80 while (itPlanes != m_planeList.end()) {
81
82 if (itPlanes->isSensorInRange(recoTrackPosition, layer))
83 selectedPlanes->push_back(*itPlanes);
84
85 ++itPlanes;
86
87 }
88
89 B2DEBUG(20, " list of sensor IDs of the selected planes for this track:");
90 itPlanes = selectedPlanes->begin();
91 while (itPlanes != selectedPlanes->end()) {
92 B2DEBUG(20, " " << (itPlanes->getVxdID()));
93 ++itPlanes;
94 }
95
96}
std::list< ROIDetPlane > m_planeList
list of planes
Definition: ROIGeometry.h:35

◆ fillPlaneList()

void fillPlaneList ( double  toleranceZ,
double  tolerancePhi,
const VXD::SensorInfoBase::SensorType  det 
)

fill the list of planes

Definition at line 32 of file ROIGeometry.cc.

33{
34
36
37 std::set<Belle2::VxdID> vxdLayers = geoCache.getLayers(det);
38 std::set<Belle2::VxdID>::iterator itVXDLayers = vxdLayers.begin();
39
40 while (itVXDLayers != vxdLayers.end()) {
41
42 std::set<Belle2::VxdID> vxdLadders = geoCache.getLadders(*itVXDLayers);
43 std::set<Belle2::VxdID>::iterator itVXDLadders = vxdLadders.begin();
44
45 while (itVXDLadders != vxdLadders.end()) {
46
47 std::set<Belle2::VxdID> vxdSensors = geoCache.getSensors(*itVXDLadders);
48 std::set<Belle2::VxdID>::iterator itVXDSensors = vxdSensors.begin();
49 B2DEBUG(20, " vxd sensor info " << * (vxdSensors.begin()));
50
51 while (itVXDSensors != vxdSensors.end()) {
52 B2DEBUG(20, " vxd sensor info " << *itVXDSensors);
53
54 ROIDetPlane plane(*itVXDSensors, toleranceZ, tolerancePhi);
55 genfit::SharedPlanePtr sharedPlane(new ROIDetPlane(plane));
56 plane.setSharedPlanePtr(sharedPlane);
57
58 m_planeList.push_back(plane);
59
60 ++itVXDSensors;
61 }
62 ++itVXDLadders;
63 }
64 ++itVXDLayers;
65 }
66
67 B2DEBUG(20, "just filled the plane list with " << m_planeList.size() << "planes");
68};
ROIDetPlane describes the plane containing a sensor.
Definition: ROIDetPlane.h:26
Class to faciliate easy access to sensor information of the VXD like coordinate transformations or pi...
Definition: GeoCache.h:39
static GeoCache & getInstance()
Return a reference to the singleton instance.
Definition: GeoCache.cc:214

Member Data Documentation

◆ m_planeList

std::list<ROIDetPlane> m_planeList

list of planes

Definition at line 35 of file ROIGeometry.h.


The documentation for this class was generated from the following files: