Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

RecEmcHit Class Reference

#include <RecEmcHit.h>

Inheritance diagram for RecEmcHit:

ContainedObject ContainedObject RecEmcFraction RecEmcFraction List of all members.

Public Member Functions

void Assign (const RecEmcID &CellId, const RecEmcEnergy &Energy, const RecEmcTime &Time)
void Assign (const RecEmcID &CellId, const RecEmcEnergy &Energy, const RecEmcTime &Time)
RecEmcID CellId (const RecEmcID &CellId)
RecEmcID CellId (const RecEmcID &CellId)
virtual const CLID & clID () const
virtual const CLID & clID () const
void Dump () const
void Dump () const
RecEmcEnergy Energy (const RecEmcEnergy &Energy)
RecEmcEnergy Energy (const RecEmcEnergy &Energy)
RecEmcID getCellId () const
RecEmcID getCellId () const
HepPoint3D getCenter () const
HepPoint3D getCenter () const
RecEmcEnergy getEnergy () const
RecEmcEnergy getEnergy () const
HepPoint3D getFrontCenter () const
HepPoint3D getFrontCenter () const
RecEmcTime getTime () const
RecEmcTime getTime () const
bool operator< (const RecEmcHit &aHit) const
bool operator< (const RecEmcHit &aHit) const
bool operator> (const RecEmcHit &aHit) const
bool operator> (const RecEmcHit &aHit) const
 RecEmcHit (const RecEmcID &CellId, const RecEmcEnergy &Energy, const RecEmcTime &Time)
 RecEmcHit ()
 RecEmcHit (const RecEmcID &CellId, const RecEmcEnergy &Energy, const RecEmcTime &Time)
 RecEmcHit ()
RecEmcTime Time (const RecEmcTime &Time)
RecEmcTime Time (const RecEmcTime &Time)
 ~RecEmcHit ()
 ~RecEmcHit ()

Static Public Member Functions

const CLID & classID ()
const CLID & classID ()

Protected Attributes

RecEmcID fCellId
RecEmcEnergy fEnergy
RecEmcTime fTime

Constructor & Destructor Documentation

RecEmcHit::RecEmcHit  ) 
 

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

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

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

RecEmcHit::~RecEmcHit  ) 
 

00031 {
00032    //Nothing to do
00033 }

RecEmcHit::RecEmcHit  ) 
 

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

RecEmcHit::~RecEmcHit  ) 
 


Member Function Documentation

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

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

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

RecEmcID RecEmcHit::CellId const RecEmcID CellId  ) 
 

RecEmcID RecEmcHit::CellId const RecEmcID CellId  ) 
 

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

const CLID& RecEmcHit::classID  )  [inline, static]
 

00024 { return CLID_RecEmcHit; }

const CLID& RecEmcHit::classID  )  [inline, static]
 

00024 { return CLID_RecEmcHit; }

virtual const CLID& RecEmcHit::clID  )  const [inline, virtual]
 

00023 { return  RecEmcHit::classID();}

virtual const CLID& RecEmcHit::clID  )  const [inline, virtual]
 

00023 { return  RecEmcHit::classID();}

void RecEmcHit::Dump  )  const
 

Reimplemented in RecEmcFraction, and RecEmcFraction.

void RecEmcHit::Dump  )  const
 

Reimplemented in RecEmcFraction, and RecEmcFraction.

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  ) 
 

RecEmcEnergy RecEmcHit::Energy const RecEmcEnergy Energy  ) 
 

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

RecEmcID RecEmcHit::getCellId  )  const [inline]
 

00047 { return fCellId; }

RecEmcID RecEmcHit::getCellId  )  const [inline]
 

00047 { return fCellId; }

HepPoint3D RecEmcHit::getCenter  )  const
 

HepPoint3D RecEmcHit::getCenter  )  const
 

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]
 

00048 { return fEnergy; }

RecEmcEnergy RecEmcHit::getEnergy  )  const [inline]
 

00048 { return fEnergy; }

HepPoint3D RecEmcHit::getFrontCenter  )  const
 

HepPoint3D RecEmcHit::getFrontCenter  )  const
 

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]
 

00049 { return fTime; }

RecEmcTime RecEmcHit::getTime  )  const [inline]
 

00049 { return fTime; }

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

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

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

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

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

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

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

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

RecEmcTime RecEmcHit::Time const RecEmcTime Time  ) 
 

RecEmcTime RecEmcHit::Time const RecEmcTime Time  ) 
 

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


Member Data Documentation

RecEmcID RecEmcHit::fCellId [protected]
 

RecEmcEnergy RecEmcHit::fEnergy [protected]
 

RecEmcTime RecEmcHit::fTime [protected]
 


The documentation for this class was generated from the following files:
Generated on Wed Feb 2 16:44:23 2011 for BOSS6.5.5 by  doxygen 1.3.9.1