10
10
#include "VirtualHit.hh"
14
12
VirtualHit::VirtualHit()
16
miceMemory.addNew( Memory::VirtualHit );
20
_bField = ThreeVector(0., 0., 0.);
21
_eField = ThreeVector(0., 0., 0.);
24
VirtualHit::VirtualHit(const VirtualHit& rhs)
26
miceMemory.addNew( Memory::VirtualHit );
28
_stationNumber=rhs._stationNumber;
33
const VirtualHit& VirtualHit::operator=(const VirtualHit& rhs)
35
if(&rhs==this) return *this;
37
_stationNumber=rhs._stationNumber;
43
int VirtualHit::operator==(const VirtualHit& rhs) const
45
bool a=( trackID() == rhs.trackID() );
46
bool b=( charge() == rhs.charge() );
47
bool c=(_stationNumber==rhs._stationNumber);
48
bool d=( mass() == rhs.mass() );
49
bool e=( position() == rhs.position() );
50
bool f=( time() == rhs.time() );
51
bool g=( momentum() == rhs.momentum() );
52
bool h=( energy() == rhs.energy() );
53
bool i=( pdg() == rhs.pdg() );
54
bool j=(_bField==rhs._bField);
55
bool k=(_eField==rhs._eField);
57
return a*b*c*d*e*f*g*h*i*j*k;