source: trunk/KtJet/KtLorentzVector.icc@ 21

Last change on this file since 21 was 2, checked in by Pavel Demin, 16 years ago

first commit

File size: 1016 bytes
Line 
1inline KtFloat KtLorentzVector::crapidity() const {
2 return m_crapidity;
3}
4
5inline int KtLorentzVector::getNConstituents() const {
6 return m_constituents.size();
7}
8
9inline const std::vector<const KtLorentzVector*> & KtLorentzVector::getConstituents() const {return m_constituents;}
10
11inline bool KtLorentzVector::isJet() const {return !m_isAtomic;}
12
13inline bool KtLorentzVector::operator== (const KtLorentzVector& v2) const {
14 return (m_id == v2.m_id);
15}
16
17inline bool KtLorentzVector::operator!= (const KtLorentzVector& v2) const {
18 return (m_id != v2.m_id);
19}
20
21inline bool KtLorentzVector::operator< (const KtLorentzVector& v2) const {
22 return (m_id < v2.m_id);
23}
24
25inline bool KtLorentzVector::operator> (const KtLorentzVector& v2) const {
26 return (m_id > v2.m_id);
27}
28
29inline void KtLorentzVector::calcRapidity() {
30 const KtFloat etamax = 10;
31 if (fabs(this->pz())==this->e()) {
32 m_crapidity = (this->pz() > 0) ? (etamax+2) : -(etamax+2);
33 } else {
34 m_crapidity = HepLorentzVector::rapidity();
35 }
36}
Note: See TracBrowser for help on using the repository browser.