/////////////////////////////////////////////////////////////////////////////
//                                                                         //
// MPedestalCam                                                            //
//                                                                         //
// Hold the Pedestal information for all pixels in the camera              //
//                                                                         //
/////////////////////////////////////////////////////////////////////////////
#include "MPedestalCam.h"

#include "MLog.h"

ClassImp(MPedestalCam)

MPedestalCam::MPedestalCam(const char *name, const char *title)
{
    *fName  = name  ? name  : "MPedestalCam";
    *fTitle = title ? title : "Storage container for all Pedestal Information in the camera";

    fArray = new TClonesArray("MPedestalPix", 577);

    //
    // TClonesArray: The 'new operator with placement' must be used
    //
    for (int i=0; i<577; i++)
        new ((*fArray)[i]) MPedestalPix;
}

MPedestalCam::~MPedestalCam()
{
    delete fArray;
}

