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