13#include "G4UnitsTable.hh"
14#include "G4VVisManager.hh"
17#include "G4VisAttributes.hh"
29 m_trackIndex=right.m_trackIndex;
30 m_g4Index=right.m_g4Index;
31 m_partId=right.m_partId;
32 m_scinNb=right.m_scinNb;
34 m_stepL=right.m_stepL;
35 m_trackL=right.m_trackL;
38 m_deltaT=right.m_deltaT;
39 m_pDirection=right.m_pDirection;
40 m_momentum=right.m_momentum;
42 m_charge = right.m_charge;
43 m_number_of_ions=right.m_number_of_ions;
49 m_trackIndex=right.m_trackIndex;
50 m_g4Index=right.m_g4Index;
51 m_partId=right.m_partId;
52 m_scinNb=right.m_scinNb;
54 m_stepL=right.m_stepL;
55 m_trackL=right.m_trackL;
58 m_deltaT=right.m_deltaT;
59 m_pDirection=right.m_pDirection;
60 m_momentum=right.m_momentum;
62 m_charge = right.m_charge;
63 m_number_of_ions = right.m_number_of_ions;
72 return (
this==&right) ? 1 : 0;
77 m_edep += newHit.m_edep;
78 if (m_edep>newHit.m_edep)
80 m_time = newHit.m_time;
87 G4VVisManager* pVVisManager = G4VVisManager::GetConcreteInstance();
90 G4Circle circle(m_pos);
91 circle.SetScreenSize(1.);
92 circle.SetFillStyle(G4Circle::filled);
93 G4Colour colour(0.,0.,1.);
94 G4VisAttributes attribs(colour);
95 circle.SetVisAttributes(attribs);
96 pVVisManager->Draw(circle);
103 G4cout<<m_trackIndex<<
" "<<m_g4Index<<
" "<<m_partId<<
" "<<m_scinNb<<
" ";
104 G4double posx = m_pos.x();
105 G4double posy = m_pos.y();
106 G4double posr = sqrt(posx*posx + posy*posy);
107 G4cout<<posr<<
" "<<m_edep<<
" "<<m_stepL<<G4endl;
G4Allocator< BesTofHit > BesTofHitAllocator
virtual G4int operator==(const BesTofHit &) const
const BesTofHit & operator=(const BesTofHit &)
void AddHit(const BesTofHit &)