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