Changeset View
Changeset View
Standalone View
Standalone View
src/EvtGenBase/EvtParticle.cpp
Show First 20 Lines • Show All 82 Lines • ▼ Show 20 Lines | void EvtParticle::resetFirstOrNot() | ||||
_first = 1; | _first = 1; | ||||
} | } | ||||
void EvtParticle::setChannel( int i ) | void EvtParticle::setChannel( int i ) | ||||
{ | { | ||||
_channel = i; | _channel = i; | ||||
} | } | ||||
EvtParticle* EvtParticle::getDaug( int i ) | EvtParticle* EvtParticle::getDaug( const int i ) const | ||||
tlatham: As per comment on the header, we need two versions of the function for const-correctness… | |||||
{ | { | ||||
return _daug[i]; | return _daug[i]; | ||||
} | } | ||||
EvtParticle* EvtParticle::getParent() const | EvtParticle* EvtParticle::getParent() const | ||||
{ | { | ||||
return _parent; | return _parent; | ||||
} | } | ||||
▲ Show 20 Lines • Show All 1,220 Lines • Show Last 20 Lines |
As per comment on the header, we need two versions of the function for const-correctness reasons.