Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
KFMCVertex.cxx
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file KFMCVertex.cxx
1 /*
2  * This file is part of KFParticle package
3  * Copyright (C) 2007-2019 FIAS Frankfurt Institute for Advanced Studies
4  * 2007-2019 Goethe University of Frankfurt
5  * 2007-2019 Ivan Kisel <I.Kisel@compeng.uni-frankfurt.de>
6  * 2007-2019 Maksym Zyzak
7  *
8  * KFParticle is free software: you can redistribute it and/or modify
9  * it under the terms of the GNU General Public License as published by
10  * the Free Software Foundation, either version 3 of the License, or
11  * (at your option) any later version.
12  *
13  * KFParticle is distributed in the hope that it will be useful,
14  * but WITHOUT ANY WARRANTY; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16  * GNU General Public License for more details.
17  *
18  * You should have received a copy of the GNU General Public License
19  * along with this program. If not, see <https://www.gnu.org/licenses/>.
20  */
21 
22 #include "KFMCVertex.h"
23 
24 KFMCVertex::KFMCVertex():fDaughterTracks(0),fIsReconstructable(0),fIsMCReconstructable(0),fIsReconstructed(0),fNReconstructedDaughters(0),fIsTriggerPV(0)
25 {
26  for( int i = 0; i < 3; i++) fPar[i] = 0;
27 }
28 
29 std::ostream& operator<<(std::ostream& out, const KFMCVertex &a)
30 {
35  for (int i = 0; i < 3; i++) out << a.fPar[i] << std::endl;
36  return out;
37 }
38 
39 std::istream& operator>>(std::istream& in, KFMCVertex &a)
40 {
45  for (int i = 0; i < 3; i++) in >> a.fPar[i];
46  return in;
47 }
48