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

RecEmcFraction Class Reference

#include <RecEmcFraction.h>

Inheritance diagram for RecEmcFraction:

RecEmcHit RecEmcHit ContainedObject ContainedObject ContainedObject ContainedObject 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
double Distance (const RecEmcID id) const
double Distance (const RecEmcID id) const
void Dump () const
void Dump () const
RecEmcEnergy Energy (const RecEmcEnergy &Energy)
RecEmcEnergy Energy (const RecEmcEnergy &Energy)
RecEmcFrac Fraction (const RecEmcFrac &Fraction)
RecEmcFrac Fraction (const RecEmcFrac &Fraction)
RecEmcID getCellId () const
RecEmcID getCellId () const
HepPoint3D getCenter () const
HepPoint3D getCenter () const
RecEmcEnergy getEnergy () const
RecEmcEnergy getEnergy () const
RecEmcFrac getFraction () const
RecEmcFrac getFraction () const
HepPoint3D getFrontCenter () const
HepPoint3D getFrontCenter () const
RecEmcTime getTime () const
RecEmcTime getTime () const
bool operator< (const RecEmcHit &aHit) const
bool operator< (const RecEmcFraction &aFraction) const
bool operator< (const RecEmcFraction &aFraction) const
bool operator> (const RecEmcHit &aHit) const
bool operator> (const RecEmcFraction &aFraction) const
bool operator> (const RecEmcFraction &aFraction) const
 RecEmcFraction (const RecEmcHit &aHit)
 RecEmcFraction ()
 RecEmcFraction (const RecEmcHit &aHit)
 RecEmcFraction ()
RecEmcTime Time (const RecEmcTime &Time)
RecEmcTime Time (const RecEmcTime &Time)
 ~RecEmcFraction ()
 ~RecEmcFraction ()

Static Public Member Functions

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

Protected Attributes

RecEmcID fCellId
RecEmcEnergy fEnergy
RecEmcFrac fFraction
RecEmcTime fTime

Constructor & Destructor Documentation

RecEmcFraction::RecEmcFraction  ) 
 

00014                               :RecEmcHit()
00015 {
00016    fFraction=-1;
00017 }

RecEmcFraction::RecEmcFraction const RecEmcHit aHit  ) 
 

00019                                                    :RecEmcHit(aHit)
00020 {
00021    fFraction=-1;
00022 }

RecEmcFraction::~RecEmcFraction  ) 
 

00025 {
00026    //nothing to do
00027 }

RecEmcFraction::RecEmcFraction  ) 
 

RecEmcFraction::RecEmcFraction const RecEmcHit aHit  ) 
 

RecEmcFraction::~RecEmcFraction  ) 
 


Member Function Documentation

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

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

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

RecEmcID RecEmcHit::CellId const RecEmcID CellId  )  [inherited]
 

RecEmcID RecEmcHit::CellId const RecEmcID CellId  )  [inherited]
 

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

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

00024 { return CLID_RecEmcHit; }

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

00024 { return CLID_RecEmcHit; }

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

00023 { return  RecEmcHit::classID();}

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

00023 { return  RecEmcHit::classID();}

double RecEmcFraction::Distance const RecEmcID  id  )  const
 

double RecEmcFraction::Distance const RecEmcID  id  )  const
 

00067 {
00068   unsigned int tht,phi;
00069   unsigned int tht2,phi2;
00070   unsigned int dtht,dphi;
00071   double dist;
00072 
00073   tht=EmcID::theta_module(fCellId);
00074   phi=EmcID::phi_module(fCellId);
00075   tht2=EmcID::theta_module(id);
00076   phi2=EmcID::phi_module(id);
00077 
00078   dtht=tht>tht2 ? tht-tht2 : tht2-tht;
00079   dphi=phi>phi2 ? phi-phi2 : phi2-phi;
00080   if(dphi>(EmcID::getPHI_BARREL_MAX()+1)/2)
00081   {
00082     dphi=EmcID::getPHI_BARREL_MAX()+1-dphi;
00083   }
00084   dist=sqrt(double(dtht*dtht+dphi*dphi));
00085 
00086   return dist;
00087 }

void RecEmcFraction::Dump  )  const
 

Reimplemented from RecEmcHit.

void RecEmcFraction::Dump  )  const
 

Reimplemented from RecEmcHit.

00091 {
00092    cout<<"Fraction: ";
00093 
00094    cout<<fCellId<<", ";
00095    
00096    cout.width(12);
00097    cout.setf(ios::right);
00098    cout<<fEnergy<<", ";
00099    
00100    cout.width(12);
00101    cout.setf(ios::right);
00102    cout<<fTime<<", ";
00103 
00104    cout.width(12);
00105    cout.setf(ios::right);
00106    cout<<fFraction;
00107 
00108    cout<<endl;
00109 }

RecEmcEnergy RecEmcHit::Energy const RecEmcEnergy Energy  )  [inherited]
 

RecEmcEnergy RecEmcHit::Energy const RecEmcEnergy Energy  )  [inherited]
 

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

RecEmcFrac RecEmcFraction::Fraction const RecEmcFrac Fraction  ) 
 

RecEmcFrac RecEmcFraction::Fraction const RecEmcFrac Fraction  ) 
 

00060 {
00061    fFraction=Fraction;
00062    return fFraction;
00063 }

RecEmcID RecEmcHit::getCellId  )  const [inline, inherited]
 

00047 { return fCellId; }

RecEmcID RecEmcHit::getCellId  )  const [inline, inherited]
 

00047 { return fCellId; }

HepPoint3D RecEmcHit::getCenter  )  const [inherited]
 

HepPoint3D RecEmcHit::getCenter  )  const [inherited]
 

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, inherited]
 

00048 { return fEnergy; }

RecEmcEnergy RecEmcHit::getEnergy  )  const [inline, inherited]
 

00048 { return fEnergy; }

RecEmcFrac RecEmcFraction::getFraction  )  const
 

RecEmcFrac RecEmcFraction::getFraction  )  const
 

00055 {
00056    return fFraction;
00057 }

HepPoint3D RecEmcHit::getFrontCenter  )  const [inherited]
 

HepPoint3D RecEmcHit::getFrontCenter  )  const [inherited]
 

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, inherited]
 

00049 { return fTime; }

RecEmcTime RecEmcHit::getTime  )  const [inline, inherited]
 

00049 { return fTime; }

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

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

bool RecEmcFraction::operator< const RecEmcFraction aFraction  )  const [inline]
 

00029                                                            {
00030      return fEnergy*fFraction < aFraction.fEnergy*aFraction.fFraction;
00031    }

bool RecEmcFraction::operator< const RecEmcFraction aFraction  )  const [inline]
 

00029                                                            {
00030      return fEnergy*fFraction < aFraction.fEnergy*aFraction.fFraction;
00031    }

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

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

bool RecEmcFraction::operator> const RecEmcFraction aFraction  )  const [inline]
 

00033                                                            {
00034      return fEnergy*fFraction > aFraction.fEnergy*aFraction.fFraction;
00035    }

bool RecEmcFraction::operator> const RecEmcFraction aFraction  )  const [inline]
 

00033                                                            {
00034      return fEnergy*fFraction > aFraction.fEnergy*aFraction.fFraction;
00035    }

RecEmcTime RecEmcHit::Time const RecEmcTime Time  )  [inherited]
 

RecEmcTime RecEmcHit::Time const RecEmcTime Time  )  [inherited]
 

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


Member Data Documentation

RecEmcID RecEmcHit::fCellId [protected, inherited]
 

RecEmcEnergy RecEmcHit::fEnergy [protected, inherited]
 

RecEmcFrac RecEmcFraction::fFraction [protected]
 

RecEmcTime RecEmcHit::fTime [protected, inherited]
 


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