#ifndef ALICALMODULE_H #define ALICALMODULE_H /////////////////////////////////////////////////////////////////////////// // Class AliCalmodule // Description of a module in a calorimeter system. // A matrix geometry is assumed, such that a module // is identified by (row,col) and contains a certain signal // Note : row and col start counting at 1 // //--- NvE 13-jun-1997 UU-SAP Utrecht /////////////////////////////////////////////////////////////////////////// #include #include "AliSignal.h" class AliCalmodule : public AliSignal { public: AliCalmodule(); // Default constructor ~AliCalmodule(); // Default destructor AliCalmodule(Int_t row,Int_t col,Float_t sig); // Create a module and initialise data void SetSignal(Int_t row,Int_t col,Float_t sig); // Set or change data for certain module void AddSignal(Int_t row,Int_t col,Float_t sig); // Add signal to a certain module void SetRow(Int_t i); // Set the row number of the module void SetColumn(Int_t i); // Set the column number of the module Int_t GetRow(); // Return the row number of the module Int_t GetColumn(); // Return the column number of the module Float_t GetSignal(); // Return the signal value of the module void SetClusteredSignal(Float_t val); // Set the signal of the module after clustering Float_t GetClusteredSignal(); // Return module signal after clustering void SetEdgeOn(); // Set flag to indicate modules at edges void SetEdgeOff(); // Set flag to indicate modules not at edges void EdgeUp(); // Increase edge value by 1 void EdgeDown(); // Decrease edge value by 1 Int_t GetEdgeValue(); // Return the value of the edge indicator void SetDead(); // Set flag to indicate dead modules void SetAlive(); // Set flag to indicate active modules Int_t GetDeadValue(); // Return the value of the dead module indicator void SetGain(Float_t gain); // Set gain of the module's readout system Float_t GetGain(); // Return the gain value protected: Int_t fRow; // The current row number Int_t fCol; // The current column number Float_t fSigc; // The signal after clustering Int_t fEdge; // Flag to indicate edge module (>0=edge 0=no edge) Int_t fDead; // Flag to indicate dead module (1=dead 0=alive) Float_t fGain; // Gain of the module's readout system ClassDef(AliCalmodule,1) // Class definition to enable ROOT I/O }; #endif