PandaRoot
PndCAMCVertex.h
Go to the documentation of this file.
1 //****************************************************************************
2 //* This file is part of PandaRoot. *
3 //* *
4 //* PandaRoot is distributed under the terms of the *
5 //* GNU General Public License (GPL) version 3, *
6 //* copied verbatim in the file "LICENSE". *
7 //* *
8 //* Copyright (C) 2006 - 2024 FAIR GmbH and copyright holders of PandaRoot *
9 //* The copyright holders are listed in the file "COPYRIGHTHOLDERS". *
10 //* The authors are listed in the file "AUTHORS". *
11 //****************************************************************************
12 
13 //-*- Mode: C++ -*-
14 // ************************************************************************
15 // This file is property of and copyright by the ALICE HLT Project *
16 // ALICE Experiment at CERN, All rights reserved. *
17 // See cxx source for full Copyright notice *
18 // *
19 //*************************************************************************
20 
21 #ifndef PNDCAMCVERTEX_H
22 #define PNDCAMCVERTEX_H
23 
24 #include "PndCADef.h"
25 #include "PndCAMCVertex.h"
26 
27 #include <iostream>
28 using std::istream;
29 using std::ostream;
30 
36  public:
37  PndCAMCVertex();
38 
39  float Par(int i) const { return fPar[i]; }
40 
41  float X() const { return fPar[0]; }
42  float Y() const { return fPar[1]; }
43  float Z() const { return fPar[2]; }
44 
45  void SetPar(int i, float v) { fPar[i] = v; }
46 
47  void SetX(float v) { fPar[0] = v; }
48  void SetY(float v) { fPar[1] = v; }
49  void SetZ(float v) { fPar[2] = v; }
50 
51  friend ostream &operator<<(ostream &out, const PndCAMCVertex &a);
52  friend istream &operator>>(istream &in, PndCAMCVertex &a);
53 
54  protected:
55  float fPar[3]; //* x,y,z
56 };
57 
58 #endif
float Y() const
Definition: PndCAMCVertex.h:42
basic_istream< char, char_traits< char > > istream
float Par(int i) const
Definition: PndCAMCVertex.h:39
void SetPar(int i, float v)
Definition: PndCAMCVertex.h:45
float fPar[3]
Definition: PndCAMCVertex.h:55
float Z() const
Definition: PndCAMCVertex.h:43
friend ostream & operator<<(ostream &out, const PndCAMCVertex &a)
__m128 v
Definition: P4_F32vec4.h:15
unsigned int i
Definition: P4_F32vec4.h:33
friend istream & operator>>(istream &in, PndCAMCVertex &a)
float X() const
Definition: PndCAMCVertex.h:41
void SetX(float v)
Definition: PndCAMCVertex.h:47
basic_ostream< char, char_traits< char > > ostream
void SetY(float v)
Definition: PndCAMCVertex.h:48
void SetZ(float v)
Definition: PndCAMCVertex.h:49