Belle II Software  release-06-00-14
ExporterHitInfo.cc
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 #include "tracking/vxdCaTracking/ExporterHitInfo.h"
10 #include <boost/lexical_cast.hpp>
11 #include <tracking/dataobjects/FullSecID.h>
12 
13 using namespace std;
14 using namespace Belle2;
15 // using namespace Belle2::Tracking;
16 using boost::lexical_cast;
17 
18 
20 std::string ExporterHitInfo::getPositionFormatted()
21 {
22  string output = lexical_cast<string>(m_hitPos.X()) + " " + lexical_cast<string>(m_hitPos.Y()) + " " + lexical_cast<string>
23  (m_hitPos.Z()) + "\n";
24  return output;
25 }
26 
27 
28 std::string ExporterHitInfo::getSimpleHitFormatted()
29 {
30  string output = lexical_cast<string>(getParticleID()) + " " + lexical_cast<string>(float(m_hitPos.X())) + " " +
31  lexical_cast<string>(float(m_hitPos.Y())) + " " + lexical_cast<string>(float(m_hitPos.Z())) + " " + lexical_cast<string>(FullSecID(
32  m_sectorID)) + "\n";
33  return output;
34 }
35 
36 
38 std::string ExporterHitInfo::getCovValuesFormatted()
39 {
40  string output = lexical_cast<string>(m_covVal.X()) + " " + lexical_cast<string>(m_covVal.Y()) + " " + lexical_cast<string>
41  (m_covVal.Z()) + "\n";
42  return output;
43 }
44 
45 
47 std::string ExporterHitInfo::getAdditionalInfoFormatted()
48 {
49  string output = lexical_cast<string>(m_layerID) + " " + lexical_cast<string>(m_hitID) + " " + lexical_cast<string>
50  (m_sensorAngle) + "\n";
51  return output;
52 }
Class to identify a sector inside of the VXD.
Definition: FullSecID.h:33
Abstract base class for different kinds of events.