Belle II Software  release-05-01-25
ExporterHitInfo.cc
1 /**************************************************************************
2  * BASF2 (Belle Analysis Framework 2) *
3  * Copyright(C) 2010 - Belle II Collaboration *
4  * *
5  * Author: The Belle II Collaboration *
6  * Contributors: Jakob Lettenbichler *
7  * *
8  * This software is provided "as is" without any warranty. *
9  **************************************************************************/
10 
11 #include "tracking/vxdCaTracking/ExporterHitInfo.h"
12 #include <boost/lexical_cast.hpp>
13 #include <tracking/dataobjects/FullSecID.h>
14 
15 using namespace std;
16 using namespace Belle2;
17 // using namespace Belle2::Tracking;
18 using boost::lexical_cast;
19 
20 
22 std::string ExporterHitInfo::getPositionFormatted()
23 {
24  string output = lexical_cast<string>(m_hitPos.X()) + " " + lexical_cast<string>(m_hitPos.Y()) + " " + lexical_cast<string>
25  (m_hitPos.Z()) + "\n";
26  return output;
27 }
28 
29 
30 std::string ExporterHitInfo::getSimpleHitFormatted()
31 {
32  string output = lexical_cast<string>(getParticleID()) + " " + lexical_cast<string>(float(m_hitPos.X())) + " " +
33  lexical_cast<string>(float(m_hitPos.Y())) + " " + lexical_cast<string>(float(m_hitPos.Z())) + " " + lexical_cast<string>(FullSecID(
34  m_sectorID)) + "\n";
35  return output;
36 }
37 
38 
40 std::string ExporterHitInfo::getCovValuesFormatted()
41 {
42  string output = lexical_cast<string>(m_covVal.X()) + " " + lexical_cast<string>(m_covVal.Y()) + " " + lexical_cast<string>
43  (m_covVal.Z()) + "\n";
44  return output;
45 }
46 
47 
49 std::string ExporterHitInfo::getAdditionalInfoFormatted()
50 {
51  string output = lexical_cast<string>(m_layerID) + " " + lexical_cast<string>(m_hitID) + " " + lexical_cast<string>
52  (m_sensorAngle) + "\n";
53  return output;
54 }
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