FairRoot
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
FairHitDraw.cxx
Go to the documentation of this file.
1 /********************************************************************************
2  * Copyright (C) 2014 GSI Helmholtzzentrum fuer Schwerionenforschung GmbH *
3  * *
4  * This software is distributed under the terms of the *
5  * GNU Lesser General Public Licence (LGPL) version 3, *
6  * copied verbatim in the file "LICENSE" *
7  ********************************************************************************/
8 /*
9  * FairHitDraw.cpp
10  *
11  * Created on: Apr 16, 2009
12  * Author: stockman
13  */
14 
15 #include "FairHitDraw.h"
16 
17 #include "FairHit.h" // for FairHit
18 
19 class TObject;
20 
22 
23 FairHitDraw::FairHitDraw(const char* name, FairDataSourceI* dataSource, Int_t iVerbose)
24  : FairBoxSetDraw(name, dataSource, iVerbose)
25 {}
26 
27 FairHitDraw::FairHitDraw(const char* name, Int_t iVerbose)
28  : FairBoxSetDraw(name, iVerbose)
29 {}
30 
31 TVector3 FairHitDraw::GetVector(TObject* obj)
32 {
33  FairHit* hit = static_cast<FairHit*>(obj);
34  return TVector3(hit->GetX(), hit->GetY(), hit->GetZ());
35 }
36 
Double_t GetZ() const
Definition: FairHit.h:50
ClassImp(FairEventBuilder)
Double_t GetX() const
Definition: FairHit.h:48
Abstract interface class to handle different input data for event and timebased data.
TVector3 GetVector(TObject *obj)
Definition: FairHitDraw.cxx:31
Double_t GetY() const
Definition: FairHit.h:49