]>
Commit | Line | Data |
---|---|---|
3f0e013c | 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 | $Log$ | |
e56160b8 | 18 | Revision 1.2 2005/11/03 13:09:19 hristov |
19 | Removing meaningless const declarations (linuxicc) | |
20 | ||
eb0b1051 | 21 | Revision 1.1 2005/10/11 12:31:50 masera |
22 | Preprocessor classes for SPD (Paul Nilsson) | |
23 | ||
3f0e013c | 24 | */ |
25 | ||
26 | /////////////////////////////////////////////////////////////////////////// | |
27 | // AliITSChannelSPD implementation by P. Nilsson 2005 | |
28 | // AUTHOR/CONTACT: Paul.Nilsson@cern.ch | |
29 | // | |
30 | // Objects of this class are stored in TObjArrays and should be | |
31 | // interpreted as "bad" channels, i.e. either noisy or dead channels | |
32 | // depending on where they are stored. | |
33 | // | |
34 | // A channel has the structure: | |
35 | // | |
36 | // Int_t fColumn: Column in the SPD module | |
37 | // Int_t fRow: Row in the SPD module | |
38 | // | |
39 | // The class is used by the AliITSPreprocessorSPD class to store noisy | |
40 | // and dead channels in the calibration database for the SPD. | |
41 | // | |
42 | // A channel can be compared with other channels (the equality operator | |
43 | // is defined). This is e.g. useful for the clustering algorithm. A noisy | |
44 | // channel should not be used in the clustering | |
45 | /////////////////////////////////////////////////////////////////////////// | |
46 | ||
47 | #include "AliITSChannelSPD.h" | |
48 | ||
49 | ClassImp(AliITSChannelSPD) | |
50 | ||
51 | //__________________________________________________________________________ | |
52 | AliITSChannelSPD::AliITSChannelSPD(void) : | |
53 | fColumn(-1), | |
54 | fRow(-1) | |
55 | { | |
56 | // Default constructor | |
57 | } | |
58 | ||
59 | ||
60 | //__________________________________________________________________________ | |
61 | AliITSChannelSPD::AliITSChannelSPD(const AliITSChannelSPD &ch) : | |
e56160b8 | 62 | TObject(ch), |
63 | fColumn(ch.fColumn), | |
64 | fRow(ch.fRow){ | |
3f0e013c | 65 | // Copy constructor |
66 | ||
3f0e013c | 67 | } |
68 | ||
69 | //__________________________________________________________________________ | |
70 | AliITSChannelSPD& AliITSChannelSPD::operator=(const AliITSChannelSPD &ch) | |
71 | { | |
72 | // Assignment operator | |
73 | ||
74 | // Guard against self-assignment | |
75 | if (this != &ch) | |
76 | { | |
77 | // Copy the data members | |
78 | fColumn = ch.fColumn; | |
79 | fRow = ch.fRow; | |
80 | } | |
81 | return *this; | |
82 | } | |
83 | ||
84 | //__________________________________________________________________________ | |
85 | Bool_t AliITSChannelSPD::operator==(const AliITSChannelSPD &channel) const | |
86 | { | |
87 | // Equality operator | |
88 | // For comparisons between AliITSChannelSPD objects | |
89 | ||
90 | return ( ((fColumn == channel.fColumn) && (fRow == channel.fRow)) ); | |
91 | } | |
92 | ||
93 | //__________________________________________________________________________ | |
e56160b8 | 94 | AliITSChannelSPD::AliITSChannelSPD(Int_t column, Int_t row): |
95 | fColumn(column), | |
96 | fRow(row){ | |
3f0e013c | 97 | // Constructor for already existing channel |
98 | ||
e56160b8 | 99 | |
3f0e013c | 100 | } |