Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members

LCDG4TrackerHit Class Reference

#include <LCDG4TrackerHit.hh>

Inheritance diagram for LCDG4TrackerHit:

Inheritance graph
[legend]
Collaboration diagram for LCDG4TrackerHit:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 LCDG4TrackerHit ()
 ~LCDG4TrackerHit ()
 LCDG4TrackerHit (const LCDG4TrackerHit &right)
const LCDG4TrackerHitoperator= (const LCDG4TrackerHit &right)
bool operator== (const LCDG4TrackerHit &right) const
void * operator new (size_t)
void operator delete (void *aHit)
void Draw ()
void Print ()
void SetTrackID (const G4int trkID)
G4int GetTrackID () const
void SetLayer (const G4int layer)
G4int GetLayer () const
void SetSystem (const G4int sysNo)
G4int GetSystem () const
void SetBarEnd (const G4int barend)
G4int GetBarEnd () const
void SetNorthSouth (const G4int ns)
G4int GetNorthSouth () const
void SetEdep (const G4double de)
G4double GetEdep () const
void SetTdep (const G4double dt)
G4double GetTdep () const
void SetPos (const G4ThreeVector &xyz)
const G4ThreeVector & GetPos () const
G4int AddLayerLog (G4LogicalVolume *g4vxdlog, G4int startlayerNo)

Private Attributes

G4int m_trkID
G4int m_layer
G4int m_sysNo
G4int m_barend
G4int m_ns
G4double m_edep
G4double m_tdep
G4ThreeVector m_pos

Constructor & Destructor Documentation

LCDG4TrackerHit::LCDG4TrackerHit  ) 
 

Definition at line 13 of file LCDG4TrackerHit.cc.

00013                                  : G4VHit() {
00014 }

LCDG4TrackerHit::~LCDG4TrackerHit  ) 
 

Definition at line 19 of file LCDG4TrackerHit.cc.

00019                                  {
00020 }

LCDG4TrackerHit::LCDG4TrackerHit const LCDG4TrackerHit right  ) 
 

Definition at line 25 of file LCDG4TrackerHit.cc.

References m_barend, m_edep, m_layer, m_ns, m_pos, m_sysNo, m_tdep, and m_trkID.

00025                                                              : G4VHit() {
00026   m_trkID  = right.m_trkID;
00027   m_layer  = right.m_layer;
00028   m_sysNo  = right.m_sysNo;
00029   m_barend = right.m_barend;
00030   m_ns     = right.m_ns;
00031   m_edep   = right.m_edep;
00032   m_tdep   = right.m_tdep;
00033   m_pos    = right.m_pos;
00034 }


Member Function Documentation

G4int LCDG4TrackerHit::AddLayerLog G4LogicalVolume *  g4vxdlog,
G4int  startlayerNo
 

void LCDG4TrackerHit::Draw  ) 
 

Definition at line 62 of file LCDG4TrackerHit.cc.

References m_pos.

00062                            {
00063   G4VVisManager* pVVisManager = G4VVisManager::GetConcreteInstance();
00064   if(pVVisManager) {
00065     G4Circle circle(m_pos);
00066     circle.SetScreenSize(0.04);
00067     circle.SetFillStyle(G4Circle::filled);
00068     G4Colour colour(1.,0.,0.);
00069     G4VisAttributes attribs(colour);
00070     circle.SetVisAttributes(attribs);
00071     pVVisManager->Draw(circle);
00072   }
00073 }

G4int LCDG4TrackerHit::GetBarEnd  )  const [inline]
 

Definition at line 32 of file LCDG4TrackerHit.hh.

References m_barend.

Referenced by LCDG4EventAction::EndOfEventAction(), and LCDG4LcioHelper::getTrkHitLcio().

00032 { return m_barend; }

G4double LCDG4TrackerHit::GetEdep  )  const [inline]
 

Definition at line 36 of file LCDG4TrackerHit.hh.

References m_edep.

Referenced by LCDG4EventAction::EndOfEventAction(), and LCDG4LcioHelper::getTrkHitLcio().

00036 { return m_edep; }

G4int LCDG4TrackerHit::GetLayer  )  const [inline]
 

Definition at line 28 of file LCDG4TrackerHit.hh.

References m_layer.

Referenced by LCDG4EventAction::EndOfEventAction(), and LCDG4LcioHelper::getTrkHitLcio().

00028 { return m_layer; }

G4int LCDG4TrackerHit::GetNorthSouth  )  const [inline]
 

Definition at line 34 of file LCDG4TrackerHit.hh.

References m_ns.

Referenced by LCDG4EventAction::EndOfEventAction(), and LCDG4LcioHelper::getTrkHitLcio().

00034 { return m_ns; }

const G4ThreeVector& LCDG4TrackerHit::GetPos  )  const [inline]
 

Definition at line 40 of file LCDG4TrackerHit.hh.

References m_pos.

Referenced by LCDG4EventAction::EndOfEventAction(), and LCDG4LcioHelper::getTrkHitLcio().

00040 { return m_pos; }

G4int LCDG4TrackerHit::GetSystem  )  const [inline]
 

Definition at line 30 of file LCDG4TrackerHit.hh.

References m_sysNo.

Referenced by LCDG4EventAction::EndOfEventAction(), and LCDG4LcioHelper::getTrkHitLcio().

00030 { return m_sysNo; }

G4double LCDG4TrackerHit::GetTdep  )  const [inline]
 

Definition at line 38 of file LCDG4TrackerHit.hh.

References m_tdep.

Referenced by LCDG4EventAction::EndOfEventAction(), and LCDG4LcioHelper::getTrkHitLcio().

00038 { return m_tdep; }

G4int LCDG4TrackerHit::GetTrackID  )  const [inline]
 

Definition at line 26 of file LCDG4TrackerHit.hh.

References m_trkID.

Referenced by LCDG4EventAction::EndOfEventAction(), and LCDG4LcioHelper::getTrkHitLcio().

00026 { return m_trkID; }

void LCDG4TrackerHit::operator delete void *  aHit  )  [inline]
 

Definition at line 66 of file LCDG4TrackerHit.hh.

References LCDG4TrackerHitAllocator.

00066                                                        {
00067   LCDG4TrackerHitAllocator.FreeSingle((LCDG4TrackerHit*) aHit);
00068 }

void * LCDG4TrackerHit::operator new size_t   )  [inline]
 

Definition at line 60 of file LCDG4TrackerHit.hh.

References LCDG4TrackerHitAllocator.

00060                                                  {
00061   void *aHit;
00062   aHit = (void *) LCDG4TrackerHitAllocator.MallocSingle();
00063   return aHit;
00064 }

const LCDG4TrackerHit & LCDG4TrackerHit::operator= const LCDG4TrackerHit right  ) 
 

Definition at line 39 of file LCDG4TrackerHit.cc.

References m_barend, m_edep, m_layer, m_ns, m_pos, m_sysNo, m_tdep, and m_trkID.

00039                                                                               {
00040   m_trkID = right.m_trkID;
00041   m_layer = right.m_layer;
00042   m_sysNo  = right.m_sysNo;
00043   m_barend = right.m_barend;
00044   m_ns     = right.m_ns;
00045   m_edep  = right.m_edep;
00046   m_tdep  = right.m_tdep;
00047   m_pos   = right.m_pos;
00048   return *this;
00049 }

bool LCDG4TrackerHit::operator== const LCDG4TrackerHit right  )  const
 

Definition at line 54 of file LCDG4TrackerHit.cc.

00054                                                                    {
00055   if(&right) ; // make compiler happy
00056   return false;
00057 }

void LCDG4TrackerHit::Print  ) 
 

Definition at line 78 of file LCDG4TrackerHit.cc.

References m_barend, m_edep, m_layer, m_ns, m_pos, m_sysNo, m_tdep, and m_trkID.

00078                             {
00079   G4cout << m_trkID << G4endl;
00080   G4cout << m_layer << G4endl;
00081   G4cout << m_sysNo << G4endl;
00082   G4cout << m_barend << G4endl;
00083   G4cout << m_ns << G4endl;
00084   G4cout << m_edep << G4endl;
00085   G4cout << m_tdep << G4endl;
00086   G4cout << m_pos << G4endl;
00087   G4cout << G4endl;
00088 }

void LCDG4TrackerHit::SetBarEnd const G4int  barend  )  [inline]
 

Definition at line 31 of file LCDG4TrackerHit.hh.

References m_barend.

Referenced by LCDG4VXDSD::ProcessHits(), and LCDG4TrackerSD::ProcessHits().

00031 { m_barend = barend; }

void LCDG4TrackerHit::SetEdep const G4double  de  )  [inline]
 

Definition at line 35 of file LCDG4TrackerHit.hh.

References m_edep.

Referenced by LCDG4VXDSD::ProcessHits(), and LCDG4TrackerSD::ProcessHits().

00035 { m_edep = de; }

void LCDG4TrackerHit::SetLayer const G4int  layer  )  [inline]
 

Definition at line 27 of file LCDG4TrackerHit.hh.

References m_layer.

Referenced by LCDG4VXDSD::ProcessHits(), and LCDG4TrackerSD::ProcessHits().

00027 { m_layer = layer; }

void LCDG4TrackerHit::SetNorthSouth const G4int  ns  )  [inline]
 

Definition at line 33 of file LCDG4TrackerHit.hh.

References m_ns, and ns.

Referenced by LCDG4VXDSD::ProcessHits(), and LCDG4TrackerSD::ProcessHits().

00033 { m_ns = ns; }

void LCDG4TrackerHit::SetPos const G4ThreeVector &  xyz  )  [inline]
 

Definition at line 39 of file LCDG4TrackerHit.hh.

References m_pos.

Referenced by LCDG4VXDSD::ProcessHits(), and LCDG4TrackerSD::ProcessHits().

00039 { m_pos = xyz; }

void LCDG4TrackerHit::SetSystem const G4int  sysNo  )  [inline]
 

Definition at line 29 of file LCDG4TrackerHit.hh.

References m_sysNo.

Referenced by LCDG4VXDSD::ProcessHits(), and LCDG4TrackerSD::ProcessHits().

00029 { m_sysNo = sysNo; }

void LCDG4TrackerHit::SetTdep const G4double  dt  )  [inline]
 

Definition at line 37 of file LCDG4TrackerHit.hh.

References m_tdep.

Referenced by LCDG4VXDSD::ProcessHits(), and LCDG4TrackerSD::ProcessHits().

00037 { m_tdep = dt; }

void LCDG4TrackerHit::SetTrackID const G4int  trkID  )  [inline]
 

Definition at line 25 of file LCDG4TrackerHit.hh.

References m_trkID.

Referenced by LCDG4VXDSD::ProcessHits(), and LCDG4TrackerSD::ProcessHits().

00025 { m_trkID = trkID; }


Member Data Documentation

G4int LCDG4TrackerHit::m_barend [private]
 

Definition at line 48 of file LCDG4TrackerHit.hh.

Referenced by GetBarEnd(), LCDG4TrackerHit(), operator=(), Print(), and SetBarEnd().

G4double LCDG4TrackerHit::m_edep [private]
 

Definition at line 50 of file LCDG4TrackerHit.hh.

Referenced by GetEdep(), LCDG4TrackerHit(), operator=(), Print(), and SetEdep().

G4int LCDG4TrackerHit::m_layer [private]
 

Definition at line 46 of file LCDG4TrackerHit.hh.

Referenced by GetLayer(), LCDG4TrackerHit(), operator=(), Print(), and SetLayer().

G4int LCDG4TrackerHit::m_ns [private]
 

Definition at line 49 of file LCDG4TrackerHit.hh.

Referenced by GetNorthSouth(), LCDG4TrackerHit(), operator=(), Print(), and SetNorthSouth().

G4ThreeVector LCDG4TrackerHit::m_pos [private]
 

Definition at line 52 of file LCDG4TrackerHit.hh.

Referenced by Draw(), GetPos(), LCDG4TrackerHit(), operator=(), Print(), and SetPos().

G4int LCDG4TrackerHit::m_sysNo [private]
 

Definition at line 47 of file LCDG4TrackerHit.hh.

Referenced by GetSystem(), LCDG4TrackerHit(), operator=(), Print(), and SetSystem().

G4double LCDG4TrackerHit::m_tdep [private]
 

Definition at line 51 of file LCDG4TrackerHit.hh.

Referenced by GetTdep(), LCDG4TrackerHit(), operator=(), Print(), and SetTdep().

G4int LCDG4TrackerHit::m_trkID [private]
 

Definition at line 45 of file LCDG4TrackerHit.hh.

Referenced by GetTrackID(), LCDG4TrackerHit(), operator=(), Print(), and SetTrackID().


The documentation for this class was generated from the following files:
Generated on Thu Oct 7 18:45:07 2004 for LCDG4 by doxygen 1.3.4