from NofOfPads-1
(Laurent)
return fMaxNofPadsY;
}
+//_____________________________________________________________________________
+Int_t
+AliMpSlat::GetMaxPadIndexX() const
+{
+ AliMpPCB* last = GetPCB(GetSize()-1);
+ if (last)
+ {
+ return last->Ixmax();
+ }
+ return 0;
+}
+
//_____________________________________________________________________________
const char*
AliMpSlat::GetName() const
*/
Int_t GetMaxNofPadsY() const;
+ /** Returns the max index useable in x-direction.
+ Note that this can be different from GetNofPadsX()-1 for rounded slats.
+ */
+ Int_t GetMaxPadIndexX() const;
+
/// Return the number of electronic cards (either manu or local board).
Int_t GetNofElectronicCards() const;
//
// Dtor (empty).
//
- // Int_t i(0);//just to be able to put a breakpoint in gdb
+ Int_t i(0);//just to be able to put a breakpoint in gdb
AliDebug(1,Form("this=%p",this));
}
// Returns the value of the largest pad index in x-direction.
//
- return fkSlat->GetNofPadsX()-1;
+ return fkSlat->GetMaxPadIndexX();
}
//_____________________________________________________________________________