StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
StGmtHit.cxx
1 
12 // C++ headers
13 #include <cmath>
14 
15 // StEvent headers
16 #include "StGmtHit.h"
17 
18 //________________
19 StGmtHit::StGmtHit( Int_t key, Int_t module, Float_t adcX,
20  Float_t adcY, Float_t dadcX, Float_t dadcY,
21  Float_t localX, Float_t localY,
22  Float_t localXErr, Float_t localYErr,
23  Float_t sigmaX, Float_t sigmaY,
24  Float_t sigmaXErr, Float_t sigmaYErr) :
25  StHit( StThreeVectorF(localX,localY,0), StThreeVectorF(localXErr,localYErr,0),
26  module+1, 0.), mKey(key), mAdcX(adcX), mAdcY(adcY), mdAdcX(dadcX),
27  mdAdcY(dadcY), mSigmaX(sigmaX), mErrSigmaX(sigmaXErr), mSigmaY(sigmaY),
28  mErrSigmaY(sigmaYErr) {
29  /* empty */
30 }
31 
32 //________________
34  /* empty */
35 }
36 
37 //________________
38 ostream& operator<<(ostream& os, const StGmtHit& v) {
39  return os << Form("Gmt m %3i ",v.getModule())
40  << *((StHit *)&v)
41  << Form(" Adc X/Y %5.1f/%5.1f locX = %8.3f +/- %7.3f locY = %8.3f +/- %7.3f",
42  v.getAdcX(), v.getAdcY(), v.getLocalX(), v.getErrorLocalX(),
43  v.getLocalY(), v.getErrorLocalY());
44 }
45 
46 //________________
47 void StGmtHit::Print(Option_t *option) const {
48  std::cout << *this << std::endl;
49 }
50 
51 
Float_t getErrorLocalX() const
Local X coordinate error.
Definition: StGmtHit.h:60
Definition: StHit.h:125
Float_t getAdcX() const
ADC in X.
Definition: StGmtHit.h:50
Float_t getLocalX() const
Local X coordinate.
Definition: StGmtHit.h:58
Float_t getLocalY() const
Local Y coordinate.
Definition: StGmtHit.h:62
Int_t getModule() const
Module.
Definition: StGmtHit.h:48
Holds data for the hit in GMT.
Definition: StGmtHit.h:23
~StGmtHit()
Destructor.
Definition: StGmtHit.cxx:33
void Print(Option_t *option="") const
Print hit information (parameters)
Definition: StGmtHit.cxx:47
StGmtHit(Int_t key=-1, Int_t module=-1, Float_t adcX=0, Float_t adcY=0, Float_t dadcX=0, Float_t dadcY=0, Float_t localX=0, Float_t localY=0, Float_t localXErr=10000, Float_t localYErr=10000, Float_t sigmaX=0, Float_t sigmaY=0, Float_t sigmaXErr=10000, Float_t sigmaYErr=10000)
Constructor.
Definition: StGmtHit.cxx:19
Float_t getErrorLocalY() const
Local Y coordinate error.
Definition: StGmtHit.h:64
Float_t getAdcY() const
ADC in Y.
Definition: StGmtHit.h:54