- add flag to mark data as invalid
//____________________________________________________________________________________
AliTRDarrayADC::AliTRDarrayADC(const AliTRDarrayADC &b)
- :TObject()
+ :TObject(b)
,fNdet(b.fNdet)
,fNrow(b.fNrow)
,fNcol(b.fNcol)
{
delete [] fADC;
}
+ TObject::operator=(b);
fNdet=b.fNdet;
fNrow=b.fNrow;
fNcol=b.fNcol;
{
public:
+ enum {
+ kDataInvalid = 14
+ };
+
AliTRDarrayADC();
AliTRDarrayADC(Int_t nrow, Int_t ncol, Int_t ntime);
AliTRDarrayADC(const AliTRDarrayADC &b);
inline void SetData(Int_t nrow, Int_t ncol, Int_t ntime, Short_t value);
static void CreateLut();
+ Bool_t IsValid() { return !TestBit(kDataInvalid); }
+ void SetDataInvalid() { SetBit(kDataInvalid); }
+ void SetDataValid() { ResetBit(kDataInvalid); }
+
protected:
Int_t fNdet; //ID number of the chamber