Belle II Software development
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
13using namespace Belle2;
14// using namespace Belle2::Tracking;
15using boost::lexical_cast;
16
17
20{
21 std::string output = lexical_cast<std::string>(m_hitPos.X()) + " " + lexical_cast<std::string>
22 (m_hitPos.Y()) + " " + lexical_cast<std::string>
23 (m_hitPos.Z()) + "\n";
24 return output;
25}
26
27
29{
30 std::string output = lexical_cast<std::string>(getParticleID()) + " " + lexical_cast<std::string>(float(m_hitPos.X())) + " " +
31 lexical_cast<std::string>(float(m_hitPos.Y())) + " " + lexical_cast<std::string>(float(m_hitPos.Z())) + " " +
32 lexical_cast<std::string>(FullSecID(
33 m_sectorID)) + "\n";
34 return output;
35}
36
37
40{
41 std::string output = lexical_cast<std::string>(m_covVal.X()) + " " + lexical_cast<std::string>
42 (m_covVal.Y()) + " " + lexical_cast<std::string>
43 (m_covVal.Z()) + "\n";
44 return output;
45}
46
47
50{
51 std::string output = lexical_cast<std::string>(m_layerID) + " " + lexical_cast<std::string>(m_hitID) + " " +
52 lexical_cast<std::string>
53 (m_sensorAngle) + "\n";
54 return output;
55}
DataType Z() const
access variable Z (= .at(2) without boundary check)
Definition: B2Vector3.h:435
DataType X() const
access variable X (= .at(0) without boundary check)
Definition: B2Vector3.h:431
DataType Y() const
access variable Y (= .at(1) without boundary check)
Definition: B2Vector3.h:433
std::string getPositionFormatted()
Output of position in a string file: it is a line with Xpos[empty space]Ypos[empty space]Zpos.
int m_hitID
an event wise unique ID for the hit, which is a modified index number of truehit attached to this hit...
double m_sensorAngle
the angle between the orthogonal vector of the sensor plane of the hit and the x-axis.
int m_layerID
layerID, for PXD, this is normally 1 or 2, for SVD its typically 3-6
std::string getSimpleHitFormatted()
Output of simple hit info in a string file:
uInt m_sectorID
stores the sector ID on current sensor for current hit
B2Vector3D m_covVal
carries relevant values of the covariance matrix for the hit.
std::string getAdditionalInfoFormatted()
Output of additional information in a string file: it is a line with layerID[empty space]hitID[empty ...
int getParticleID() const
returns particleID of linked particle for recognition.
std::string getCovValuesFormatted()
Output of covValues in a string file: it is a line with CovUU[empty space]CovUV[empty space]CovVV.
B2Vector3D m_hitPos
global coordinates of hit
Class to identify a sector inside of the VXD.
Definition: FullSecID.h:33
Abstract base class for different kinds of events.