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

BesTofHit Class Reference

#include <BesTofHit.hh>

List of all members.

Public Member Functions

void AddEdep (G4double de)
void AddEdep (G4double de)
void AddHit (const BesTofHit &)
void AddHit (const BesTofHit &)
 BesTofHit (const BesTofHit &)
 BesTofHit ()
 BesTofHit (const BesTofHit &)
 BesTofHit ()
virtual void Draw ()
virtual void Draw ()
G4double GetCharge ()
G4double GetCharge ()
G4double GetDeltaT ()
G4double GetDeltaT ()
G4double GetEdep ()
G4double GetEdep ()
G4int GetG4Index ()
G4int GetG4Index ()
G4ThreeVector GetMomentum ()
G4ThreeVector GetMomentum ()
G4int GetPartId ()
G4int GetPartId ()
G4ThreeVector GetPDirection ()
G4ThreeVector GetPDirection ()
G4ThreeVector GetPos ()
G4ThreeVector GetPos ()
G4int GetScinNb ()
G4int GetScinNb ()
G4double GetStepL ()
G4double GetStepL ()
G4double GetTime ()
G4double GetTime ()
G4int GetTrackIndex ()
G4int GetTrackIndex ()
G4double GetTrackL ()
G4double GetTrackL ()
void operator delete (void *)
void operator delete (void *)
void * operator new (size_t)
void * operator new (size_t)
const BesTofHitoperator= (const BesTofHit &)
const BesTofHitoperator= (const BesTofHit &)
virtual G4int operator== (const BesTofHit &) const
virtual G4int operator== (const BesTofHit &) const
virtual void Print ()
virtual void Print ()
void SetCharge (G4double charge)
void SetCharge (G4double charge)
void SetDeltaT (G4double deltaT)
void SetDeltaT (G4double deltaT)
void SetEdep (G4double edep)
void SetEdep (G4double edep)
void SetG4Index (G4int index)
void SetG4Index (G4int index)
void SetMomentum (G4ThreeVector momentum)
void SetMomentum (G4ThreeVector momentum)
void SetPartId (G4int partId)
void SetPartId (G4int partId)
void SetPDirection (G4ThreeVector pDirection)
void SetPDirection (G4ThreeVector pDirection)
void SetPos (G4ThreeVector pos)
void SetPos (G4ThreeVector pos)
void SetScinNb (G4int scinNb)
void SetScinNb (G4int scinNb)
void SetStepL (G4double stepL)
void SetStepL (G4double stepL)
void SetTime (G4double time)
void SetTime (G4double time)
void SetTrackIndex (G4int trackIndex)
void SetTrackIndex (G4int trackIndex)
void SetTrackL (G4double length)
void SetTrackL (G4double length)
virtual ~BesTofHit ()
virtual ~BesTofHit ()

Private Attributes

G4double m_charge
G4double m_deltaT
G4double m_edep
G4int m_g4Index
G4ThreeVector m_momentum
G4int m_partId
G4ThreeVector m_pDirection
G4ThreeVector m_pos
G4int m_scinNb
G4double m_stepL
G4double m_time
G4int m_trackIndex
G4double m_trackL


Constructor & Destructor Documentation

BesTofHit::BesTofHit  ) 
 

00022 {}

BesTofHit::~BesTofHit  )  [virtual]
 

00024 {}

BesTofHit::BesTofHit const BesTofHit  ) 
 

00027         :G4VHit()
00028 {
00029     m_trackIndex=right.m_trackIndex;
00030     m_g4Index=right.m_g4Index;
00031     m_partId=right.m_partId;
00032     m_scinNb=right.m_scinNb;
00033     m_edep=right.m_edep;
00034     m_stepL=right.m_stepL;
00035     m_trackL=right.m_trackL;
00036     m_pos=right.m_pos;
00037     m_time=right.m_time;
00038     m_deltaT=right.m_deltaT;
00039     m_pDirection=right.m_pDirection;
00040     m_momentum=right.m_momentum;
00041     //m_scinMaterial = right.m_scinMaterial;
00042     m_charge = right.m_charge;
00043 }

BesTofHit::BesTofHit  ) 
 

virtual BesTofHit::~BesTofHit  )  [virtual]
 

BesTofHit::BesTofHit const BesTofHit  ) 
 


Member Function Documentation

void BesTofHit::AddEdep G4double  de  )  [inline]
 

00073 { m_edep += de; } 

void BesTofHit::AddEdep G4double  de  )  [inline]
 

00073 { m_edep += de; } 

void BesTofHit::AddHit const BesTofHit  ) 
 

void BesTofHit::AddHit const BesTofHit  ) 
 

00073 {
00074     m_edep += newHit.m_edep;
00075     if (m_edep>newHit.m_edep)
00076     {
00077         m_time = newHit.m_time;
00078         m_pos = newHit.m_pos;
00079     }
00080 }

virtual void BesTofHit::Draw  )  [virtual]
 

void BesTofHit::Draw  )  [virtual]
 

00083 {
00084     G4VVisManager* pVVisManager = G4VVisManager::GetConcreteInstance();
00085     if (pVVisManager)
00086     {
00087         G4Circle circle(m_pos);
00088         circle.SetScreenSize(1.);
00089         circle.SetFillStyle(G4Circle::filled);
00090         G4Colour colour(0.,0.,1.);
00091         G4VisAttributes attribs(colour);
00092         circle.SetVisAttributes(attribs);
00093         pVVisManager->Draw(circle);
00094     }
00095 }

G4double BesTofHit::GetCharge  )  [inline]
 

00071 {return m_charge; }

G4double BesTofHit::GetCharge  )  [inline]
 

00071 {return m_charge; }

G4double BesTofHit::GetDeltaT  )  [inline]
 

00066 {return m_deltaT;}

G4double BesTofHit::GetDeltaT  )  [inline]
 

00066 {return m_deltaT;}

G4double BesTofHit::GetEdep  )  [inline]
 

00061 { return m_edep; }      

G4double BesTofHit::GetEdep  )  [inline]
 

00061 { return m_edep; }      

G4int BesTofHit::GetG4Index  )  [inline]
 

00058 {return m_g4Index;}

G4int BesTofHit::GetG4Index  )  [inline]
 

00058 {return m_g4Index;}

G4ThreeVector BesTofHit::GetMomentum  )  [inline]
 

00068 {return m_momentum;}

G4ThreeVector BesTofHit::GetMomentum  )  [inline]
 

00068 {return m_momentum;}

G4int BesTofHit::GetPartId  )  [inline]
 

00059 { return m_partId; }

G4int BesTofHit::GetPartId  )  [inline]
 

00059 { return m_partId; }

G4ThreeVector BesTofHit::GetPDirection  )  [inline]
 

00067 {return m_pDirection;}

G4ThreeVector BesTofHit::GetPDirection  )  [inline]
 

00067 {return m_pDirection;}

G4ThreeVector BesTofHit::GetPos  )  [inline]
 

00064 { return m_pos; }       

G4ThreeVector BesTofHit::GetPos  )  [inline]
 

00064 { return m_pos; }       

G4int BesTofHit::GetScinNb  )  [inline]
 

00060 { return m_scinNb; }

G4int BesTofHit::GetScinNb  )  [inline]
 

00060 { return m_scinNb; }

G4double BesTofHit::GetStepL  )  [inline]
 

00062 { return m_stepL; }

G4double BesTofHit::GetStepL  )  [inline]
 

00062 { return m_stepL; }

G4double BesTofHit::GetTime  )  [inline]
 

00065 { return m_time;}

G4double BesTofHit::GetTime  )  [inline]
 

00065 { return m_time;}

G4int BesTofHit::GetTrackIndex  )  [inline]
 

00057 { return m_trackIndex; }

G4int BesTofHit::GetTrackIndex  )  [inline]
 

00057 { return m_trackIndex; }

G4double BesTofHit::GetTrackL  )  [inline]
 

00063 {return m_trackL; }

G4double BesTofHit::GetTrackL  )  [inline]
 

00063 {return m_trackL; }

void BesTofHit::operator delete void *   )  [inline]
 

void BesTofHit::operator delete void *   )  [inline]
 

00108 {
00109         BesTofHitAllocator.FreeSingle((BesTofHit*) aHit);
00110 }

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

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

00100 {
00101         void *aHit;
00102         aHit = (void *) BesTofHitAllocator.MallocSingle();
00103         return aHit;
00104 }

const BesTofHit& BesTofHit::operator= const BesTofHit  ) 
 

const BesTofHit & BesTofHit::operator= const BesTofHit  ) 
 

00047 {
00048     m_trackIndex=right.m_trackIndex;
00049     m_g4Index=right.m_g4Index;
00050     m_partId=right.m_partId;
00051     m_scinNb=right.m_scinNb;
00052     m_edep=right.m_edep;
00053     m_stepL=right.m_stepL;
00054     m_trackL=right.m_trackL;
00055     m_pos=right.m_pos;
00056     m_time=right.m_time;
00057     m_deltaT=right.m_deltaT;
00058     m_pDirection=right.m_pDirection;
00059     m_momentum=right.m_momentum;
00060     //m_scinMaterial = right.m_scinMaterial;
00061     m_charge = right.m_charge;
00062     return *this;
00063 }

virtual G4int BesTofHit::operator== const BesTofHit  )  const [virtual]
 

int BesTofHit::operator== const BesTofHit  )  const [virtual]
 

00068 {
00069     return (this==&right) ? 1 : 0;
00070 }

virtual void BesTofHit::Print  )  [virtual]
 

void BesTofHit::Print  )  [virtual]
 

00099 {
00100     G4cout<<m_trackIndex<<" "<<m_g4Index<<" "<<m_partId<<" "<<m_scinNb<<" ";
00101     G4double posx = m_pos.x();
00102     G4double posy = m_pos.y();
00103     G4double posr = sqrt(posx*posx + posy*posy);
00104     G4cout<<posr<<" "<<m_edep<<" "<<m_stepL<<G4endl;
00105 }

void BesTofHit::SetCharge G4double  charge  )  [inline]
 

00055 {m_charge = charge;}

void BesTofHit::SetCharge G4double  charge  )  [inline]
 

00055 {m_charge = charge;}

void BesTofHit::SetDeltaT G4double  deltaT  )  [inline]
 

00050 { m_deltaT = deltaT;}

void BesTofHit::SetDeltaT G4double  deltaT  )  [inline]
 

00050 { m_deltaT = deltaT;}

void BesTofHit::SetEdep G4double  edep  )  [inline]
 

00045 { m_edep = edep; }

void BesTofHit::SetEdep G4double  edep  )  [inline]
 

00045 { m_edep = edep; }

void BesTofHit::SetG4Index G4int  index  )  [inline]
 

00042 {m_g4Index = index;}

void BesTofHit::SetG4Index G4int  index  )  [inline]
 

00042 {m_g4Index = index;}

void BesTofHit::SetMomentum G4ThreeVector  momentum  )  [inline]
 

00052 { m_momentum = momentum; }

void BesTofHit::SetMomentum G4ThreeVector  momentum  )  [inline]
 

00052 { m_momentum = momentum; }

void BesTofHit::SetPartId G4int  partId  )  [inline]
 

00043 {m_partId = partId;}

void BesTofHit::SetPartId G4int  partId  )  [inline]
 

00043 {m_partId = partId;}

void BesTofHit::SetPDirection G4ThreeVector  pDirection  )  [inline]
 

00051 { m_pDirection = pDirection; }

void BesTofHit::SetPDirection G4ThreeVector  pDirection  )  [inline]
 

00051 { m_pDirection = pDirection; }

void BesTofHit::SetPos G4ThreeVector  pos  )  [inline]
 

00048 { m_pos = pos; }

void BesTofHit::SetPos G4ThreeVector  pos  )  [inline]
 

00048 { m_pos = pos; }

void BesTofHit::SetScinNb G4int  scinNb  )  [inline]
 

00044 { m_scinNb = scinNb; }

void BesTofHit::SetScinNb G4int  scinNb  )  [inline]
 

00044 { m_scinNb = scinNb; }

void BesTofHit::SetStepL G4double  stepL  )  [inline]
 

00046 { m_stepL = stepL;}

void BesTofHit::SetStepL G4double  stepL  )  [inline]
 

00046 { m_stepL = stepL;}

void BesTofHit::SetTime G4double  time  )  [inline]
 

00049 { m_time=time;}

void BesTofHit::SetTime G4double  time  )  [inline]
 

00049 { m_time=time;}

void BesTofHit::SetTrackIndex G4int  trackIndex  )  [inline]
 

00041 { m_trackIndex = trackIndex; };

void BesTofHit::SetTrackIndex G4int  trackIndex  )  [inline]
 

00041 { m_trackIndex = trackIndex; };

void BesTofHit::SetTrackL G4double  length  )  [inline]
 

00047 { m_trackL = length; }

void BesTofHit::SetTrackL G4double  length  )  [inline]
 

00047 { m_trackL = length; }


Member Data Documentation

G4double BesTofHit::m_charge [private]
 

G4double BesTofHit::m_deltaT [private]
 

G4double BesTofHit::m_edep [private]
 

G4int BesTofHit::m_g4Index [private]
 

G4ThreeVector BesTofHit::m_momentum [private]
 

G4int BesTofHit::m_partId [private]
 

G4ThreeVector BesTofHit::m_pDirection [private]
 

G4ThreeVector BesTofHit::m_pos [private]
 

G4int BesTofHit::m_scinNb [private]
 

G4double BesTofHit::m_stepL [private]
 

G4double BesTofHit::m_time [private]
 

G4int BesTofHit::m_trackIndex [private]
 

G4double BesTofHit::m_trackL [private]
 


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