FairRoot/PandaRoot
Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
eventdisplay
PndEmcHitCaloDraw.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 "
PndEmcHitCaloDraw.h
"
7
#include "
PndEmcHit.h
"
8
#include <iostream>
9
10
// -------------------------------------------------------------------------
11
12
TVector3
PndEmcHitCaloDraw::GetVector
(TObject* obj)
13
{
14
PndEmcHit
*
hit
= (
PndEmcHit
*)obj;
15
TVector3
pos
;
16
hit->Position(pos);
17
return
pos
;
18
}
19
20
Double_t
PndEmcHitCaloDraw::GetEnergy
(TObject* obj)
21
{
22
PndEmcHit
*
hit
= (
PndEmcHit
*)obj;
23
return
(hit->
GetEnergy
());
//< Energy in GeV
24
}
25
26
27
ClassImp
(
PndEmcHitCaloDraw
)
pos
TVector3 pos
Definition:
GammaSpectraAnalysis.C:43
PndEmcHitCaloDraw.h
PndEmcHitCaloDraw::GetEnergy
virtual Double_t GetEnergy(TObject *obj)
Definition:
PndEmcHitCaloDraw.cxx:20
Double_t
Double_t
Definition:
SimCompleteLinkDef.h:6
PndEmcHit::GetEnergy
virtual Double_t GetEnergy() const
Definition:
PndEmcHit.h:54
PndEmcHit.h
PndEmcHit
represents the deposited energy of one emc crystal from simulation
Definition:
PndEmcHit.h:26
PndEmcHitCaloDraw
Definition:
PndEmcHitCaloDraw.h:21
PndEmcHitCaloDraw::GetVector
virtual TVector3 GetVector(TObject *obj)
Definition:
PndEmcHitCaloDraw.cxx:12
ClassImp
ClassImp(PndAnaContFact)
hit
PndSdsMCPoint * hit
Definition:
anasim.C:70
Generated on Wed Apr 3 2019 08:43:54 for FairRoot/PandaRoot by
1.8.5