Belle II Software  release-05-02-19
SecMapTrainerHit.h
1 /**************************************************************************
2  * BASF2 (Belle Analysis Framework 2) *
3  * Copyright(C) 2013 - Belle II Collaboration *
4  * *
5  * Author: The Belle II Collaboration *
6  * Contributors: Jakob Lettenbichler (jakob.lettenbichler@oeaw.ac.at) *
7  * *
8  * This software is provided "as is" without any warranty. *
9  **************************************************************************/
10 
11 #pragma once
12 
13 #include <tracking/dataobjects/FullSecID.h>
14 #include <tracking/spacePointCreation/SpacePoint.h>
15 
16 #include <vector>
17 #include <utility> // std::pair
18 
19 
20 namespace Belle2 {
27  class SecMapTrainerHit: public SpacePoint {
28  public:
30  SecMapTrainerHit(const FullSecID& fullSecID, const SpacePoint& sp):
31  SpacePoint(sp),
32  m_secID(fullSecID) {}
33 
35  SecMapTrainerHit(const FullSecID& fullSecID, const B2Vector3<double>& position):
36  SpacePoint(position, B2Vector3<double> (0., 0., 0.),
37  std::pair<double, double> (0., 0.),
38  std::pair<bool, bool>() , VxdID(),
39  Belle2::VXD::SensorInfoBase::SensorType()),
40  m_secID(fullSecID) {}
41 
43  SecMapTrainerHit(double x, double y, double z):
44  SpacePoint(B2Vector3<double> (x, y, z),
45  B2Vector3<double> (0., 0., 0.),
46  std::pair<double, double> (0., 0.),
47  std::pair<bool, bool>() , VxdID(),
48  Belle2::VXD::SensorInfoBase::SensorType()),
49  m_secID() {}
50 
52  // B2Vector3D getHitPosition() const { return m_hitPos; }
53 
55  // double X() const { return m_hitPos.X(); }
56 
58  // double Y() const { return m_hitPos.Y(); }
59 
61  // double Z() const { return m_hitPos.Z(); }
62 
64  std::string getSectorIDString() const { return m_secID.getFullSecString(); }
65 
67  FullSecID getSectorID() const { return m_secID; }
68 
69  protected:
70  FullSecID m_secID;
71  // B2Vector3D m_hitPos; /**< global hit position. */
72  };
74 }
75 
Belle2::SecMapTrainerHit::getSectorID
FullSecID getSectorID() const
returns secID of sector containing this hit.
Definition: SecMapTrainerHit.h:75
Belle2::VxdID
Class to uniquely identify a any structure of the PXD and SVD.
Definition: VxdID.h:43
Belle2::SecMapTrainerHit::SecMapTrainerHit
SecMapTrainerHit(const FullSecID &fullSecID, const B2Vector3< double > &position)
constructor needed for the Virtual IP
Definition: SecMapTrainerHit.h:43
Belle2::SpacePoint
SpacePoint typically is build from 1 PXDCluster or 1-2 SVDClusters.
Definition: SpacePoint.h:52
Belle2::B2Vector3< double >
Belle2::SecMapTrainerHit::getSectorIDString
std::string getSectorIDString() const
returns global hit position of current hit.
Definition: SecMapTrainerHit.h:72
Belle2::FullSecID
Class to identify a sector inside of the VXD.
Definition: FullSecID.h:43
Belle2
Abstract base class for different kinds of events.
Definition: MillepedeAlgorithm.h:19
Belle2::SecMapTrainerHit::SecMapTrainerHit
SecMapTrainerHit(const FullSecID &fullSecID, const SpacePoint &sp)
Constructor of class SecMapTrainerHit.
Definition: SecMapTrainerHit.h:38
Belle2::SecMapTrainerHit::m_secID
FullSecID m_secID
ID of sector containing this hit.
Definition: SecMapTrainerHit.h:78
Belle2::FullSecID::getFullSecString
std::string getFullSecString() const
returns the FullSecID coded as string compatible to secIDs stored in the xml-sectormaps
Definition: FullSecID.cc:119
Belle2::SpacePoint::SpacePoint
SpacePoint()
Default constructor for the ROOT IO.
Definition: SpacePoint.h:73