EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
FairTimeStampPointDraw.cxx
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file FairTimeStampPointDraw.cxx
1 /*
2  * FairTimeStampPointDraw.cxx
3  *
4  * Created on: Feb 28, 2011
5  * Author: stockman
6  */
7 
9 #include "FairMCPoint.h"
10 #include "FairTimeStamp.h"
11 
13 
15 {
16  // TODO Auto-generated constructor stub
17 
18 }
19 
20 
21 FairTimeStampPointDraw::FairTimeStampPointDraw(const char* name, Int_t iVerbose):FairBoxSetDraw(name, iVerbose)
22 {
23 }
24 
26 {
27  // TODO Auto-generated destructor stub
28 }
29 
31 {
32  FairMCPoint* hit =(FairMCPoint*)obj;
33  return TVector3(hit->GetX(), hit->GetY(), hit->GetZ());
34 }
35 
37 {
38  FairTimeStamp* tsdata = (FairTimeStamp*)obj;
39  if (tsdata > 0) {
40  return (Int_t)tsdata->GetTimeStamp();
41  } else {
42  return 0;
43  }
44 }