Introduction of the Copyright and cvs Log
[u/mrichter/AliRoot.git] / RALICE / AliCalmodule.h
CommitLineData
d88f97cc 1#ifndef ALICALMODULE_H
2#define ALICALMODULE_H
3///////////////////////////////////////////////////////////////////////////
4// Class AliCalmodule
5// Description of a module in a calorimeter system.
6// A matrix geometry is assumed, such that a module
7// is identified by (row,col) and contains a certain signal
8// Note : row and col start counting at 1
9//
10//--- NvE 13-jun-1997 UU-SAP Utrecht
11///////////////////////////////////////////////////////////////////////////
12
13#include <iostream.h>
14
15#include "AliSignal.h"
16
17class AliCalmodule : public AliSignal
18{
19 public:
20 AliCalmodule(); // Default constructor
21 ~AliCalmodule(); // Default destructor
22 AliCalmodule(Int_t row,Int_t col,Float_t sig); // Create a module and initialise data
23 void SetSignal(Int_t row,Int_t col,Float_t sig); // Set or change data for certain module
24 void AddSignal(Int_t row,Int_t col,Float_t sig); // Add signal to a certain module
25 void SetRow(Int_t i); // Set the row number of the module
26 void SetColumn(Int_t i); // Set the column number of the module
27 Int_t GetRow(); // Return the row number of the module
28 Int_t GetColumn(); // Return the column number of the module
29 Float_t GetSignal(); // Return the signal value of the module
30 void SetClusteredSignal(Float_t val); // Set the signal of the module after clustering
31 Float_t GetClusteredSignal(); // Return module signal after clustering
32 void SetEdgeOn(); // Set flag to indicate modules at edges
33 void SetEdgeOff(); // Set flag to indicate modules not at edges
34 void EdgeUp(); // Increase edge value by 1
35 void EdgeDown(); // Decrease edge value by 1
36 Int_t GetEdgeValue(); // Return the value of the edge indicator
37 void SetDead(); // Set flag to indicate dead modules
38 void SetAlive(); // Set flag to indicate active modules
39 Int_t GetDeadValue(); // Return the value of the dead module indicator
40 void SetGain(Float_t gain); // Set gain of the module's readout system
41 Float_t GetGain(); // Return the gain value
42
43 protected:
44 Int_t fRow; // The current row number
45 Int_t fCol; // The current column number
46 Float_t fSigc; // The signal after clustering
47 Int_t fEdge; // Flag to indicate edge module (>0=edge 0=no edge)
48 Int_t fDead; // Flag to indicate dead module (1=dead 0=alive)
49 Float_t fGain; // Gain of the module's readout system
50
51 ClassDef(AliCalmodule,1) // Class definition to enable ROOT I/O
52};
53#endif