]> git.uio.no Git - u/mrichter/AliRoot.git/blob - RALICE/AliCalmodule.h
08-mar-2003 NvE Compiler option /GR introduced for MSVC++ in mklibs.bat to explicitly...
[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 #include "AliSignal.h"
9  
10 class AliCalmodule : public AliSignal
11 {
12  public:
13   AliCalmodule();                                          // Default constructor
14   virtual ~AliCalmodule();                                 // Default destructor
15   AliCalmodule(AliCalmodule& m);                           // Copy constructor
16   AliCalmodule(Int_t row,Int_t col,Float_t sig);           // Create a module and initialise data
17   virtual void SetSignal(Int_t row,Int_t col,Float_t sig); // Set or change data for certain module
18   virtual void AddSignal(Int_t row,Int_t col,Float_t sig); // Add signal to a certain module
19   void SetRow(Int_t i);                                    // Set the row number of the module
20   void SetColumn(Int_t i);                                 // Set the column number of the module
21   Int_t GetRow();                                          // Return the row number of the module
22   Int_t GetColumn();                                       // Return the column number of the module
23   void SetClusteredSignal(Float_t val);                    // Set the signal of the module after clustering
24   Float_t GetClusteredSignal();                            // Return module signal after clustering
25   void SetDead();                                          // Set flag to indicate dead modules
26   void SetAlive();                                         // Set flag to indicate active modules
27   Int_t GetDeadValue();                                    // Return the value of the dead module indicator
28   void SetGain(Float_t gain);                              // Set gain of the module's readout system
29   Float_t GetGain();                                       // Return the gain value
30   virtual AliCalmodule* MakeCopy(AliCalmodule& m);         // Make a deep copy and provide its pointer
31  
32  protected:
33   Int_t fRow;      // The current row number
34   Int_t fCol;      // The current column number
35   Float_t fSigc;   // The signal after clustering
36   Int_t fDead;     // Flag to indicate dead module (1=dead 0=alive)
37   Float_t fGain;   // Gain of the module's readout system
38  
39  ClassDef(AliCalmodule,3) // Description of a module in a calorimeter system.
40 };
41 #endif