ROOT logo
/**************************************************************************
 * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
 *                                                                        *
 * Author: The ALICE Off-line Project.                                    *
 * Contributors are mentioned in the code where appropriate.              *
 *                                                                        *
 * Permission to use, copy, modify and distribute this software and its   *
 * documentation strictly for non-commercial purposes is hereby granted   *
 * without fee, provided that the above copyright notice appears in all   *
 * copies and that both the copyright notice and this permission notice   *
 * appear in the supporting documentation. The authors make no claims     *
 * about the suitability of this software for any purpose. It is          *
 * provided "as is" without express or implied warranty.                  *
 **************************************************************************/

/*
$Log$
Revision 1.2  2005/11/03 13:09:19  hristov
Removing meaningless const declarations (linuxicc)

Revision 1.1  2005/10/11 12:31:50  masera
Preprocessor classes for SPD (Paul Nilsson)

*/

///////////////////////////////////////////////////////////////////////////
// AliITSChannelSPD implementation by P. Nilsson 2005
// AUTHOR/CONTACT: Paul.Nilsson@cern.ch
//
// Objects of this class are stored in TObjArrays and should be
// interpreted as "bad" channels, i.e. either noisy or dead channels
// depending on where they are stored.
//
// A channel has the structure:
//
//                           Int_t fColumn:    Column in the SPD module
//                           Int_t fRow:       Row in the SPD module
//
// The class is used by the AliITSPreprocessorSPD class to store noisy
// and dead channels in the calibration database for the SPD.
//
// A channel can be compared with other channels (the equality operator
// is defined). This is e.g. useful for the clustering algorithm. A noisy
// channel should not be used in the clustering
///////////////////////////////////////////////////////////////////////////

#include "AliITSChannelSPD.h"

ClassImp(AliITSChannelSPD)

//__________________________________________________________________________
AliITSChannelSPD::AliITSChannelSPD(void) :
fColumn(-1),
fRow(-1)
{
  // Default constructor
}


//__________________________________________________________________________
AliITSChannelSPD::AliITSChannelSPD(const AliITSChannelSPD &ch) :
  TObject(ch),
fColumn(ch.fColumn),
fRow(ch.fRow){
  // Copy constructor

}

//__________________________________________________________________________
AliITSChannelSPD& AliITSChannelSPD::operator=(const AliITSChannelSPD &ch)
{
  // Assignment operator
  
  // Guard against self-assignment
  if (this != &ch)
    {
      // Copy the data members
      fColumn = ch.fColumn;
      fRow = ch.fRow;
    }
  return *this;
}

//__________________________________________________________________________
Bool_t AliITSChannelSPD::operator==(const AliITSChannelSPD &channel) const
{
  // Equality operator
  // For comparisons between AliITSChannelSPD objects

  return ( ((fColumn == channel.fColumn) && (fRow == channel.fRow)) );
}

//__________________________________________________________________________
AliITSChannelSPD::AliITSChannelSPD(Int_t column, Int_t row):
fColumn(column),
fRow(row){
  // Constructor for already existing channel


}
 AliITSChannelSPD.cxx:1
 AliITSChannelSPD.cxx:2
 AliITSChannelSPD.cxx:3
 AliITSChannelSPD.cxx:4
 AliITSChannelSPD.cxx:5
 AliITSChannelSPD.cxx:6
 AliITSChannelSPD.cxx:7
 AliITSChannelSPD.cxx:8
 AliITSChannelSPD.cxx:9
 AliITSChannelSPD.cxx:10
 AliITSChannelSPD.cxx:11
 AliITSChannelSPD.cxx:12
 AliITSChannelSPD.cxx:13
 AliITSChannelSPD.cxx:14
 AliITSChannelSPD.cxx:15
 AliITSChannelSPD.cxx:16
 AliITSChannelSPD.cxx:17
 AliITSChannelSPD.cxx:18
 AliITSChannelSPD.cxx:19
 AliITSChannelSPD.cxx:20
 AliITSChannelSPD.cxx:21
 AliITSChannelSPD.cxx:22
 AliITSChannelSPD.cxx:23
 AliITSChannelSPD.cxx:24
 AliITSChannelSPD.cxx:25
 AliITSChannelSPD.cxx:26
 AliITSChannelSPD.cxx:27
 AliITSChannelSPD.cxx:28
 AliITSChannelSPD.cxx:29
 AliITSChannelSPD.cxx:30
 AliITSChannelSPD.cxx:31
 AliITSChannelSPD.cxx:32
 AliITSChannelSPD.cxx:33
 AliITSChannelSPD.cxx:34
 AliITSChannelSPD.cxx:35
 AliITSChannelSPD.cxx:36
 AliITSChannelSPD.cxx:37
 AliITSChannelSPD.cxx:38
 AliITSChannelSPD.cxx:39
 AliITSChannelSPD.cxx:40
 AliITSChannelSPD.cxx:41
 AliITSChannelSPD.cxx:42
 AliITSChannelSPD.cxx:43
 AliITSChannelSPD.cxx:44
 AliITSChannelSPD.cxx:45
 AliITSChannelSPD.cxx:46
 AliITSChannelSPD.cxx:47
 AliITSChannelSPD.cxx:48
 AliITSChannelSPD.cxx:49
 AliITSChannelSPD.cxx:50
 AliITSChannelSPD.cxx:51
 AliITSChannelSPD.cxx:52
 AliITSChannelSPD.cxx:53
 AliITSChannelSPD.cxx:54
 AliITSChannelSPD.cxx:55
 AliITSChannelSPD.cxx:56
 AliITSChannelSPD.cxx:57
 AliITSChannelSPD.cxx:58
 AliITSChannelSPD.cxx:59
 AliITSChannelSPD.cxx:60
 AliITSChannelSPD.cxx:61
 AliITSChannelSPD.cxx:62
 AliITSChannelSPD.cxx:63
 AliITSChannelSPD.cxx:64
 AliITSChannelSPD.cxx:65
 AliITSChannelSPD.cxx:66
 AliITSChannelSPD.cxx:67
 AliITSChannelSPD.cxx:68
 AliITSChannelSPD.cxx:69
 AliITSChannelSPD.cxx:70
 AliITSChannelSPD.cxx:71
 AliITSChannelSPD.cxx:72
 AliITSChannelSPD.cxx:73
 AliITSChannelSPD.cxx:74
 AliITSChannelSPD.cxx:75
 AliITSChannelSPD.cxx:76
 AliITSChannelSPD.cxx:77
 AliITSChannelSPD.cxx:78
 AliITSChannelSPD.cxx:79
 AliITSChannelSPD.cxx:80
 AliITSChannelSPD.cxx:81
 AliITSChannelSPD.cxx:82
 AliITSChannelSPD.cxx:83
 AliITSChannelSPD.cxx:84
 AliITSChannelSPD.cxx:85
 AliITSChannelSPD.cxx:86
 AliITSChannelSPD.cxx:87
 AliITSChannelSPD.cxx:88
 AliITSChannelSPD.cxx:89
 AliITSChannelSPD.cxx:90
 AliITSChannelSPD.cxx:91
 AliITSChannelSPD.cxx:92
 AliITSChannelSPD.cxx:93
 AliITSChannelSPD.cxx:94
 AliITSChannelSPD.cxx:95
 AliITSChannelSPD.cxx:96
 AliITSChannelSPD.cxx:97
 AliITSChannelSPD.cxx:98
 AliITSChannelSPD.cxx:99
 AliITSChannelSPD.cxx:100