]> git.uio.no Git - u/mrichter/AliRoot.git/blob - STEER/AliSurveyPoint.cxx
Numerical protection (Savannah #81183)
[u/mrichter/AliRoot.git] / STEER / AliSurveyPoint.cxx
1 /**************************************************************************
2  * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
3  *                                                                        *
4  * Author: The ALICE Off-line Project.                                    *
5  * Contributors are mentioned in the code where appropriate.              *
6  *                                                                        *
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  **************************************************************************/
15
16 /////////////////////////////////////////////////////////////////////
17 //                                                                 //
18 //  class AliSurveyPoint                                           //
19 //  Retrieve and Convert survey data into ROOT Objects             //
20 //                                                                 //
21 /////////////////////////////////////////////////////////////////////
22
23 #include "AliSurveyPoint.h"
24
25 ClassImp(AliSurveyPoint)
26   
27 //_____________________________________________________________________________
28 AliSurveyPoint::AliSurveyPoint():
29   fPointName(""),
30   fX(0.0),
31   fY(0.0),
32   fZ(0.0),
33   fPrecisionX(0.0),
34   fPrecisionY(0.0),
35   fPrecisionZ(0.0),
36   fType(' '),
37   fTargetUsed(kTRUE)
38 {
39   // Constructor
40   
41 }
42
43 //_____________________________________________________________________________
44 AliSurveyPoint::AliSurveyPoint(TString name, Float_t x, Float_t y,
45                                Float_t z, Float_t precX, Float_t precY,
46                                Float_t precZ, Char_t type, Bool_t Target):
47   fPointName(name),
48   fX(x),
49   fY(y),
50   fZ(z),
51   fPrecisionX(precX),
52   fPrecisionY(precY),
53   fPrecisionZ(precZ),
54   fType(type),
55   fTargetUsed(Target)
56 {
57   // Constructor
58   
59 }
60
61 //_____________________________________________________________________________
62 AliSurveyPoint::~AliSurveyPoint() {
63   //destructor
64   
65 }
66
67 //_____________________________________________________________________________
68 void AliSurveyPoint::PrintPoint() {
69   // Prints X, Y and Z coordinates of the point
70   printf("Point Coordinates \"%s\": %f %f %f\n", (const char*) fPointName, fX, fY, fZ);
71   return;
72 }
73