CbmRoot
Loading...
Searching...
No Matches
LitScalPixelHit.h
Go to the documentation of this file.
1/* Copyright (C) 2009-2013 GSI/JINR-LIT, Darmstadt/Dubna
2 SPDX-License-Identifier: GPL-3.0-only
3 Authors: Andrey Lebedev [committer] */
4
12#ifndef LITSCALPIXELHIT_H_
13#define LITSCALPIXELHIT_H_
14
15#include "LitTypes.h"
16
17#include <sstream>
18#include <string>
19using std::ostream;
20using std::string;
21using std::stringstream;
22
23namespace lit
24{
25 namespace parallel
26 {
27
38 public:
42 LitScalPixelHit() : X(0.), Y(0.), Dx(0.), Dy(0.), Dxy(0.), stationId(0), refId(0), Z(0.) {}
43
47 virtual ~LitScalPixelHit() {}
48
53 string ToString() const
54 {
55 stringstream ss;
56 ss << "LitScalPixelHit: X=" << X << " Y=" << Y << " Dx=" << Dx << " Dy=" << Dy << " Dxy=" << Dxy
57 << " planeId=" << (int) stationId << " refId=" << refId << " Z=" << Z << "\n";
58 return ss.str();
59 }
60
65 friend ostream& operator<<(ostream& strm, const LitScalPixelHit& hit)
66 {
67 strm << hit.ToString();
68 return strm;
69 }
70
71 public:
72 fscal X, Y; // X and Y position measurements [cm]
73 fscal Dx, Dy; // X and Y position error [cm]
74 fscal Dxy; // Covariance between X and Y [cm]
75 unsigned char stationId; // Detector station ID
76 unsigned short refId; // Reference id to smth
77 fscal Z; // Z position [cm]
78 };
79
80 } // namespace parallel
81} // namespace lit
82#endif /* LITSCALPIXELHIT_H_ */
Header files for SSE operations.
Base class for scalar pixel hits.
string ToString() const
Returns string representation of the class.
friend ostream & operator<<(ostream &strm, const LitScalPixelHit &hit)
Operator << for convenient output to ostream.
virtual ~LitScalPixelHit()
Destructor.