]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - RALICE/AliCalmodule.cxx
A cluster finder and hit reconstruction class for RICH (adapted from MUON).
[u/mrichter/AliRoot.git] / RALICE / AliCalmodule.cxx
index c16cc4cefff233dc282621d094ca9f6b5faac1d9..cddb75041c0dd817a4be85e3eaba8d3fc81c64e0 100644 (file)
@@ -1,3 +1,39 @@
+/**************************************************************************
+ * 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.3  1999/11/03 14:23:17  fca
+New version of RALICE introduced
+
+Revision 1.2  1999/09/29 09:24:28  fca
+Introduction of the Copyright and cvs Log
+
+*/
+
+///////////////////////////////////////////////////////////////////////////
+// Class AliCalmodule
+// Description of a module in a calorimeter system.
+// A matrix geometry is assumed, such that a module
+// is identified by (row,col) and contains a certain signal.
+// Note : row and col start counting at 1.
+//
+//--- Author: Nick van Eijndhoven 13-jun-1997 UU-SAP Utrecht
+//- Modified: NvE 18-jan-2000 UU-SAP Utrecht
+///////////////////////////////////////////////////////////////////////////
+
 #include "AliCalmodule.h"
  
 ClassImp(AliCalmodule) // Class implementation to enable ROOT I/O
@@ -8,7 +44,6 @@ AliCalmodule::AliCalmodule()
  fRow=0;
  fCol=0;
  fSigc=0;
- fEdge=0;
  fDead=0;
  fGain=1;
 }
@@ -23,9 +58,8 @@ AliCalmodule::AliCalmodule(Int_t row,Int_t col,Float_t sig)
 // Module constructor with initialisation of module data
  fRow=row;
  fCol=col;
fSignal=sig;
AliSignal::SetSignal(sig);
  fSigc=sig;
- fEdge=0;
  fDead=0;
  fGain=1;
 }
@@ -47,7 +81,7 @@ void AliCalmodule::SetSignal(Int_t row,Int_t col,Float_t sig)
 // Set or change the data of the module
  fRow=row;
  fCol=col;
fSignal=sig;
AliSignal::SetSignal(sig);
  fSigc=sig;
 }
 ///////////////////////////////////////////////////////////////////////////
@@ -56,7 +90,7 @@ void AliCalmodule::AddSignal(Int_t row,Int_t col,Float_t sig)
 // Add or change the data of the module
  fRow=row;
  fCol=col;
fSignal+=sig;
AliSignal::AddSignal(sig);
  fSigc+=sig;
 }
 ///////////////////////////////////////////////////////////////////////////
@@ -66,32 +100,6 @@ void AliCalmodule::SetClusteredSignal(Float_t sig)
  fSigc=sig;
 }
 ///////////////////////////////////////////////////////////////////////////
-void AliCalmodule::SetEdgeOn()
-{
-// Indicate the module as edge module
- fEdge=1;
-}
-///////////////////////////////////////////////////////////////////////////
-void AliCalmodule::SetEdgeOff()
-{
-// Indicate the module as non-edge module
- fEdge=0;
-}
-///////////////////////////////////////////////////////////////////////////
-void AliCalmodule::EdgeUp()
-{
-// Increase the edge value by 1
-// This simplifies treatment of edge modules around temp. dead modules
- fEdge+=1;
-}
-///////////////////////////////////////////////////////////////////////////
-void AliCalmodule::EdgeDown()
-{
-// Decrease the edge value by 1
-// This simplifies treatment of edge modules around temp. dead modules
- if (fEdge > 0) fEdge-=1;
-}
-///////////////////////////////////////////////////////////////////////////
 void AliCalmodule::SetDead()
 {
 // Indicate the module as dead
@@ -122,19 +130,6 @@ Int_t AliCalmodule::GetColumn()
  return fCol;
 }
 ///////////////////////////////////////////////////////////////////////////
-Float_t AliCalmodule::GetSignal()
-{
-// Provide the signal value of the module
- if (!fDead)
- {
-  return fSignal;
- }
- else
- {
-  return 0;
- }
-}
-///////////////////////////////////////////////////////////////////////////
 Float_t AliCalmodule::GetClusteredSignal()
 {
 // Provide the signal of the module after clustering
@@ -148,12 +143,6 @@ Float_t AliCalmodule::GetClusteredSignal()
  }
 }
 ///////////////////////////////////////////////////////////////////////////
-Int_t AliCalmodule::GetEdgeValue()
-{
-// Provide the value of the edge indicator (1=edge 0=no-edge)
- return fEdge;
-}
-///////////////////////////////////////////////////////////////////////////
 Int_t AliCalmodule::GetDeadValue()
 {
 // Provide the value of the dead indicator (1=dead 0=alive)