]>
Commit | Line | Data |
---|---|---|
9c45c8bb | 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$ */ | |
17 | ||
18 | /////////////////////////////////////////////////////////////////////////////// | |
19 | // // | |
20 | // class for START calibrationalignment // | |
21 | // // | |
22 | /////////////////////////////////////////////////////////////////////////////// | |
23 | ||
24 | #include "AliSTARTAlignData.h" | |
25 | ||
26 | ClassImp(AliSTARTAlignData) | |
27 | ||
28 | //________________________________________________________________ | |
29 | AliSTARTAlignData::AliSTARTAlignData() | |
30 | { | |
31 | // Default constructor | |
32 | Reset(); | |
33 | } | |
34 | ||
35 | //________________________________________________________________ | |
36 | AliSTARTAlignData::AliSTARTAlignData(const char* name) | |
37 | { | |
38 | // Constructor | |
39 | TString namst = "Align_"; | |
40 | namst += name; | |
41 | SetName(namst.Data()); | |
42 | SetTitle(namst.Data()); | |
43 | Reset(); | |
44 | } | |
45 | ||
46 | //________________________________________________________________ | |
47 | AliSTARTAlignData::AliSTARTAlignData(const AliSTARTAlignData& alignda) : | |
48 | TNamed(alignda) | |
49 | { | |
50 | // copy constructor | |
51 | SetName(alignda.GetName()); | |
52 | SetTitle(alignda.GetName()); | |
53 | Reset(); | |
54 | fSTARTzPosition[0] = alignda.GetZposition(0); | |
55 | fSTARTzPosition[1] = alignda.GetZposition(1); | |
56 | } | |
57 | ||
58 | //________________________________________________________________ | |
59 | AliSTARTAlignData &AliSTARTAlignData::operator =(const AliSTARTAlignData& alignda) | |
60 | { | |
61 | // assignment operator | |
62 | SetName(alignda.GetName()); | |
63 | SetTitle(alignda.GetName()); | |
64 | Reset(); | |
65 | fSTARTzPosition[0] = alignda.GetZposition(0); | |
66 | fSTARTzPosition[1] = alignda.GetZposition(1); | |
67 | return *this; | |
68 | } | |
69 | ||
70 | //________________________________________________________________ | |
71 | AliSTARTAlignData::~AliSTARTAlignData() | |
72 | { | |
73 | // Destructor | |
74 | } | |
75 | ||
76 | //________________________________________________________________ | |
77 | void AliSTARTAlignData::Reset() | |
78 | { | |
79 | // Set all pedestals to 0 and all ADC channels to 1 | |
80 | memset(fSTARTzPosition,0,2*sizeof(Float_t)); | |
81 | ||
82 | } | |
83 | ||
84 | //________________________________________________________________ | |
85 | void AliSTARTAlignData::Print(Option_t *option) const | |
86 | { | |
87 | // Print tables of pedestals and ADC channels | |
88 | ||
89 | printf("START aignment data:\n"); | |
90 | printf("Z(A) = %f.2 cm, Z(C) = %f.2 cm\n", | |
91 | fSTARTzPosition[0],fSTARTzPosition[1]); | |
92 | ||
93 | } |