#include <RecEmcHit.h>
Inheritance diagram for RecEmcHit:
Public Member Functions | |
virtual const CLID & | clID () const |
RecEmcHit () | |
RecEmcHit (const RecEmcID &CellId, const RecEmcEnergy &Energy, const RecEmcTime &Time) | |
~RecEmcHit () | |
bool | operator< (const RecEmcHit &aHit) const |
bool | operator> (const RecEmcHit &aHit) const |
RecEmcID | getCellId () const |
RecEmcEnergy | getEnergy () const |
RecEmcTime | getTime () const |
HepPoint3D | getCenter () const |
HepPoint3D | getFrontCenter () const |
RecEmcID | CellId (const RecEmcID &CellId) |
RecEmcEnergy | Energy (const RecEmcEnergy &Energy) |
RecEmcTime | Time (const RecEmcTime &Time) |
void | Assign (const RecEmcID &CellId, const RecEmcEnergy &Energy, const RecEmcTime &Time) |
void | Dump () const |
Static Public Member Functions | |
static const CLID & | classID () |
Protected Attributes | |
RecEmcID | fCellId |
RecEmcEnergy | fEnergy |
RecEmcTime | fTime |
Definition at line 19 of file RecEmcHit.h.
RecEmcHit::RecEmcHit | ( | ) |
Definition at line 14 of file RecEmcHit.cxx.
References Identifier::clear(), fCellId, fEnergy, and fTime.
RecEmcHit::RecEmcHit | ( | const RecEmcID & | CellId, | |
const RecEmcEnergy & | Energy, | |||
const RecEmcTime & | Time | |||
) |
RecEmcHit::~RecEmcHit | ( | ) |
void RecEmcHit::Assign | ( | const RecEmcID & | CellId, | |
const RecEmcEnergy & | Energy, | |||
const RecEmcTime & | Time | |||
) |
Definition at line 81 of file RecEmcHit.cxx.
References fCellId.
Referenced by Assign(), EmcRecDigit2Hit::Convert(), and RecEmcHit().
static const CLID& RecEmcHit::classID | ( | ) | [inline, static] |
Definition at line 24 of file RecEmcHit.h.
References CLID_RecEmcHit.
Referenced by clID().
00024 { return CLID_RecEmcHit; }
virtual const CLID& RecEmcHit::clID | ( | ) | const [inline, virtual] |
Definition at line 23 of file RecEmcHit.h.
References classID().
00023 { return RecEmcHit::classID();}
void RecEmcHit::Dump | ( | ) | const |
Reimplemented in RecEmcFraction.
Definition at line 108 of file RecEmcHit.cxx.
References fCellId, fEnergy, and fTime.
00109 { 00110 cout<<"Hit: "; 00111 00112 cout<<fCellId<<", "; 00113 00114 cout.width(12); 00115 cout.setf(ios::right); 00116 cout<<fEnergy<<", "; 00117 00118 cout.width(12); 00119 cout.setf(ios::right); 00120 cout<<fTime<<endl; 00121 }
RecEmcEnergy RecEmcHit::Energy | ( | const RecEmcEnergy & | Energy | ) |
Definition at line 87 of file RecEmcHit.cxx.
References fEnergy.
Referenced by EmcRecDigit2Hit::Convert().
RecEmcID RecEmcHit::getCellId | ( | ) | const [inline] |
Definition at line 47 of file RecEmcHit.h.
References fCellId.
Referenced by EmcRecDigit2Hit::Convert(), RecEmcShower::Erase(), RecEmcCluster::Erase(), RecEmcShower::Insert(), RecEmcCluster::Insert(), RecEmcCluster::InsertSeed(), operator<<(), EmcRecSeedLocalMax::Seed(), EmcRecSeedEThreshold::Seed(), and EmcRecSplitWeighted::Split().
00047 { return fCellId; }
HepPoint3D RecEmcHit::getCenter | ( | ) | const |
Definition at line 57 of file RecEmcHit.cxx.
References fCellId, and IEmcRecGeoSvc::GetCCenter().
00058 { 00059 IEmcRecGeoSvc* iGeoSvc; 00060 ISvcLocator* svcLocator = Gaudi::svcLocator(); 00061 StatusCode sc = svcLocator->service("EmcRecGeoSvc",iGeoSvc); 00062 if(sc!=StatusCode::SUCCESS) { 00063 cout<<"Error: Can't get EmcRecGeoSvc"<<endl; 00064 } 00065 00066 return iGeoSvc->GetCCenter(fCellId); 00067 }
RecEmcEnergy RecEmcHit::getEnergy | ( | ) | const [inline] |
Definition at line 48 of file RecEmcHit.h.
References fEnergy.
Referenced by EmcRecDigit2Hit::Convert(), operator<<(), EmcRecSeedLocalMax::Seed(), EmcRecSeedEThreshold::Seed(), and EmcRecSplitWeighted::Split().
00048 { return fEnergy; }
HepPoint3D RecEmcHit::getFrontCenter | ( | ) | const |
Definition at line 69 of file RecEmcHit.cxx.
References fCellId, and IEmcRecGeoSvc::GetCFrontCenter().
00070 { 00071 IEmcRecGeoSvc* iGeoSvc; 00072 ISvcLocator* svcLocator = Gaudi::svcLocator(); 00073 StatusCode sc = svcLocator->service("EmcRecGeoSvc",iGeoSvc); 00074 if(sc!=StatusCode::SUCCESS) { 00075 cout<<"Error: Can't get EmcRecGeoSvc"<<endl; 00076 } 00077 00078 return iGeoSvc->GetCFrontCenter(fCellId); 00079 }
RecEmcTime RecEmcHit::getTime | ( | ) | const [inline] |
Definition at line 49 of file RecEmcHit.h.
References fTime.
Referenced by operator<<().
00049 { return fTime; }
RecEmcTime RecEmcHit::Time | ( | const RecEmcTime & | Time | ) |
Definition at line 93 of file RecEmcHit.cxx.
References fTime.
Referenced by EmcRecDigit2Hit::Convert().
RecEmcID RecEmcHit::fCellId [protected] |
Definition at line 68 of file RecEmcHit.h.
Referenced by Assign(), CellId(), RecEmcFraction::Distance(), Dump(), RecEmcFraction::Dump(), getCellId(), getCenter(), getFrontCenter(), and RecEmcHit().
RecEmcEnergy RecEmcHit::fEnergy [protected] |
Definition at line 69 of file RecEmcHit.h.
Referenced by Assign(), Dump(), RecEmcFraction::Dump(), Energy(), getEnergy(), operator<(), RecEmcFraction::operator<(), operator>(), RecEmcFraction::operator>(), and RecEmcHit().
RecEmcTime RecEmcHit::fTime [protected] |
Definition at line 70 of file RecEmcHit.h.
Referenced by Assign(), Dump(), RecEmcFraction::Dump(), getTime(), RecEmcHit(), and Time().