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