ROOTPWA
Main Page
Modules
Namespaces
Classes
Files
File List
File Members
tools
FSParticle.cc
Go to the documentation of this file.
1
2
//
3
// Copyright 2009 Sebastian Neubert
4
//
5
// This file is part of rootpwa
6
//
7
// rootpwa is free software: you can redistribute it and/or modify
8
// it under the terms of the GNU General Public License as published by
9
// the Free Software Foundation, either version 3 of the License, or
10
// (at your option) any later version.
11
//
12
// rootpwa is distributed in the hope that it will be useful,
13
// but WITHOUT ANY WARRANTY; without even the implied warranty of
14
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15
// GNU General Public License for more details.
16
//
17
// You should have received a copy of the GNU General Public License
18
// along with rootpwa. If not, see <http://www.gnu.org/licenses/>.
19
//
21
22
//-----------------------------------------------------------
23
// File and Version Information:
24
// $Id$
25
//
26
// Description:
27
// Implementation of class FSParticle
28
// see FSParticle.hh for details
29
//
30
// Environment:
31
// Software developed for the COMPASS at CERN.
32
//
33
// Author List:
34
// Sebastian Neubert TUM (original author)
35
//
36
//
37
//-----------------------------------------------------------
38
39
// This Class' Header ------------------
40
#include "
FSParticle.h
"
41
42
// C/C++ Headers ----------------------
43
#include <iostream>
44
45
// Collaborating Class Headers --------
46
47
48
// Class Member definitions -----------
49
50
bool
operator==
(
const
FSParticle
& lhs,
const
FSParticle
& rhs){
51
return
lhs.
q
()==rhs.
q
() && lhs.
p
()==rhs.
p
();
52
}
53
54
55
FSParticle::FSParticle
()
56
: _q(99)
57
{}
58
59
FSParticle::FSParticle
(
const
TLorentzVector&
p
,
60
const
TVector3& v,
61
int
q
)
62
: _p(p), _v(v), _q(q)
63
{}
64
Generated by
1.8.1.2