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.3 1999/11/03 14:23:17 fca
19 New version of RALICE introduced
21 Revision 1.2 1999/09/29 09:24:28 fca
22 Introduction of the Copyright and cvs Log
26 ///////////////////////////////////////////////////////////////////////////
28 // Description of a module in a calorimeter system.
29 // A matrix geometry is assumed, such that a module
30 // is identified by (row,col) and contains a certain signal.
31 // Note : row and col start counting at 1.
33 //--- Author: Nick van Eijndhoven 13-jun-1997 UU-SAP Utrecht
34 //- Modified: NvE 18-jan-2000 UU-SAP Utrecht
35 ///////////////////////////////////////////////////////////////////////////
37 #include "AliCalmodule.h"
39 ClassImp(AliCalmodule) // Class implementation to enable ROOT I/O
41 AliCalmodule::AliCalmodule()
43 // Default constructor, all module data is set to 0
50 ///////////////////////////////////////////////////////////////////////////
51 AliCalmodule::~AliCalmodule()
55 ///////////////////////////////////////////////////////////////////////////
56 AliCalmodule::AliCalmodule(Int_t row,Int_t col,Float_t sig)
58 // Module constructor with initialisation of module data
61 AliSignal::SetSignal(sig);
66 ///////////////////////////////////////////////////////////////////////////
67 void AliCalmodule::SetRow(Int_t i)
69 // Set the row number for this module
72 ///////////////////////////////////////////////////////////////////////////
73 void AliCalmodule::SetColumn(Int_t i)
75 // Set the column number for this module
78 ///////////////////////////////////////////////////////////////////////////
79 void AliCalmodule::SetSignal(Int_t row,Int_t col,Float_t sig)
81 // Set or change the data of the module
84 AliSignal::SetSignal(sig);
87 ///////////////////////////////////////////////////////////////////////////
88 void AliCalmodule::AddSignal(Int_t row,Int_t col,Float_t sig)
90 // Add or change the data of the module
93 AliSignal::AddSignal(sig);
96 ///////////////////////////////////////////////////////////////////////////
97 void AliCalmodule::SetClusteredSignal(Float_t sig)
99 // Set or change the signal of the module after clustering
102 ///////////////////////////////////////////////////////////////////////////
103 void AliCalmodule::SetDead()
105 // Indicate the module as dead
108 ///////////////////////////////////////////////////////////////////////////
109 void AliCalmodule::SetAlive()
111 // Indicate the module as dead
114 ///////////////////////////////////////////////////////////////////////////
115 void AliCalmodule::SetGain(Float_t gain)
117 // Set the gain value of the readout system
120 ///////////////////////////////////////////////////////////////////////////
121 Int_t AliCalmodule::GetRow()
123 // Provide the row number of the module
126 ///////////////////////////////////////////////////////////////////////////
127 Int_t AliCalmodule::GetColumn()
129 // Provide the column number of the module
132 ///////////////////////////////////////////////////////////////////////////
133 Float_t AliCalmodule::GetClusteredSignal()
135 // Provide the signal of the module after clustering
145 ///////////////////////////////////////////////////////////////////////////
146 Int_t AliCalmodule::GetDeadValue()
148 // Provide the value of the dead indicator (1=dead 0=alive)
151 ///////////////////////////////////////////////////////////////////////////
152 Float_t AliCalmodule::GetGain()
154 // Provide the gain value of the readout system
157 ///////////////////////////////////////////////////////////////////////////