+/**************************************************************************
+ * 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
fRow=0;
fCol=0;
fSigc=0;
- fEdge=0;
fDead=0;
fGain=1;
}
// Module constructor with initialisation of module data
fRow=row;
fCol=col;
- fSignal=sig;
+ AliSignal::SetSignal(sig);
fSigc=sig;
- fEdge=0;
fDead=0;
fGain=1;
}
// Set or change the data of the module
fRow=row;
fCol=col;
- fSignal=sig;
+ AliSignal::SetSignal(sig);
fSigc=sig;
}
///////////////////////////////////////////////////////////////////////////
// Add or change the data of the module
fRow=row;
fCol=col;
- fSignal+=sig;
+ AliSignal::AddSignal(sig);
fSigc+=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
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
}
}
///////////////////////////////////////////////////////////////////////////
-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)