![]() |
|
|||
File indexing completed on 2025-08-03 08:20:16
0001 /* 0002 * This file is part of KFParticle package 0003 * Copyright (C) 2007-2019 FIAS Frankfurt Institute for Advanced Studies 0004 * 2007-2019 Goethe University of Frankfurt 0005 * 2007-2019 Ivan Kisel <I.Kisel@compeng.uni-frankfurt.de> 0006 * 2007-2019 Maksym Zyzak 0007 * 0008 * KFParticle is free software: you can redistribute it and/or modify 0009 * it under the terms of the GNU General Public License as published by 0010 * the Free Software Foundation, either version 3 of the License, or 0011 * (at your option) any later version. 0012 * 0013 * KFParticle is distributed in the hope that it will be useful, 0014 * but WITHOUT ANY WARRANTY; without even the implied warranty of 0015 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 0016 * GNU General Public License for more details. 0017 * 0018 * You should have received a copy of the GNU General Public License 0019 * along with this program. If not, see <https://www.gnu.org/licenses/>. 0020 */ 0021 0022 #include "KFMCVertex.h" 0023 0024 KFMCVertex::KFMCVertex():fDaughterTracks(0),fIsReconstructable(0),fIsMCReconstructable(0),fIsReconstructed(0),fNReconstructedDaughters(0),fIsTriggerPV(0) 0025 { 0026 for( int i = 0; i < 3; i++) fPar[i] = 0; 0027 } 0028 0029 std::ostream& operator<<(std::ostream& out, const KFMCVertex &a) 0030 { 0031 /** Operator to print coordinates of the MC vertex "a". 0032 ** \param[in] out - stream, where coordinates will be printed 0033 ** \param[in] a - vertex to be printed 0034 **/ 0035 for (int i = 0; i < 3; i++) out << a.fPar[i] << std::endl; 0036 return out; 0037 } 0038 0039 std::istream& operator>>(std::istream& in, KFMCVertex &a) 0040 { 0041 /** Operator to read coordinates of the vertex from the input stream. 0042 ** \param[in] in - input stream 0043 ** \param[in] a - vertex, where the coordinates will be read in 0044 **/ 0045 for (int i = 0; i < 3; i++) in >> a.fPar[i]; 0046 return in; 0047 } 0048
[ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
This page was automatically generated by the 2.3.7 LXR engine. The LXR team |
![]() ![]() |