12#include "BesTofHit.hh"
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;
33 m_gapNb=right.m_gapNb;
35 m_stepL=right.m_stepL;
36 m_trackL=right.m_trackL;
39 m_deltaT=right.m_deltaT;
40 m_pDirection=right.m_pDirection;
41 m_momentum=right.m_momentum;
43 m_charge = right.m_charge;
44 m_number_of_ions=right.m_number_of_ions;
45 m_strip = right.m_strip;
46 m_locPos = right.m_locPos;
52 m_trackIndex=right.m_trackIndex;
53 m_g4Index=right.m_g4Index;
54 m_partId=right.m_partId;
55 m_scinNb=right.m_scinNb;
56 m_gapNb=right.m_gapNb;
58 m_stepL=right.m_stepL;
59 m_trackL=right.m_trackL;
62 m_deltaT=right.m_deltaT;
63 m_pDirection=right.m_pDirection;
64 m_momentum=right.m_momentum;
66 m_charge = right.m_charge;
67 m_number_of_ions = right.m_number_of_ions;
68 m_strip = right.m_strip;
69 m_locPos = right.m_locPos;
78 return (
this==&right) ? 1 : 0;
83 m_edep += newHit.m_edep;
84 if (m_edep>newHit.m_edep)
86 m_time = newHit.m_time;
93 G4VVisManager* pVVisManager = G4VVisManager::GetConcreteInstance();
96 G4Circle circle(m_pos);
97 circle.SetScreenSize(1.);
98 circle.SetFillStyle(G4Circle::filled);
99 G4Colour colour(0.,0.,1.);
100 G4VisAttributes attribs(colour);
101 circle.SetVisAttributes(attribs);
102 pVVisManager->Draw(circle);
109 G4cout<<m_trackIndex<<
" "<<m_g4Index<<
" "<<m_partId<<
" "<<m_scinNb<<
" ";
110 G4double posx = m_pos.x();
111 G4double posy = m_pos.y();
112 G4double posr = sqrt(posx*posx + posy*posy);
113 G4cout<<posr<<
" "<<m_edep<<
" "<<m_stepL<<G4endl<<G4endl;
G4Allocator< BesTofHit > BesTofHitAllocator
virtual G4int operator==(const BesTofHit &) const
const BesTofHit & operator=(const BesTofHit &)
void AddHit(const BesTofHit &)