1 /**************************************************************************
2 * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 * Author: The ALICE Off-line Project. *
5 * Contributors are mentioned in the code where appropriate. *
7 * Permission to use, copy, modify and distribute this software and its *
8 * documentation strictly for non-commercial purposes is hereby granted *
9 * without fee, provided that the above copyright notice appears in all *
10 * copies and that both the copyright notice and this permission notice *
11 * appear in the supporting documentation. The authors make no claims *
12 * about the suitability of this software for any purpose. It is *
13 * provided "as is" without express or implied warranty. *
14 **************************************************************************/
18 ////////////////////////////////////////////////
19 // Reconstructed point class for set:ITS //
20 ////////////////////////////////////////////////
23 #include "AliITSRecPoint.h"
24 ClassImp(AliITSRecPoint)
26 AliITSRecPoint::AliITSRecPoint() {
28 fTracks[0]=fTracks[1]=fTracks[2]=-3;
32 //----------------------------------------------------------------------
33 void AliITSRecPoint::Print(ostream *os){
34 ////////////////////////////////////////////////////////////////////////
35 // Standard output format for this class.
36 ////////////////////////////////////////////////////////////////////////
44 #if defined __ICC || defined __ECC || defined __xlC__
51 fmt = os->setf(ios::fixed); // set fixed floating point output
52 *os << fTracks[0]<< " " << fTracks[1] << " " << fTracks[2] << " ";
53 *os << fX << " " << fZ << " " << fQ << " ";
54 fmt = os->setf(ios::scientific); // set scientific for dEdX.
56 fmt = os->setf(ios::fixed); // every fixed
57 *os << fSigmaX2 << " " << fSigmaZ2;
58 os->flags(fmt); // reset back to old formating.
61 //----------------------------------------------------------------------
62 void AliITSRecPoint::Read(istream *is){
63 ////////////////////////////////////////////////////////////////////////
64 // Standard input format for this class.
65 ////////////////////////////////////////////////////////////////////////
68 *is >> fTracks[0] >> fTracks[1] >> fTracks[2] >> fX >> fZ >> fQ;
69 *is >> fdEdX >> fSigmaX2 >> fSigmaZ2;
72 //----------------------------------------------------------------------
73 ostream &operator<<(ostream &os,AliITSRecPoint &p){
74 ////////////////////////////////////////////////////////////////////////
75 // Standard output streaming function.
76 ////////////////////////////////////////////////////////////////////////
81 //----------------------------------------------------------------------
82 istream &operator>>(istream &is,AliITSRecPoint &r){
83 ////////////////////////////////////////////////////////////////////////
84 // Standard input streaming function.
85 ////////////////////////////////////////////////////////////////////////
90 //----------------------------------------------------------------------