Back to index

See source file

CBeamCounter.h

 
//----------------------------------------------------------------------------- 
//  $Header: /nfs/ceres1/asis/offline/ceres/cool/project/RCS/CBeamCounter.h,v 1.1 1996/12/10 13:33:07 messer Exp $ 
// 
//  COOL Program Library   
//  Copyright (C) CERES collaboration, 1996 
// 
//  Declaration of class CBeamCounter. 
// 
//----------------------------------------------------------------------------- 
#ifndef CBEAMCOUNTER_H 
#define CBEAMCOUNTER_H 
 
class CEventServer; 
class CTriggerServer; 
 
const int MaxCounters         = 5; 
const int MaxCounterAmplitude = 4096; 
const int MeanCounterPedestal = 255;    // fallback value 
 
class CCounter { 
public: 
   CCounter()  
   { 
      rawAmp = 0;                                          
      ped = MeanCounterPedestal; 
      amp = 0;                          //amplitude after pedestal subtraction 
   } 
    
public: 
   int          rawAmp; 
   double       ped; 
   double       amp; 
}; 
 
 
class CBeamCounter { 
public:  
   CBeamCounter();  
   ~CBeamCounter();  
    
public:  
   CBoolean unpack(CEventServer&); 
   void     pedestalSubtract(); 
   CCounter counters[MaxCounters];         // multiplicity trigger paddles 
    
private: 
   void   getCalibrationConstants(const CLabel*); 
};  
 
#endif /* CBEAMCOUNTER_H */  

Back to index

See source file