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 ///////////////////////////////////////////////////////////////////////////
20 // Description of a module in a calorimeter system.
21 // A matrix geometry is assumed, such that a module
22 // is identified by (row,col) and contains a certain signal.
23 // Note : row and col start counting at 1.
25 //--- Author: Nick van Eijndhoven 13-jun-1997 UU-SAP Utrecht
26 //- Modified: NvE $Date$ UU-SAP Utrecht
27 ///////////////////////////////////////////////////////////////////////////
29 #include "AliCalmodule.h"
31 ClassImp(AliCalmodule) // Class implementation to enable ROOT I/O
33 AliCalmodule::AliCalmodule()
35 // Default constructor, all module data is set to 0
42 ///////////////////////////////////////////////////////////////////////////
43 AliCalmodule::~AliCalmodule()
47 ///////////////////////////////////////////////////////////////////////////
48 AliCalmodule::AliCalmodule(Int_t row,Int_t col,Float_t sig)
50 // Module constructor with initialisation of module data
53 AliSignal::SetSignal(sig);
58 ///////////////////////////////////////////////////////////////////////////
59 void AliCalmodule::SetRow(Int_t i)
61 // Set the row number for this module
64 ///////////////////////////////////////////////////////////////////////////
65 void AliCalmodule::SetColumn(Int_t i)
67 // Set the column number for this module
70 ///////////////////////////////////////////////////////////////////////////
71 void AliCalmodule::SetSignal(Int_t row,Int_t col,Float_t sig)
73 // Set or change the data of the module
76 AliSignal::SetSignal(sig);
79 ///////////////////////////////////////////////////////////////////////////
80 void AliCalmodule::AddSignal(Int_t row,Int_t col,Float_t sig)
82 // Add or change the data of the module
85 AliSignal::AddSignal(sig);
88 ///////////////////////////////////////////////////////////////////////////
89 void AliCalmodule::SetClusteredSignal(Float_t sig)
91 // Set or change the signal of the module after clustering
94 ///////////////////////////////////////////////////////////////////////////
95 void AliCalmodule::SetDead()
97 // Indicate the module as dead
100 ///////////////////////////////////////////////////////////////////////////
101 void AliCalmodule::SetAlive()
103 // Indicate the module as dead
106 ///////////////////////////////////////////////////////////////////////////
107 void AliCalmodule::SetGain(Float_t gain)
109 // Set the gain value of the readout system
112 ///////////////////////////////////////////////////////////////////////////
113 Int_t AliCalmodule::GetRow()
115 // Provide the row number of the module
118 ///////////////////////////////////////////////////////////////////////////
119 Int_t AliCalmodule::GetColumn()
121 // Provide the column number of the module
124 ///////////////////////////////////////////////////////////////////////////
125 Float_t AliCalmodule::GetClusteredSignal()
127 // Provide the signal of the module after clustering
137 ///////////////////////////////////////////////////////////////////////////
138 Int_t AliCalmodule::GetDeadValue()
140 // Provide the value of the dead indicator (1=dead 0=alive)
143 ///////////////////////////////////////////////////////////////////////////
144 Float_t AliCalmodule::GetGain()
146 // Provide the gain value of the readout system
149 ///////////////////////////////////////////////////////////////////////////