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 **************************************************************************/
20 #include "AliCalmodule.h"
22 ClassImp(AliCalmodule) // Class implementation to enable ROOT I/O
24 AliCalmodule::AliCalmodule()
26 // Default constructor, all module data is set to 0
34 ///////////////////////////////////////////////////////////////////////////
35 AliCalmodule::~AliCalmodule()
39 ///////////////////////////////////////////////////////////////////////////
40 AliCalmodule::AliCalmodule(Int_t row,Int_t col,Float_t sig)
42 // Module constructor with initialisation of module data
51 ///////////////////////////////////////////////////////////////////////////
52 void AliCalmodule::SetRow(Int_t i)
54 // Set the row number for this module
57 ///////////////////////////////////////////////////////////////////////////
58 void AliCalmodule::SetColumn(Int_t i)
60 // Set the column number for this module
63 ///////////////////////////////////////////////////////////////////////////
64 void AliCalmodule::SetSignal(Int_t row,Int_t col,Float_t sig)
66 // Set or change the data of the module
72 ///////////////////////////////////////////////////////////////////////////
73 void AliCalmodule::AddSignal(Int_t row,Int_t col,Float_t sig)
75 // Add or change the data of the module
81 ///////////////////////////////////////////////////////////////////////////
82 void AliCalmodule::SetClusteredSignal(Float_t sig)
84 // Set or change the signal of the module after clustering
87 ///////////////////////////////////////////////////////////////////////////
88 void AliCalmodule::SetEdgeOn()
90 // Indicate the module as edge module
93 ///////////////////////////////////////////////////////////////////////////
94 void AliCalmodule::SetEdgeOff()
96 // Indicate the module as non-edge module
99 ///////////////////////////////////////////////////////////////////////////
100 void AliCalmodule::EdgeUp()
102 // Increase the edge value by 1
103 // This simplifies treatment of edge modules around temp. dead modules
106 ///////////////////////////////////////////////////////////////////////////
107 void AliCalmodule::EdgeDown()
109 // Decrease the edge value by 1
110 // This simplifies treatment of edge modules around temp. dead modules
111 if (fEdge > 0) fEdge-=1;
113 ///////////////////////////////////////////////////////////////////////////
114 void AliCalmodule::SetDead()
116 // Indicate the module as dead
119 ///////////////////////////////////////////////////////////////////////////
120 void AliCalmodule::SetAlive()
122 // Indicate the module as dead
125 ///////////////////////////////////////////////////////////////////////////
126 void AliCalmodule::SetGain(Float_t gain)
128 // Set the gain value of the readout system
131 ///////////////////////////////////////////////////////////////////////////
132 Int_t AliCalmodule::GetRow()
134 // Provide the row number of the module
137 ///////////////////////////////////////////////////////////////////////////
138 Int_t AliCalmodule::GetColumn()
140 // Provide the column number of the module
143 ///////////////////////////////////////////////////////////////////////////
144 Float_t AliCalmodule::GetSignal()
146 // Provide the signal value of the module
156 ///////////////////////////////////////////////////////////////////////////
157 Float_t AliCalmodule::GetClusteredSignal()
159 // Provide the signal of the module after clustering
169 ///////////////////////////////////////////////////////////////////////////
170 Int_t AliCalmodule::GetEdgeValue()
172 // Provide the value of the edge indicator (1=edge 0=no-edge)
175 ///////////////////////////////////////////////////////////////////////////
176 Int_t AliCalmodule::GetDeadValue()
178 // Provide the value of the dead indicator (1=dead 0=alive)
181 ///////////////////////////////////////////////////////////////////////////
182 Float_t AliCalmodule::GetGain()
184 // Provide the gain value of the readout system
187 ///////////////////////////////////////////////////////////////////////////