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

MucRecHit Class Reference

#include <MucRecHit.h>

Inheritance diagram for MucRecHit:

ContainedObject ContainedObject List of all members.

Public Member Functions

virtual const CLID & clID () const
virtual const CLID & clID () const
int Gap () const
 Get Gap.
int Gap () const
 Get Gap.
Hep3Vector GetCenterPos () const
 Get Center position of the strip (global coords).
Hep3Vector GetCenterPos () const
 Get Center position of the strip (global coords).
Hep3Vector GetCenterSigma () const
 Get Center position uncertainty of the strip (global coords).
Hep3Vector GetCenterSigma () const
 Get Center position uncertainty of the strip (global coords).
MucGeoGapGetGap () const
 Get geometry data for the gap containing this hit.
MucGeoGapGetGap () const
 Get geometry data for the gap containing this hit.
int GetHitMode () const
int GetHitMode () const
Identifier GetID () const
 Get soft identifier of this hit.
Identifier GetID () const
 Get soft identifier of this hit.
float GetIntersectX () const
float GetIntersectX () const
float GetIntersectY () const
float GetIntersectY () const
float GetIntersectZ () const
float GetIntersectZ () const
int GetPadID () const
int GetPadID () const
MucGeoStripGetStrip () const
 Get geometry data for the strip containing this hit.
MucGeoStripGetStrip () const
 Get geometry data for the strip containing this hit.
int HitIsSeed () const
int HitIsSeed () const
 MucRecHit (const MucRecHit &source)
 Copy constructor.
 MucRecHit (const int part=-1, const int seg=-1, const int gap=-1, const int strip=-1)
 Constructor.
 MucRecHit (const Identifier &id)
 Constructor.
 MucRecHit ()
 Constructor.
 MucRecHit (const MucRecHit &source)
 Copy constructor.
 MucRecHit (const int part=-1, const int seg=-1, const int gap=-1, const int strip=-1)
 Constructor.
 MucRecHit (const Identifier &id)
 Constructor.
 MucRecHit ()
 Constructor.
MucRecHitoperator= (const MucRecHit &orig)
 Assignment operator.
MucRecHitoperator= (const MucRecHit &orig)
 Assignment operator.
int Part () const
 Get Part.
int Part () const
 Get Part.
int Seg () const
 Get Seg.
int Seg () const
 Get Seg.
void SetHitMode (int recmode)
void SetHitMode (int recmode)
void SetHitSeed (int seed)
void SetHitSeed (int seed)
void SetIntersectX (float x)
void SetIntersectX (float x)
void SetIntersectY (float y)
void SetIntersectY (float y)
void SetIntersectZ (float z)
void SetIntersectZ (float z)
void SetPadID (int padID)
void SetPadID (int padID)
int Strip () const
 Get Strip.
int Strip () const
 Get Strip.
 ~MucRecHit ()
 Destructor.
 ~MucRecHit ()
 Destructor.

Static Public Member Functions

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

Private Attributes

HepPoint3D m_CenterPos
HepPoint3D m_CenterSigma
float m_intersect_x
float m_intersect_y
float m_intersect_z
int m_IsSeed
Identifier m_MucID
int m_padID
MucGeoGapm_pMucGeoGap
MucGeoGapm_pMucGeoGap
MucGeoStripm_pMucGeoStrip
MucGeoStripm_pMucGeoStrip
int m_recmode

Constructor & Destructor Documentation

MucRecHit::MucRecHit  )  [inline]
 

Constructor.

00042 {;}

MucRecHit::MucRecHit const Identifier id  ) 
 

Constructor.

00018   : m_MucID(id)
00019 {
00020   m_pMucGeoGap   = MucGeoGeneral::Instance()->GetGap(m_MucID);
00021   m_pMucGeoStrip = MucGeoGeneral::Instance()->GetStrip(m_MucID);
00022   m_IsSeed = false;
00023   if (m_pMucGeoGap && m_pMucGeoStrip) {
00024     float x, y, z, sx, sy, sz;
00025     
00026     m_pMucGeoStrip->GetCenterPos(x, y, z);
00027     m_pMucGeoStrip->GetCenterSigma(sx, sy, sz);
00028     HepPoint3D pos(x, y, z);
00029     HepPoint3D sigma(sx, sy, sz);
00030     m_CenterPos   = m_pMucGeoGap->TransformToGlobal(pos);
00031     m_CenterSigma = m_pMucGeoGap->RotateToGlobal(sigma);
00032   }
00033   else {
00034     cout << "MucRecHit::MucRecHit(const Identifier&), gap or strip pointer lost" << endl;
00035   }
00036 }

MucRecHit::MucRecHit const int  part = -1,
const int  seg = -1,
const int  gap = -1,
const int  strip = -1
 

Constructor.

00042 {
00043   m_MucID = MucID::channel_id(part, seg, gap, strip);
00044   //cout << "part " << part << " seg " << seg << " gap " << gap << " strip " << strip << endl;
00045 
00046   m_pMucGeoGap   = MucGeoGeneral::Instance()->GetGap(m_MucID);
00047   m_pMucGeoStrip = MucGeoGeneral::Instance()->GetStrip(m_MucID);
00048   m_recmode      = -1;
00049   m_IsSeed = false;
00050   //m_pMucGeoGap   = MucGeoGeneral::Instance()->GetGap(part, seg, gap);
00051   //m_pMucGeoStrip = MucGeoGeneral::Instance()->GetStrip(part, seg, gap, strip);
00052   if (m_pMucGeoGap && m_pMucGeoStrip) {
00053     float x, y, z, sx, sy, sz;
00054     
00055     m_pMucGeoStrip->GetCenterPos(x, y, z);
00056     m_pMucGeoStrip->GetCenterSigma(sx, sy, sz);
00057     HepPoint3D pos(x, y, z);
00058     HepPoint3D sigma(sx, sy, sz);
00059     m_CenterPos   = m_pMucGeoGap->TransformToGlobal(pos);
00060     //m_CenterSigma = m_pMucGeoGap->RotateToGlobal(sigma); //comment out at 2006.11.30
00061     m_CenterSigma = sigma; // do not transform
00062   }
00063   else {
00064     cout << "MucRecHit::MucRecHit(), gap or strip pointer lost" << endl;
00065   }
00066 
00067 }

MucRecHit::MucRecHit const MucRecHit source  ) 
 

Copy constructor.

00071   : m_MucID(source.m_MucID), 
00072   m_pMucGeoGap(source.m_pMucGeoGap),
00073   m_pMucGeoStrip(source.m_pMucGeoStrip),
00074   m_CenterPos(source.m_CenterPos),
00075   m_CenterSigma(source.m_CenterSigma)
00076 { }

MucRecHit::~MucRecHit  ) 
 

Destructor.

00095 { 
00096   // No need to delete MucGeo pointer objects; the allocation/deallocation
00097   // is done elsewhere.
00098   m_pMucGeoGap   = 0L;
00099   m_pMucGeoStrip = 0L;
00100 }

MucRecHit::MucRecHit  )  [inline]
 

Constructor.

00042 {;}

MucRecHit::MucRecHit const Identifier id  ) 
 

Constructor.

MucRecHit::MucRecHit const int  part = -1,
const int  seg = -1,
const int  gap = -1,
const int  strip = -1
 

Constructor.

MucRecHit::MucRecHit const MucRecHit source  ) 
 

Copy constructor.

MucRecHit::~MucRecHit  ) 
 

Destructor.


Member Function Documentation

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

00063 { return CLID_MucRecHit; }

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

00063 { return CLID_MucRecHit; }

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

00062 { return MucRecHit::classID(); }

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

00062 { return MucRecHit::classID(); }

int MucRecHit::Gap  )  const [inline]
 

Get Gap.

00077 { return MucID::gap(m_MucID); }

int MucRecHit::Gap  )  const [inline]
 

Get Gap.

00077 { return MucID::gap(m_MucID); }

Hep3Vector MucRecHit::GetCenterPos  )  const
 

Get Center position of the strip (global coords).

Hep3Vector MucRecHit::GetCenterPos  )  const
 

Get Center position of the strip (global coords).

00105 {
00106   Hep3Vector x(m_CenterPos.x(),
00107                m_CenterPos.y(),
00108                m_CenterPos.z());
00109   return x;
00110 }

Hep3Vector MucRecHit::GetCenterSigma  )  const
 

Get Center position uncertainty of the strip (global coords).

Hep3Vector MucRecHit::GetCenterSigma  )  const
 

Get Center position uncertainty of the strip (global coords).

00115 {
00116   Hep3Vector s(m_CenterSigma.x(),
00117                m_CenterSigma.y(),
00118                m_CenterSigma.z());
00119   return s;
00120 }

MucGeoGap* MucRecHit::GetGap  )  const [inline]
 

Get geometry data for the gap containing this hit.

00083 { return m_pMucGeoGap; }

MucGeoGap* MucRecHit::GetGap  )  const [inline]
 

Get geometry data for the gap containing this hit.

00083 { return m_pMucGeoGap; }

int MucRecHit::GetHitMode  )  const [inline]
 

00096 {return m_recmode;}

int MucRecHit::GetHitMode  )  const [inline]
 

00096 {return m_recmode;}

Identifier MucRecHit::GetID  )  const [inline]
 

Get soft identifier of this hit.

00068 { return m_MucID; }

Identifier MucRecHit::GetID  )  const [inline]
 

Get soft identifier of this hit.

00068 { return m_MucID; }

float MucRecHit::GetIntersectX  )  const [inline]
 

00108 {return m_intersect_x;}

float MucRecHit::GetIntersectX  )  const [inline]
 

00108 {return m_intersect_x;}

float MucRecHit::GetIntersectY  )  const [inline]
 

00109 {return m_intersect_y;}

float MucRecHit::GetIntersectY  )  const [inline]
 

00109 {return m_intersect_y;}

float MucRecHit::GetIntersectZ  )  const [inline]
 

00110 {return m_intersect_z;}

float MucRecHit::GetIntersectZ  )  const [inline]
 

00110 {return m_intersect_z;}

int MucRecHit::GetPadID  )  const [inline]
 

00107 {return m_padID;}

int MucRecHit::GetPadID  )  const [inline]
 

00107 {return m_padID;}

MucGeoStrip* MucRecHit::GetStrip  )  const [inline]
 

Get geometry data for the strip containing this hit.

00086 { return m_pMucGeoStrip; } 

MucGeoStrip* MucRecHit::GetStrip  )  const [inline]
 

Get geometry data for the strip containing this hit.

00086 { return m_pMucGeoStrip; } 

int MucRecHit::HitIsSeed  )  const [inline]
 

00100 {return m_IsSeed;}

int MucRecHit::HitIsSeed  )  const [inline]
 

00100 {return m_IsSeed;}

MucRecHit& MucRecHit::operator= const MucRecHit orig  ) 
 

Assignment operator.

MucRecHit & MucRecHit::operator= const MucRecHit orig  ) 
 

Assignment operator.

00081 {
00082   // Assignment operator.
00083   if (this != &orig) {             // Watch out for self-assignment!
00084     m_MucID        = orig.m_MucID;
00085     m_pMucGeoGap   = orig.m_pMucGeoGap;
00086     m_pMucGeoStrip = orig.m_pMucGeoStrip;
00087     m_CenterPos    = orig.m_CenterPos;
00088     m_CenterSigma  = orig.m_CenterSigma;
00089   }
00090   return *this;
00091 }

int MucRecHit::Part  )  const [inline]
 

Get Part.

00071 { return MucID::part(m_MucID); }

int MucRecHit::Part  )  const [inline]
 

Get Part.

00071 { return MucID::part(m_MucID); }

int MucRecHit::Seg  )  const [inline]
 

Get Seg.

00074 { return MucID::seg(m_MucID); }

int MucRecHit::Seg  )  const [inline]
 

Get Seg.

00074 { return MucID::seg(m_MucID); }

void MucRecHit::SetHitMode int  recmode  )  [inline]
 

00094 { m_recmode = recmode;}

void MucRecHit::SetHitMode int  recmode  )  [inline]
 

00094 { m_recmode = recmode;}

void MucRecHit::SetHitSeed int  seed  )  [inline]
 

00098 {m_IsSeed = seed;}

void MucRecHit::SetHitSeed int  seed  )  [inline]
 

00098 {m_IsSeed = seed;}

void MucRecHit::SetIntersectX float  x  )  [inline]
 

00103 {m_intersect_x = x;}

void MucRecHit::SetIntersectX float  x  )  [inline]
 

00103 {m_intersect_x = x;}

void MucRecHit::SetIntersectY float  y  )  [inline]
 

00104 {m_intersect_y = y;}

void MucRecHit::SetIntersectY float  y  )  [inline]
 

00104 {m_intersect_y = y;}

void MucRecHit::SetIntersectZ float  z  )  [inline]
 

00105 {m_intersect_z = z;}

void MucRecHit::SetIntersectZ float  z  )  [inline]
 

00105 {m_intersect_z = z;}

void MucRecHit::SetPadID int  padID  )  [inline]
 

00102 {m_padID = padID;}

void MucRecHit::SetPadID int  padID  )  [inline]
 

00102 {m_padID = padID;}

int MucRecHit::Strip  )  const [inline]
 

Get Strip.

00080 { return MucID::strip(m_MucID); }

int MucRecHit::Strip  )  const [inline]
 

Get Strip.

00080 { return MucID::strip(m_MucID); }


Member Data Documentation

HepPoint3D MucRecHit::m_CenterPos [private]
 

HepPoint3D MucRecHit::m_CenterSigma [private]
 

float MucRecHit::m_intersect_x [private]
 

float MucRecHit::m_intersect_y [private]
 

float MucRecHit::m_intersect_z [private]
 

int MucRecHit::m_IsSeed [private]
 

Identifier MucRecHit::m_MucID [private]
 

int MucRecHit::m_padID [private]
 

MucGeoGap* MucRecHit::m_pMucGeoGap [private]
 

MucGeoGap* MucRecHit::m_pMucGeoGap [private]
 

MucGeoStrip* MucRecHit::m_pMucGeoStrip [private]
 

MucGeoStrip* MucRecHit::m_pMucGeoStrip [private]
 

int MucRecHit::m_recmode [private]
 


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