EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
EicTrackingDigiHit.cxx
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file EicTrackingDigiHit.cxx
1 //
2 // AYK (ayk@bnl.gov), 2013/06/12
3 //
4 // Tracking digi hit class;
5 //
6 
7 #include <iostream>
8 
9 #include <TMath.h>
10 
11 #include "EicTrackingDigiHit.h"
12 
13 // ---------------------------------------------------------------------------------------
14 
16  unsigned kfNodeID, TVector3& global,
17  const TVector3& local, bool xy_mode) :
18  FairHit(point->GetDetectorID(), global, point->GetPointID()), mLocalCoord(local), mXYmode(xy_mode)
19 {
20  ResetVars();
21 
22  mKfNodeID = kfNodeID;
23  mMultiIndex = point->GetMultiIndex();
24 
25  SetLink(FairLink(cname + "MoCaPoint", point->GetPointID()));
26 } // EicTrackingDigiHit::EicTrackingDigiHit()
27 
28 // ---------------------------------------------------------------------------------------
29 #if _OLD_
31 {
32  TVector3 local;
33 
34  for(unsigned iq=0; iq<GetMdim(); iq++)
35  local[iq] = GetCoord(iq);
36 
37  return local;
38 } // EicTrackingDigiHit::GetLocalCoordinates()
39 #endif
40 // ---------------------------------------------------------------------------------------
41 
46