#ifndef MARS_MCameraDC
#define MARS_MCameraDC

#ifndef MARS_MCamEvent
#include "MCamEvent.h"
#endif

#ifndef ROOT_TArrayF
#include <TArrayF.h>
#endif

class MCameraDC : public MCamEvent
{
private:
    TArrayF fArray; // [nA] Unsigned Int!

public:
    MCameraDC(Int_t size=577, const char *name=NULL, const char *title=NULL);

    void SetCurrent(Int_t i, Float_t val) { fArray[i] = (Int_t)val; }
    Float_t GetCurrent(Int_t i) const { return (*this)[i]; }
    Float_t &operator[](Int_t i) { return (Float_t&)fArray[i]; }
    const Float_t &operator[](Int_t i) const { return (*const_cast<MCameraDC*>(this))[i]; }

    Float_t GetMin() const;
    Float_t GetMax() const;

    void Print(Option_t *opt=NULL) const;

    Bool_t GetPixelContent(Double_t &val, Int_t idx, const MGeomCam &cam, Int_t type=0) const
    {
        val = (*this)[idx];
        return val>0;
    }
    void DrawPixelContent(Int_t num) const
    {
    }

    ClassDef(MCameraDC, 1) // Storage Container for the Currents (PRELIMINARY)
};

#endif
