FairRoot
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
FairHitPointSetDraw.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  * FairMCPointsDraw.cpp
10  *
11  * Created on: Apr 17, 2009
12  * Author: stockman
13  */
14 
15 #include "FairHitPointSetDraw.h"
16 
17 #include "FairHit.h" // for FairHit
18 
19 #include <TClonesArray.h>
20 #include <TObject.h>
21 #include <TVector3.h> // for TVector3
22 #include <fairlogger/Logger.h>
23 
25 {
26  // TODO Auto-generated constructor stub
27 }
28 
30 {
31  // TODO Auto-generated destructor stub
32 }
33 
34 TVector3 FairHitPointSetDraw::GetVector(TObject* obj)
35 {
36  FairHit* p = static_cast<FairHit*>(obj);
37  LOG(debug) << "-I- FairHitPointSetDraw::GetVector: " << p->GetX() << " " << p->GetY() << " " << p->GetZ();
38 
39  return TVector3(p->GetX(), p->GetY(), p->GetZ());
40 }
41 
Double_t GetZ() const
Definition: FairHit.h:50
ClassImp(FairEventBuilder)
Double_t GetX() const
Definition: FairHit.h:48
TVector3 GetVector(TObject *obj)
Double_t GetY() const
Definition: FairHit.h:49