inline Int_t GetBunchSize() const { return fBunchSize; }
inline void SetBunchSize(Int_t size)
{
- fPrewBunchSize = fBunchSize; fBunchSize = size;
+ fPrevBunchSize = fBunchSize; fBunchSize = size;
}
inline int CheckConsistency()
{
- if( (fPrevEndTimeBin - fPrewBunchSize ) <= fEndTimeBin )
+ if( fPrevEndTimeBin <= fEndTimeBin + fPrevBunchSize )
{
// printf("%s:%d, ERROR conistency check failed\n", __FILE__ , __LINE__ );
return DECODERERROR;
}
}
- inline UInt_t GetEndTimeBin() const { return fEndTimeBin; }
+ UInt_t GetEndTimeBin() const { return fEndTimeBin; }
inline void SetEndTimeBin(UInt_t bin) {fPrevEndTimeBin = fEndTimeBin; fEndTimeBin = bin; }
- inline UInt_t GetStartTimeBin() const { return (fEndTimeBin - (fBunchSize -1)); }
- inline void SetStartTimeBin(UInt_t bin) { fStartTimeBin = bin; }
+ UInt_t GetStartTimeBin() const { return (fEndTimeBin - (fBunchSize -1)); }
+ void SetStartTimeBin(UInt_t bin) { fStartTimeBin = bin; }
private:
AliAltroBunch& operator = (const AliAltroBunch& bunch);
Int_t fBunchSize; // total size of current bunch including timestamp and the size indicator (i.e a bunch with just one sample will have size 3)
UInt_t fEndTimeBin; // Time stamp of the last sample in the bunch in entities of sample indexes
UInt_t fStartTimeBin; // Time index of the first bin in the bunch
- Int_t fPrewBunchSize;
- Int_t fPrevEndTimeBin;
+ UInt_t fPrevBunchSize; // Previous bunch size
+ UInt_t fPrevEndTimeBin;// Previous end time bin
// bool fIsFirstBunch;
ClassDef(AliAltroBunch,0) // container class for Altro bunches