#include "AliMUONDigit.h"
+//-----------------------------------------------------------------------------
/// \class AliMUONDigit
/// A class representing a digit (with MC information if possible)
/// in the MUON spectrometer either in tracking or trigger chambers.
/// This class is used to represent either sdigits (purely simulated digit,
/// with no electronic noise whatsoever) or digits (simulated ones but
/// including electronic noise and de-calibration, to closely ressemble real ones).
+//-----------------------------------------------------------------------------
/// \cond CLASSIMP
ClassImp(AliMUONDigit)
fTcharges(0x0),
fTracks(0x0),
fHit(0),
+fTime(0),
fStatusMap(0)
{
/// Default constructor
fTcharges(0x0),
fTracks(0x0),
fHit(0),
+fTime(0),
fStatusMap(0)
{
/// Normal constructor
fTcharges(0x0),
fTracks(0x0),
fHit(0),
+fTime(0),
fStatusMap(0)
{
/// Copy constructor
fNtracks=0;
}
-//_____________________________________________________________________________
-Int_t AliMUONDigit::Compare(const TObject *obj) const
-{
- /// The order defined below is first by DE, then Signal, then
- /// manuId, and then manuChannel, i.e. it should be a total ordering...
-
- const AliMUONDigit* d = static_cast<const AliMUONDigit*>(obj);
-
- if ( DetElemId() > d->DetElemId() )
- {
- return 1;
- }
- else if ( DetElemId() < d->DetElemId() )
- {
- return -1;
- }
- else
- {
- if ( Charge() > d->Charge() )
- {
- return 1;
- }
- else if ( Charge() < d->Charge() )
- {
- return -1;
- }
- else
- {
- if ( ManuId() < d->ManuId() )
- {
- return 1;
- }
- else if ( ManuId() > d->ManuId() )
- {
- return -1;
- }
- else
- {
- return ( ManuChannel() < d->ManuChannel() ) ? 1 : -1;
- }
- }
- }
-}
-
//______________________________________________________________________________
void
AliMUONDigit::Copy(TObject& obj) const
}
digit.fHit = fHit;
+ digit.fTime = fTime;
digit.fStatusMap = fStatusMap;
}
}
else
{
- fFlags ^= fgkUsedMask;
+ fFlags &= ~fgkUsedMask;
}
}
}
else
{
- fFlags ^= fgkCalibratedMask;
+ fFlags &= ~fgkCalibratedMask;
}
}
}
else
{
- fFlags ^= fgkEfficiencyMask;
+ fFlags &= ~fgkEfficiencyMask;
}
}
}
else
{
- fFlags ^= fgkNoiseOnlyMask;
+ fFlags &= ~fgkNoiseOnlyMask;
}
}
{
/// Assignement operator.
- AliMUONDigit a(digit);
- a.Copy(*this);
+ if ( this != &digit )
+ {
+ digit.Copy(*this);
+ }
return *this;
}
}
else
{
- fFlags ^= fgkSaturatedMask;
+ fFlags &= ~fgkSaturatedMask;
}
}