RecEmcHit Class Reference

#include <RecEmcHit.h>

Inheritance diagram for RecEmcHit:

ContainedObject RecEmcFraction List of all members.

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

Detailed Description

Definition at line 19 of file RecEmcHit.h.


Constructor & Destructor Documentation

RecEmcHit::RecEmcHit (  ) 

Definition at line 14 of file RecEmcHit.cxx.

References Identifier::clear(), fCellId, fEnergy, and fTime.

00015 {
00016    fCellId.clear();
00017    fEnergy=-1;
00018    fTime=-1;
00019 }

RecEmcHit::RecEmcHit ( const RecEmcID CellId,
const RecEmcEnergy Energy,
const RecEmcTime Time 
)

Definition at line 21 of file RecEmcHit.cxx.

References CellId(), fCellId, fEnergy, and fTime.

00024 {
00025    fCellId=CellId;
00026    fEnergy=Energy;
00027    fTime=Time;
00028 }

RecEmcHit::~RecEmcHit (  ) 

Definition at line 30 of file RecEmcHit.cxx.

00031 {
00032    //Nothing to do
00033 }


Member Function Documentation

void RecEmcHit::Assign ( const RecEmcID CellId,
const RecEmcEnergy Energy,
const RecEmcTime Time 
)

Definition at line 99 of file RecEmcHit.cxx.

References CellId(), fCellId, fEnergy, and fTime.

Referenced by RecEmcHitCnv::TObjectToDataObject().

00102 {
00103    fCellId=CellId;
00104    fEnergy=Energy;
00105    fTime=Time;
00106 }

RecEmcID RecEmcHit::CellId ( const RecEmcID CellId  ) 

Definition at line 81 of file RecEmcHit.cxx.

References fCellId.

Referenced by Assign(), EmcRecDigit2Hit::Convert(), and RecEmcHit().

00082 {
00083    fCellId=CellId;
00084    return fCellId;
00085 }

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().

00088 {
00089    fEnergy=Energy;
00090    return fEnergy;
00091 }

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; }

bool RecEmcHit::operator< ( const RecEmcHit aHit  )  const [inline]

Definition at line 37 of file RecEmcHit.h.

References fEnergy.

00037                                                  {
00038      return fEnergy < aHit.fEnergy;
00039    }

bool RecEmcHit::operator> ( const RecEmcHit aHit  )  const [inline]

Definition at line 41 of file RecEmcHit.h.

References fEnergy.

00041                                                  {
00042      return fEnergy > aHit.fEnergy;
00043    }

RecEmcTime RecEmcHit::Time ( const RecEmcTime Time  ) 

Definition at line 93 of file RecEmcHit.cxx.

References fTime.

Referenced by EmcRecDigit2Hit::Convert().

00094 {
00095    fTime=Time;
00096    return fTime;
00097 }


Member Data Documentation

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().


Generated on Tue Nov 29 23:20:49 2016 for BOSS_7.0.2 by  doxygen 1.4.7