1 /**************************************************************************
2 * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 * Author: The ALICE Off-line Project. *
5 * Contributors are mentioned in the code where appropriate. *
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 **************************************************************************/
18 Revision 1.1 2005/10/11 12:31:50 masera
19 Preprocessor classes for SPD (Paul Nilsson)
23 ///////////////////////////////////////////////////////////////////////////
24 // AliITSChannelSPD implementation by P. Nilsson 2005
25 // AUTHOR/CONTACT: Paul.Nilsson@cern.ch
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.
31 // A channel has the structure:
33 // Int_t fColumn: Column in the SPD module
34 // Int_t fRow: Row in the SPD module
36 // The class is used by the AliITSPreprocessorSPD class to store noisy
37 // and dead channels in the calibration database for the SPD.
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 ///////////////////////////////////////////////////////////////////////////
44 #include "AliITSChannelSPD.h"
46 ClassImp(AliITSChannelSPD)
48 //__________________________________________________________________________
49 AliITSChannelSPD::AliITSChannelSPD(void) :
53 // Default constructor
57 //__________________________________________________________________________
58 AliITSChannelSPD::AliITSChannelSPD(const AliITSChannelSPD &ch) :
67 //__________________________________________________________________________
68 AliITSChannelSPD& AliITSChannelSPD::operator=(const AliITSChannelSPD &ch)
70 // Assignment operator
72 // Guard against self-assignment
75 // Copy the data members
82 //__________________________________________________________________________
83 Bool_t AliITSChannelSPD::operator==(const AliITSChannelSPD &channel) const
86 // For comparisons between AliITSChannelSPD objects
88 return ( ((fColumn == channel.fColumn) && (fRow == channel.fRow)) );
91 //__________________________________________________________________________
92 AliITSChannelSPD::AliITSChannelSPD(Int_t column, Int_t row)
94 // Constructor for already existing channel