CbmRoot
Loading...
Searching...
No Matches
LitScalStripHit.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 LITSCALSTRIPHIT_H_
13#define LITSCALSTRIPHIT_H_
14
15#include <sstream>
16#include <string>
17using std::ostream;
18using std::string;
19using std::stringstream;
20
31 public:
35 LitScalStripHit() : phiCos(0.), phiSin(0.), U(0.), Du(0.), stationId(0), refId(0), Z(0.) {}
36
40 virtual ~LitScalStripHit() {}
41
46 string ToString() const
47 {
48 stringstream ss;
49 ss << "LitScalStripHit: phiCos=" << phiCos << " phiSin=" << phiSin << " U=" << U << " Du=" << Du
50 << " planeId=" << (int) stationId << " refId=" << refId << " Z=" << Z << "\n";
51 return ss.str();
52 }
53
58 friend ostream& operator<<(ostream& strm, const LitScalStripHit& hit)
59 {
60 strm << hit.ToString();
61 return strm;
62 }
63
64 public:
65 fscal phiCos; // Cosine of strip rotation angle
66 fscal phiSin; // Sine of strip rotation angle
67 fscal U; // U measurement [cm]
68 fscal Du; // U measurement error [cm]
69 unsigned char stationId; // Detector station ID
70 unsigned short refId; // Reference id to smth
71 fscal Z; // Z position [cm]
72};
73
74#endif /* LITSCALSTRIPHIT_H_ */
Base class for scalar strip hits.
unsigned char stationId
LitScalStripHit()
Constructor.
unsigned short refId
friend ostream & operator<<(ostream &strm, const LitScalStripHit &hit)
Operator << for convenient output to ostream.
string ToString() const
Returns string representation of the class.
virtual ~LitScalStripHit()
Destructor.