CCoGPulse.h
//-----------------------------------------------------------------------------
// $Header: CCoGPulse.h,v 1.3 97/04/21 11:07:04 messer Exp $
//
// COOL Program Library
// Copyright (C) CERES collaboration, 1996
//
// Declaration of class ...
//
//-----------------------------------------------------------------------------
#ifndef CCOGPULSE_H
#define CCOGPULSE_H
#include "CPulse.h"
#include "CCyclicCollection.h"
#include "rw/tpordvec.h"
class CSidc;
class CCell;
class CCoGPulse : public CPulse {
public:
CCoGPulse();
CCoGPulse(int, int);
~CCoGPulse();
CCoGPulse & operator = (const CCoGPulse &);
double getSumAmp() const { return sumAmp; }
void setSumAmp(double val) {sumAmp = val; }
CBoolean calculateCoG(CSidc&);
//
// split() returns a new pulse if a splitting was possible, else zero.
//
CCoGPulse* split(const CCyclicCollection<CCell>&);
private:
double sumAmp;
CBoolean doGaussRegression(CSidc&);
};
#endif /* CCOGPULSE_H */