Belle II Software  release-08-01-10
SecMapTrainerHit.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 <tracking/dataobjects/FullSecID.h>
12 #include <tracking/spacePointCreation/SpacePoint.h>
13 
14 #include <vector>
15 #include <utility> // std::pair
16 
17 
18 namespace Belle2 {
25  class SecMapTrainerHit: public SpacePoint {
26  public:
28  SecMapTrainerHit(const FullSecID& fullSecID, const SpacePoint& sp):
29  SpacePoint(sp),
30  m_secID(fullSecID) {}
31 
33  SecMapTrainerHit(const FullSecID& fullSecID, const B2Vector3<double>& position):
34  SpacePoint(position, B2Vector3<double> (0., 0., 0.),
35  std::pair<double, double> (0., 0.),
36  std::pair<bool, bool>(), VxdID(),
37  Belle2::VXD::SensorInfoBase::SensorType()),
38  m_secID(fullSecID) {}
39 
41  SecMapTrainerHit(double x, double y, double z):
42  SpacePoint(B2Vector3<double> (x, y, z),
43  B2Vector3<double> (0., 0., 0.),
44  std::pair<double, double> (0., 0.),
45  std::pair<bool, bool>(), VxdID(),
46  Belle2::VXD::SensorInfoBase::SensorType()),
47  m_secID() {}
48 
50  // B2Vector3D getHitPosition() const { return m_hitPos; }
51 
53  // double X() const { return m_hitPos.X(); }
54 
56  // double Y() const { return m_hitPos.Y(); }
57 
59  // double Z() const { return m_hitPos.Z(); }
60 
62  std::string getSectorIDString() const { return m_secID.getFullSecString(); }
63 
65  FullSecID getSectorID() const { return m_secID; }
66 
67  protected:
69  // B2Vector3D m_hitPos; /**< global hit position. */
70  };
72 }
73 
Class to identify a sector inside of the VXD.
Definition: FullSecID.h:33
std::string getFullSecString() const
returns the FullSecID coded as string compatible to secIDs stored in the xml-sectormaps
Definition: FullSecID.cc:116
simple Hit class used for sectorMap-training.
std::string getSectorIDString() const
returns global hit position of current hit.
FullSecID m_secID
ID of sector containing this hit.
SecMapTrainerHit(const FullSecID &fullSecID, const SpacePoint &sp)
Constructor of class SecMapTrainerHit.
SecMapTrainerHit(double x, double y, double z)
another constructor needed for the Virtual IP...
SecMapTrainerHit(const FullSecID &fullSecID, const B2Vector3< double > &position)
constructor needed for the Virtual IP
FullSecID getSectorID() const
returns secID of sector containing this hit.
SpacePoint typically is build from 1 PXDCluster or 1-2 SVDClusters.
Definition: SpacePoint.h:42
Class to uniquely identify a any structure of the PXD and SVD.
Definition: VxdID.h:33
Abstract base class for different kinds of events.