Back to index

See source file

CModule.h

 
//----------------------------------------------------------------------------- 
//  $Header: /cool/project/RCS/CModule.h,v 2.2 1997/02/10 15:55:46 lenkeit Exp $ 
// 
//  COOL Program Library   
//  Copyright (C) CERES collaboration, 1996 
// 
//  Declaration of class CModule. 
// 
//----------------------------------------------------------------------------- 
#ifndef CMODULE_H 
#define CMODULE_H 
 
#include "cool.h" 
 
class CModule { 
public: 
   CModule(); 
   CModule(int, int, int, int); 
   int operator== (const CModule&) const; 
    
public: 
   int getX() const { return x; }		// returns left edge pad 
   int getY() const { return y; }		// returns upper edge pad 
   int getWidth() const { return width; } 
   int getHeight() const { return height; } 
   CBoolean isInModule(int, int);		// returns true if pad at x,y is part of module 
    
   inline void setGain(float val) { gain = val; } 
   float getGain() const { return gain; } 
       
private: 
   int x;                			// x, y is upper left edge of the module 
   int y; 
   int width; 
   int height; 
   float gain;    
}; 
 
#endif /* CMODULE_H */ 

Back to index

See source file