FairRoot/PandaRoot
PndEmcClusterDraw.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 "PndEmcClusterDraw.h"
7 #include "PndEmcCluster.h"
8 #include <iostream>
9 
10 // -------------------------------------------------------------------------
11 TVector3 PndEmcClusterDraw::GetVector(TObject* obj)
12 {
13  PndEmcCluster* Cluster = (PndEmcCluster*)obj;
14  return (Cluster->where());
15 }
16 
17 
18 Int_t PndEmcClusterDraw::GetValue(TObject* obj, Int_t ) // i //[R.K.03/2017] unused variable(s)
19 {
20  PndEmcCluster* Cluster = (PndEmcCluster*)obj;
21  return (Cluster->energy() * 1000); //< Energy in MeV
22 }
23 
24 
TVector3 where() const
a cluster (group of neighboring crystals) of hit emc crystals
Definition: PndEmcCluster.h:29
virtual Double_t energy() const
ClassImp(PndAnaContFact)
virtual TVector3 GetVector(TObject *obj)
virtual Int_t GetValue(TObject *obj, Int_t i)