]>
Commit | Line | Data |
---|---|---|
cd4fc278 | 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 | // This class represent a TRD sensor, it is used by AliTRDSensorArray // | |
21 | // | |
22 | // // | |
23 | // Author: // | |
24 | // W. Monange (w.monange@gsi.de) // | |
25 | // // | |
26 | //////////////////////////////////////////////////////////////////////////// | |
27 | ||
28 | #include "AliTRDSensor.h" | |
29 | ||
30 | ClassImp(AliTRDSensor) | |
31 | ||
32 | //_____________________________________________________________________________ | |
33 | AliTRDSensor::AliTRDSensor (): | |
34 | AliDCSSensor () | |
35 | { | |
36 | //default constructor | |
37 | SetIdDCS (0); | |
38 | SetX (0); | |
39 | SetY (0); | |
40 | SetZ (0); | |
41 | //SetStartTime (startTime); | |
42 | } | |
43 | ||
44 | ||
45 | //_____________________________________________________________________________ | |
46 | AliTRDSensor::AliTRDSensor (const AliTRDSensor & source) : | |
47 | AliDCSSensor (source) | |
48 | { | |
49 | //copy constructor | |
50 | ||
51 | } | |
52 | ||
53 | //_____________________________________________________________________________ | |
54 | AliTRDSensor::AliTRDSensor (Int_t dcsId, | |
55 | Double_t x, Double_t y, Double_t z): | |
56 | AliDCSSensor () | |
57 | { | |
58 | // constructor | |
59 | SetIdDCS (dcsId); | |
60 | SetX (x); | |
61 | SetY (y); | |
62 | SetZ (z); | |
63 | //SetStartTime (startTime); | |
64 | } | |
65 | ||
66 | //_____________________________________________________________________________ | |
67 | AliTRDSensor::~AliTRDSensor() | |
68 | { | |
69 | // | |
70 | // Destructor | |
71 | // | |
72 | ||
73 | } | |
74 | ||
75 | //_____________________________________________________________________________ | |
76 | AliTRDSensor & AliTRDSensor::operator=(const AliTRDSensor &c) | |
77 | { | |
78 | // | |
79 | // Assignment operator | |
80 | // | |
81 | ||
82 | if (this != &c) ((AliTRDSensor &) c).Copy(*this); | |
83 | return *this; | |
84 | } | |
85 | ||
86 | //_____________________________________________________________________________ | |
87 | void AliTRDSensor::Copy(TObject &c) const | |
88 | { | |
89 | // | |
90 | // Copy function | |
91 | // | |
92 | TObject::Copy(c); | |
93 | } |