FairRoot/PandaRoot
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 
13 {
14  PndEmcHit* hit = (PndEmcHit*)obj;
15  TVector3 pos;
16  hit->Position(pos);
17  return pos;
18 }
19 
21 {
22  PndEmcHit* hit = (PndEmcHit*)obj;
23  return (hit->GetEnergy()); //< Energy in GeV
24 }
25 
26 
TVector3 pos
virtual Double_t GetEnergy(TObject *obj)
Double_t
virtual Double_t GetEnergy() const
Definition: PndEmcHit.h:54
represents the deposited energy of one emc crystal from simulation
Definition: PndEmcHit.h:26
int hit(Int_t nEvents=0, TString inFile="sim.root", TString parFile="par.root", TString inDigi="digi.root", TString outFile="hit.root", Int_t timeBased=0)
Definition: hit.C:1
virtual TVector3 GetVector(TObject *obj)
ClassImp(PndAnaContFact)
PndAnaPidSelector *& obj