Update timestamps for new AMANDA simulation (17/02/2015)
[u/mrichter/AliRoot.git] / VZERO / AliVZEROSurveyData.cxx
CommitLineData
e9e0e998 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/* $Id: AliVZEROSurveyData.cxx, */
17
18/////////////////////////////////////////////////////////////////////////////
19// //
20// class for VZERO survey points management //
21// //
22/////////////////////////////////////////////////////////////////////////////
23
24#include "AliVZEROSurveyData.h"
25
26ClassImp(AliVZEROSurveyData)
27
28//________________________________________________________________
29AliVZEROSurveyData::AliVZEROSurveyData()
30{
31
32}
33
34//________________________________________________________________
35void AliVZEROSurveyData::Reset()
36{
37
38}
39
40//________________________________________________________________
41AliVZEROSurveyData::AliVZEROSurveyData(const char* name)
42{
43 TString namst = "Survey_";
44 namst += name;
45 SetName(namst.Data());
46 SetTitle(namst.Data());
47
48}
49
50//________________________________________________________________
51AliVZEROSurveyData::AliVZEROSurveyData(const AliVZEROSurveyData& surveyda) :
52 TNamed(surveyda)
53{
54// copy constructor
55
56 SetName(surveyda.GetName());
57 SetTitle(surveyda.GetName());
58
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);
64 }
65
66}
67
68//________________________________________________________________
69AliVZEROSurveyData &AliVZEROSurveyData::operator =(const AliVZEROSurveyData& surveyda)
70{
71// assignment operator
72
73 SetName(surveyda.GetName());
74 SetTitle(surveyda.GetName());
75
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);
81 }
82
83 return *this;
84
85}
86
87//________________________________________________________________
88AliVZEROSurveyData::~AliVZEROSurveyData()
89{
90
91}
92
93//________________________________________________________________
94void AliVZEROSurveyData::SetPointA(Float_t* ngA)
95{
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;
98}
99
100//________________________________________________________________
101void AliVZEROSurveyData::SetPointB(Float_t* ngB)
102{
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;
105}
106//________________________________________________________________
107void AliVZEROSurveyData::SetPointC(Float_t* ngC)
108{
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;
111}
112
113//________________________________________________________________
114void AliVZEROSurveyData::SetPointD(Float_t* ngD)
115{
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;
118}
119