+ if (fNrows && fNcolumns) cout << " Nrows,Ncols = " << fNrows << "," << fNcolumns << endl;
+ return 0;
+ }
+
+ Int_t gf=0;
+
+ if (fAttributes)
+ {
+ if (row <= fAttributes->GetSize())
+ {
+ AliAttribObj* a=(AliAttribObj*)fAttributes->At(row-1);
+ if (a)
+ {
+ if (col <= a->GetNcalflags())
+ {
+ gf=a->GetGainFlag(col);
+ return gf;
+ }
+ }
+ }
+ }
+
+ AliCalmodule* m=GetModule(row,col);
+ if (m) gf=m->GetGainFlag();
+ return gf;
+}
+///////////////////////////////////////////////////////////////////////////
+Int_t AliCalorimeter::GetOffsetFlag(Int_t row,Int_t col)
+{
+// Provide the value of the offset flag of a certain module.
+
+ // Check for (row,col) boundaries.
+ if (row<1 || col<1 || (fNrows && fNcolumns && (row>fNrows || col>fNcolumns)))
+ {
+ cout << " *AliCalorimeter::GetOffsetFlag* row,col : " << row << "," << col
+ << " out of range." << endl;
+ if (fNrows && fNcolumns) cout << " Nrows,Ncols = " << fNrows << "," << fNcolumns << endl;
+ return 0;
+ }
+
+ Int_t of=0;
+
+ if (fAttributes)
+ {
+ if (row <= fAttributes->GetSize())
+ {
+ AliAttribObj* a=(AliAttribObj*)fAttributes->At(row-1);
+ if (a)
+ {
+ if (col <= a->GetNcalflags())
+ {
+ of=a->GetOffsetFlag(col);
+ return of;
+ }
+ }
+ }