CbmRoot
LitScalStripHit.h
Go to the documentation of this file.
1 
8 #ifndef LITSCALSTRIPHIT_H_
9 #define LITSCALSTRIPHIT_H_
10 
11 #include <sstream>
12 #include <string>
13 using std::ostream;
14 using std::string;
15 using std::stringstream;
16 
27 public:
32  : phiCos(0.), phiSin(0.), U(0.), Du(0.), stationId(0), refId(0), Z(0.) {}
33 
37  virtual ~LitScalStripHit() {}
38 
43  string ToString() const {
44  stringstream ss;
45  ss << "LitScalStripHit: phiCos=" << phiCos << " phiSin=" << phiSin
46  << " U=" << U << " Du=" << Du << " planeId=" << (int) stationId
47  << " refId=" << refId << " Z=" << Z << "\n";
48  return ss.str();
49  }
50 
55  friend ostream& operator<<(ostream& strm, const LitScalStripHit& hit) {
56  strm << hit.ToString();
57  return strm;
58  }
59 
60 public:
61  fscal phiCos; // Cosine of strip rotation angle
62  fscal phiSin; // Sine of strip rotation angle
63  fscal U; // U measurement [cm]
64  fscal Du; // U measurement error [cm]
65  unsigned char stationId; // Detector station ID
66  unsigned short refId; // Reference id to smth
67  fscal Z; // Z position [cm]
68 };
69 
70 #endif /* LITSCALSTRIPHIT_H_ */
fscal
float fscal
Definition: L1/vectors/P4_F32vec4.h:250
LitScalStripHit::U
fscal U
Definition: LitScalStripHit.h:63
LitScalStripHit::operator<<
friend ostream & operator<<(ostream &strm, const LitScalStripHit &hit)
Operator << for convenient output to ostream.
Definition: LitScalStripHit.h:55
LitScalStripHit
Base class for scalar strip hits.
Definition: LitScalStripHit.h:26
LitScalStripHit::refId
unsigned short refId
Definition: LitScalStripHit.h:66
LitScalStripHit::ToString
string ToString() const
Returns string representation of the class.
Definition: LitScalStripHit.h:43
LitScalStripHit::LitScalStripHit
LitScalStripHit()
Constructor.
Definition: LitScalStripHit.h:31
LitScalStripHit::phiSin
fscal phiSin
Definition: LitScalStripHit.h:62
LitScalStripHit::stationId
unsigned char stationId
Definition: LitScalStripHit.h:65
LitScalStripHit::phiCos
fscal phiCos
Definition: LitScalStripHit.h:61
LitScalStripHit::Z
fscal Z
Definition: LitScalStripHit.h:67
LitScalStripHit::~LitScalStripHit
virtual ~LitScalStripHit()
Destructor.
Definition: LitScalStripHit.h:37
LitScalStripHit::Du
fscal Du
Definition: LitScalStripHit.h:64