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 **************************************************************************/
16 /* $Id: AliVZEROSurveyData.cxx, */
18 /////////////////////////////////////////////////////////////////////////////
20 // class for VZERO survey points management //
22 /////////////////////////////////////////////////////////////////////////////
24 #include "AliVZEROSurveyData.h"
26 ClassImp(AliVZEROSurveyData)
28 //________________________________________________________________
29 AliVZEROSurveyData::AliVZEROSurveyData()
34 //________________________________________________________________
35 void AliVZEROSurveyData::Reset()
40 //________________________________________________________________
41 AliVZEROSurveyData::AliVZEROSurveyData(const char* name)
43 TString namst = "Survey_";
45 SetName(namst.Data());
46 SetTitle(namst.Data());
50 //________________________________________________________________
51 AliVZEROSurveyData::AliVZEROSurveyData(const AliVZEROSurveyData& surveyda) :
56 SetName(surveyda.GetName());
57 SetTitle(surveyda.GetName());
59 for(int t=0; t<3; t++) {
60 fngA[t] = surveyda.GetPointA(t);
61 fngB[t] = surveyda.GetPointB(t);
62 fngC[t] = surveyda.GetPointC(t);
63 fngD[t] = surveyda.GetPointD(t);
68 //________________________________________________________________
69 AliVZEROSurveyData &AliVZEROSurveyData::operator =(const AliVZEROSurveyData& surveyda)
71 // assignment operator
73 SetName(surveyda.GetName());
74 SetTitle(surveyda.GetName());
76 for(int t=0; t<3; t++) {
77 fngA[t] = surveyda.GetPointA(t);
78 fngB[t] = surveyda.GetPointB(t);
79 fngC[t] = surveyda.GetPointC(t);
80 fngD[t] = surveyda.GetPointD(t);
87 //________________________________________________________________
88 AliVZEROSurveyData::~AliVZEROSurveyData()
93 //________________________________________________________________
94 void AliVZEROSurveyData::SetPointA(Float_t* ngA)
96 if(ngA) for(int t=0; t<3; t++) fngA[t] = ngA[t];
97 else for(int t=0; t<3; t++) fngA[t] = 0.0;
100 //________________________________________________________________
101 void AliVZEROSurveyData::SetPointB(Float_t* ngB)
103 if(ngB) for(int t=0; t<3; t++) fngB[t] = ngB[t];
104 else for(int t=0; t<3; t++) fngB[t] = 0.0;
106 //________________________________________________________________
107 void AliVZEROSurveyData::SetPointC(Float_t* ngC)
109 if(ngC) for(int t=0; t<3; t++) fngC[t] = ngC[t];
110 else for(int t=0; t<3; t++) fngC[t] = 0.0;
113 //________________________________________________________________
114 void AliVZEROSurveyData::SetPointD(Float_t* ngD)
116 if(ngD) for(int t=0; t<3; t++) fngD[t] = ngD[t];
117 else for(int t=0; t<3; t++) fngD[t] = 0.0;