Belle II Software  release-06-02-00
ROIDetPlane.h
1 /**************************************************************************
2  * basf2 (Belle II Analysis Software Framework) *
3  * Author: The Belle II Collaboration *
4  * *
5  * See git log for contributors and copyright holders. *
6  * This file is licensed under LGPL-3.0, see LICENSE.md. *
7  **************************************************************************/
8 
9 #pragma once
10 
11 #include <vxd/dataobjects/VxdID.h>
12 
13 #include <genfit/DetPlane.h>
14 #include <genfit/SharedPlanePtr.h>
15 
16 #include <TVector3.h>
17 
18 namespace Belle2 {
26  class ROIDetPlane : public genfit::DetPlane {
27 
28  public:
29 
30  // TODO: Using u and v tolerances seems to be more "natural", or use theta and phi so its consistent for u and v direction
31  ROIDetPlane(const VxdID& vxdID, double toleranceZ, double tolerancePhi);
33  explicit ROIDetPlane(const VxdID& vxdID);
35  // Needed by root. Dont use!
36  ROIDetPlane() = default;
37 
38 
40  VxdID getVxdID() {return m_vxdID;};
41 
43  bool isSensorInRange(const TVector3& trackPosition, int layer);
44 
49 
50  private:
54  TVector3 m_orthoVec_upper;
55  TVector3 m_orthoVec_lower;
57  double m_sensorZMin = 0;
58  double m_sensorZMax = 0;
60  int m_layer = 0;
65  };
67 }
ROIDetPlane describes the plane containing a sensor.
Definition: ROIDetPlane.h:26
double m_sensorZMax
max of allowed global z range
Definition: ROIDetPlane.h:58
genfit::SharedPlanePtr getSharedPlanePtr()
return the shared-plane pointer
Definition: ROIDetPlane.h:48
genfit::SharedPlanePtr m_sharedPlanePtr
the shared plane pointer
Definition: ROIDetPlane.h:63
TVector3 m_orthoVec_lower
vector normal to the vector from 0,0,0 to a point on the lower edge of the sensor in x-y-plane
Definition: ROIDetPlane.h:55
VxdID getVxdID()
return the sensor ID
Definition: ROIDetPlane.h:40
void setSharedPlanePtr(genfit::SharedPlanePtr spp)
assign the shared-plane pointer
Definition: ROIDetPlane.h:46
bool isSensorInRange(const TVector3 &trackPosition, int layer)
determine if the sensor is in range
Definition: ROIDetPlane.cc:74
double m_sensorZMin
min of allowed global z range
Definition: ROIDetPlane.h:57
TVector3 m_orthoVec_upper
these two vectors define the planes going through the upper and lower edge of the sensor
Definition: ROIDetPlane.h:54
VxdID m_vxdID
the sensor ID
Definition: ROIDetPlane.h:48
int m_layer
layer number
Definition: ROIDetPlane.h:60
Class to uniquely identify a any structure of the PXD and SVD.
Definition: VxdID.h:33
Detector plane.
Definition: DetPlane.h:59
Abstract base class for different kinds of events.
std::shared_ptr< genfit::DetPlane > SharedPlanePtr
Shared Pointer to a DetPlane.