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.2 1999/09/29 09:24:28 fca
19 Introduction of the Copyright and cvs Log
23 ///////////////////////////////////////////////////////////////////////////
25 // Description of a module in a calorimeter system.
26 // A matrix geometry is assumed, such that a module
27 // is identified by (row,col) and contains a certain signal.
28 // Note : row and col start counting at 1.
30 //--- Author: Nick van Eijndhoven 13-jun-1997 UU-SAP Utrecht
31 //- Modified: NvE 31-oct-1999 UU-SAP Utrecht
32 ///////////////////////////////////////////////////////////////////////////
34 #include "AliCalmodule.h"
36 ClassImp(AliCalmodule) // Class implementation to enable ROOT I/O
38 AliCalmodule::AliCalmodule()
40 // Default constructor, all module data is set to 0
48 ///////////////////////////////////////////////////////////////////////////
49 AliCalmodule::~AliCalmodule()
53 ///////////////////////////////////////////////////////////////////////////
54 AliCalmodule::AliCalmodule(Int_t row,Int_t col,Float_t sig)
56 // Module constructor with initialisation of module data
59 AliSignal::SetSignal(sig);
65 ///////////////////////////////////////////////////////////////////////////
66 void AliCalmodule::SetRow(Int_t i)
68 // Set the row number for this module
71 ///////////////////////////////////////////////////////////////////////////
72 void AliCalmodule::SetColumn(Int_t i)
74 // Set the column number for this module
77 ///////////////////////////////////////////////////////////////////////////
78 void AliCalmodule::SetSignal(Int_t row,Int_t col,Float_t sig)
80 // Set or change the data of the module
83 AliSignal::SetSignal(sig);
86 ///////////////////////////////////////////////////////////////////////////
87 void AliCalmodule::AddSignal(Int_t row,Int_t col,Float_t sig)
89 // Add or change the data of the module
92 AliSignal::AddSignal(sig);
95 ///////////////////////////////////////////////////////////////////////////
96 void AliCalmodule::SetClusteredSignal(Float_t sig)
98 // Set or change the signal of the module after clustering
101 ///////////////////////////////////////////////////////////////////////////
102 void AliCalmodule::SetEdgeOn()
104 // Indicate the module as edge module
107 ///////////////////////////////////////////////////////////////////////////
108 void AliCalmodule::SetEdgeOff()
110 // Indicate the module as non-edge module
113 ///////////////////////////////////////////////////////////////////////////
114 void AliCalmodule::EdgeUp()
116 // Increase the edge value by 1
117 // This simplifies treatment of edge modules around temp. dead modules
120 ///////////////////////////////////////////////////////////////////////////
121 void AliCalmodule::EdgeDown()
123 // Decrease the edge value by 1
124 // This simplifies treatment of edge modules around temp. dead modules
125 if (fEdge > 0) fEdge-=1;
127 ///////////////////////////////////////////////////////////////////////////
128 void AliCalmodule::SetDead()
130 // Indicate the module as dead
133 ///////////////////////////////////////////////////////////////////////////
134 void AliCalmodule::SetAlive()
136 // Indicate the module as dead
139 ///////////////////////////////////////////////////////////////////////////
140 void AliCalmodule::SetGain(Float_t gain)
142 // Set the gain value of the readout system
145 ///////////////////////////////////////////////////////////////////////////
146 Int_t AliCalmodule::GetRow()
148 // Provide the row number of the module
151 ///////////////////////////////////////////////////////////////////////////
152 Int_t AliCalmodule::GetColumn()
154 // Provide the column number of the module
157 ///////////////////////////////////////////////////////////////////////////
158 Float_t AliCalmodule::GetClusteredSignal()
160 // Provide the signal of the module after clustering
170 ///////////////////////////////////////////////////////////////////////////
171 Int_t AliCalmodule::GetEdgeValue()
173 // Provide the value of the edge indicator (1=edge 0=no-edge)
176 ///////////////////////////////////////////////////////////////////////////
177 Int_t AliCalmodule::GetDeadValue()
179 // Provide the value of the dead indicator (1=dead 0=alive)
182 ///////////////////////////////////////////////////////////////////////////
183 Float_t AliCalmodule::GetGain()
185 // Provide the gain value of the readout system
188 ///////////////////////////////////////////////////////////////////////////