Geant4  10.03.p03
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
B2TrackerHit Class Reference

#include <B2TrackerHit.hh>

Inheritance diagram for B2TrackerHit:
Collaboration diagram for B2TrackerHit:

Public Member Functions

 B2TrackerHit ()
 
 B2TrackerHit (const B2TrackerHit &)
 
virtual ~B2TrackerHit ()
 
const B2TrackerHitoperator= (const B2TrackerHit &)
 
G4int operator== (const B2TrackerHit &) const
 
voidoperator new (size_t)
 
void operator delete (void *)
 
virtual void Draw ()
 
virtual void Print ()
 
void SetTrackID (G4int track)
 
void SetChamberNb (G4int chamb)
 
void SetEdep (G4double de)
 
void SetPos (G4ThreeVector xyz)
 
G4int GetTrackID () const
 
G4int GetChamberNb () const
 
G4double GetEdep () const
 
G4ThreeVector GetPos () const
 
 B2TrackerHit ()
 
 B2TrackerHit (const B2TrackerHit &)
 
virtual ~B2TrackerHit ()
 
const B2TrackerHitoperator= (const B2TrackerHit &)
 
G4int operator== (const B2TrackerHit &) const
 
voidoperator new (size_t)
 
void operator delete (void *)
 
virtual void Draw ()
 
virtual void Print ()
 
void SetTrackID (G4int track)
 
void SetChamberNb (G4int chamb)
 
void SetEdep (G4double de)
 
void SetPos (G4ThreeVector xyz)
 
G4int GetTrackID () const
 
G4int GetChamberNb () const
 
G4double GetEdep () const
 
G4ThreeVector GetPos () const
 
 B2TrackerHit ()
 
 B2TrackerHit (const B2TrackerHit &)
 
virtual ~B2TrackerHit ()
 
const B2TrackerHitoperator= (const B2TrackerHit &)
 
G4int operator== (const B2TrackerHit &) const
 
voidoperator new (size_t)
 
void operator delete (void *)
 
virtual void Draw ()
 
virtual void Print ()
 
void SetTrackID (G4int track)
 
void SetChamberNb (G4int chamb)
 
void SetEdep (G4double de)
 
void SetPos (G4ThreeVector xyz)
 
G4int GetTrackID () const
 
G4int GetChamberNb () const
 
G4double GetEdep () const
 
G4ThreeVector GetPos () const
 
- Public Member Functions inherited from G4VHit
 G4VHit ()
 
virtual ~G4VHit ()
 
G4int operator== (const G4VHit &right) const
 
virtual const std::map
< G4String, G4AttDef > * 
GetAttDefs () const
 
virtual std::vector< G4AttValue > * CreateAttValues () const
 

Detailed Description

Tracker hit class

It defines data members to store the trackID, chamberNb, energy deposit, and position of charged particles in a selected volume:

  • fTrackID, fChamberNB, fEdep, fPos

Definition at line 46 of file B2TrackerHit.hh.

Constructor & Destructor Documentation

B2TrackerHit::B2TrackerHit ( )

Definition at line 44 of file B2TrackerHit.cc.

45  : G4VHit(),
46  fTrackID(-1),
47  fChamberNb(-1),
48  fEdep(0.),
49  fPos(G4ThreeVector())
50 {}
G4VHit()
Definition: G4VHit.cc:34
CLHEP::Hep3Vector G4ThreeVector
B2TrackerHit::B2TrackerHit ( const B2TrackerHit right)

Definition at line 58 of file B2TrackerHit.cc.

59  : G4VHit()
60 {
61  fTrackID = right.fTrackID;
62  fChamberNb = right.fChamberNb;
63  fEdep = right.fEdep;
64  fPos = right.fPos;
65 }
G4VHit()
Definition: G4VHit.cc:34
B2TrackerHit::~B2TrackerHit ( )
virtual

Definition at line 54 of file B2TrackerHit.cc.

54 {}
B2TrackerHit::B2TrackerHit ( )
B2TrackerHit::B2TrackerHit ( const B2TrackerHit )
virtual B2TrackerHit::~B2TrackerHit ( )
virtual
B2TrackerHit::B2TrackerHit ( )
B2TrackerHit::B2TrackerHit ( const B2TrackerHit )
virtual B2TrackerHit::~B2TrackerHit ( )
virtual

Member Function Documentation

void B2TrackerHit::Draw ( )
virtual

Reimplemented from G4VHit.

Definition at line 88 of file B2TrackerHit.cc.

89 {
91  if(pVVisManager)
92  {
93  G4Circle circle(fPos);
94  circle.SetScreenSize(4.);
95  circle.SetFillStyle(G4Circle::filled);
96  G4Colour colour(1.,0.,0.);
97  G4VisAttributes attribs(colour);
98  circle.SetVisAttributes(attribs);
99  pVVisManager->Draw(circle);
100  }
101 }
virtual void Draw(const G4Circle &, const G4Transform3D &objectTransformation=G4Transform3D())=0
static G4VVisManager * GetConcreteInstance()

Here is the call graph for this function:

virtual void B2TrackerHit::Draw ( )
virtual

Reimplemented from G4VHit.

virtual void B2TrackerHit::Draw ( )
virtual

Reimplemented from G4VHit.

G4int B2TrackerHit::GetChamberNb ( ) const
inline

Definition at line 72 of file B2TrackerHit.hh.

72 { return fChamberNb; };
G4int B2TrackerHit::GetChamberNb ( ) const
inline

Definition at line 72 of file B2TrackerHit.hh.

72 { return fChamberNb; };
G4int B2TrackerHit::GetChamberNb ( ) const
inline

Definition at line 72 of file B2TrackerHit.hh.

72 { return fChamberNb; };
G4double B2TrackerHit::GetEdep ( ) const
inline

Definition at line 73 of file B2TrackerHit.hh.

73 { return fEdep; };
G4double B2TrackerHit::GetEdep ( ) const
inline

Definition at line 73 of file B2TrackerHit.hh.

73 { return fEdep; };
G4double B2TrackerHit::GetEdep ( ) const
inline

Definition at line 73 of file B2TrackerHit.hh.

73 { return fEdep; };
G4ThreeVector B2TrackerHit::GetPos ( ) const
inline

Definition at line 74 of file B2TrackerHit.hh.

74 { return fPos; };
G4ThreeVector B2TrackerHit::GetPos ( ) const
inline

Definition at line 74 of file B2TrackerHit.hh.

74 { return fPos; };
G4ThreeVector B2TrackerHit::GetPos ( ) const
inline

Definition at line 74 of file B2TrackerHit.hh.

74 { return fPos; };
G4int B2TrackerHit::GetTrackID ( ) const
inline

Definition at line 71 of file B2TrackerHit.hh.

71 { return fTrackID; };
G4int B2TrackerHit::GetTrackID ( ) const
inline

Definition at line 71 of file B2TrackerHit.hh.

71 { return fTrackID; };
G4int B2TrackerHit::GetTrackID ( ) const
inline

Definition at line 71 of file B2TrackerHit.hh.

71 { return fTrackID; };
void B2TrackerHit::operator delete ( void )
inline
void B2TrackerHit::operator delete ( void )
inline
void B2TrackerHit::operator delete ( void hit)
inline

Definition at line 101 of file B2TrackerHit.hh.

102 {
103  B2TrackerHitAllocator->FreeSingle((B2TrackerHit*) hit);
104 }
G4ThreadLocal G4Allocator< B2TrackerHit > * B2TrackerHitAllocator
Definition: B2TrackerHit.cc:40
void * B2TrackerHit::operator new ( size_t  )
inline

Definition at line 92 of file B2TrackerHit.hh.

93 {
96  return (void *) B2TrackerHitAllocator->MallocSingle();
97 }
G4ThreadLocal G4Allocator< B2TrackerHit > * B2TrackerHitAllocator
Definition: B2TrackerHit.cc:40
void* B2TrackerHit::operator new ( size_t  )
inline
void* B2TrackerHit::operator new ( size_t  )
inline
const B2TrackerHit & B2TrackerHit::operator= ( const B2TrackerHit right)

Definition at line 69 of file B2TrackerHit.cc.

70 {
71  fTrackID = right.fTrackID;
72  fChamberNb = right.fChamberNb;
73  fEdep = right.fEdep;
74  fPos = right.fPos;
75 
76  return *this;
77 }
const B2TrackerHit& B2TrackerHit::operator= ( const B2TrackerHit )
const B2TrackerHit& B2TrackerHit::operator= ( const B2TrackerHit )
G4int B2TrackerHit::operator== ( const B2TrackerHit right) const

Definition at line 81 of file B2TrackerHit.cc.

82 {
83  return ( this == &right ) ? 1 : 0;
84 }
G4int B2TrackerHit::operator== ( const B2TrackerHit ) const
G4int B2TrackerHit::operator== ( const B2TrackerHit ) const
virtual void B2TrackerHit::Print ( )
virtual

Reimplemented from G4VHit.

virtual void B2TrackerHit::Print ( )
virtual

Reimplemented from G4VHit.

void B2TrackerHit::Print ( void  )
virtual

Reimplemented from G4VHit.

Definition at line 105 of file B2TrackerHit.cc.

106 {
107  G4cout
108  << " trackID: " << fTrackID << " chamberNb: " << fChamberNb
109  << "Edep: "
110  << std::setw(7) << G4BestUnit(fEdep,"Energy")
111  << " Position: "
112  << std::setw(7) << G4BestUnit( fPos,"Length")
113  << G4endl;
114 }
#define G4BestUnit(a, b)
#define G4_USE_G4BESTUNIT_FOR_VERBOSE 1
G4GLOB_DLL std::ostream G4cout
#define G4endl
Definition: G4ios.hh:61
void B2TrackerHit::SetChamberNb ( G4int  chamb)
inline

Definition at line 66 of file B2TrackerHit.hh.

66 { fChamberNb = chamb; };
void B2TrackerHit::SetChamberNb ( G4int  chamb)
inline

Definition at line 66 of file B2TrackerHit.hh.

66 { fChamberNb = chamb; };
void B2TrackerHit::SetChamberNb ( G4int  chamb)
inline

Definition at line 66 of file B2TrackerHit.hh.

66 { fChamberNb = chamb; };

Here is the caller graph for this function:

void B2TrackerHit::SetEdep ( G4double  de)
inline

Definition at line 67 of file B2TrackerHit.hh.

67 { fEdep = de; };

Here is the caller graph for this function:

void B2TrackerHit::SetEdep ( G4double  de)
inline

Definition at line 67 of file B2TrackerHit.hh.

67 { fEdep = de; };
void B2TrackerHit::SetEdep ( G4double  de)
inline

Definition at line 67 of file B2TrackerHit.hh.

67 { fEdep = de; };
void B2TrackerHit::SetPos ( G4ThreeVector  xyz)
inline

Definition at line 68 of file B2TrackerHit.hh.

68 { fPos = xyz; };
void B2TrackerHit::SetPos ( G4ThreeVector  xyz)
inline

Definition at line 68 of file B2TrackerHit.hh.

68 { fPos = xyz; };

Here is the caller graph for this function:

void B2TrackerHit::SetPos ( G4ThreeVector  xyz)
inline

Definition at line 68 of file B2TrackerHit.hh.

68 { fPos = xyz; };
void B2TrackerHit::SetTrackID ( G4int  track)
inline

Definition at line 65 of file B2TrackerHit.hh.

65 { fTrackID = track; };

Here is the caller graph for this function:

void B2TrackerHit::SetTrackID ( G4int  track)
inline

Definition at line 65 of file B2TrackerHit.hh.

65 { fTrackID = track; };
void B2TrackerHit::SetTrackID ( G4int  track)
inline

Definition at line 65 of file B2TrackerHit.hh.

65 { fTrackID = track; };

The documentation for this class was generated from the following files: