FairRoot/PandaRoot
PndEmcDigiCaloDraw.cxx
Go to the documentation of this file.
1 // -------------------------------------------------------------------------
2 // ----- FairTPCRecoPointDraw source file -----
3 // ----- Created 03/01/08 by M. Al-Turany -----
4 // -------------------------------------------------------------------------
5 
6 #include "PndEmcDigiCaloDraw.h"
7 #include "PndEmcDigi.h"
8 #include <iostream>
9 
10 // -------------------------------------------------------------------------
11 
12 TVector3 PndEmcDigiCaloDraw::GetVector(TObject* obj)
13 {
14  PndEmcDigi* digi = (PndEmcDigi*)obj;
15  TVector3 pos = digi->where();
16  return pos;
17 }
18 
20 {
21  PndEmcDigi* digi = (PndEmcDigi*)obj;
22  return (digi->GetEnergy()); //< Energy in GeV
23 }
24 
25 
virtual Double_t GetEnergy(TObject *obj)
TVector3 pos
TClonesArray * digi
virtual Double_t GetEnergy() const
Definition: PndEmcDigi.cxx:296
represents the reconstructed hit of one emc crystal
Definition: PndEmcDigi.h:40
Double_t
ClassImp(PndAnaContFact)
virtual TVector3 GetVector(TObject *obj)
const TVector3 & where() const
Definition: PndEmcDigi.h:111