LCOV - code coverage report
Current view: top level - ITS/ITSrec - AliITSChannelSPD.cxx (source / functions) Hit Total Coverage
Test: coverage.info Lines: 1 20 5.0 %
Date: 2016-06-14 17:26:59 Functions: 1 9 11.1 %

          Line data    Source code
       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             : Revision 1.2  2005/11/03 13:09:19  hristov
      19             : Removing meaningless const declarations (linuxicc)
      20             : 
      21             : Revision 1.1  2005/10/11 12:31:50  masera
      22             : Preprocessor classes for SPD (Paul Nilsson)
      23             : 
      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         116 : ClassImp(AliITSChannelSPD)
      50             : 
      51             : //__________________________________________________________________________
      52           0 : AliITSChannelSPD::AliITSChannelSPD(void) :
      53           0 : fColumn(-1),
      54           0 : fRow(-1)
      55           0 : {
      56             :   // Default constructor
      57           0 : }
      58             : 
      59             : 
      60             : //__________________________________________________________________________
      61             : AliITSChannelSPD::AliITSChannelSPD(const AliITSChannelSPD &ch) :
      62           0 :   TObject(ch),
      63           0 : fColumn(ch.fColumn),
      64           0 : fRow(ch.fRow){
      65             :   // Copy constructor
      66             : 
      67           0 : }
      68             : 
      69             : //__________________________________________________________________________
      70             : AliITSChannelSPD& AliITSChannelSPD::operator=(const AliITSChannelSPD &ch)
      71             : {
      72             :   // Assignment operator
      73             :   
      74             :   // Guard against self-assignment
      75           0 :   if (this != &ch)
      76             :     {
      77             :       // Copy the data members
      78           0 :       fColumn = ch.fColumn;
      79           0 :       fRow = ch.fRow;
      80           0 :     }
      81           0 :   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           0 :   return ( ((fColumn == channel.fColumn) && (fRow == channel.fRow)) );
      91             : }
      92             : 
      93             : //__________________________________________________________________________
      94           0 : AliITSChannelSPD::AliITSChannelSPD(Int_t column, Int_t row):
      95           0 : fColumn(column),
      96           0 : fRow(row){
      97             :   // Constructor for already existing channel
      98             : 
      99             : 
     100           0 : }

Generated by: LCOV version 1.11