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
}
digit.fHit = fHit;
+ digit.fTime = fTime;
digit.fStatusMap = fStatusMap;
}
return (fFlags & fgkCalibratedMask );
}
+//_____________________________________________________________________________
+Bool_t
+AliMUONDigit::IsConverted() const
+{
+ /// Whether this digit is converted or not
+
+ return (fFlags & fgkConverted);
+}
+
+//_____________________________________________________________________________
+Bool_t
+AliMUONDigit::IsChargeInFC() const
+{
+ /// Whether this digit is converted or not
+
+ return (fFlags & fgkChargeInFC);
+}
+
//_____________________________________________________________________________
Bool_t
}
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;
+ }
+}
+
+//_____________________________________________________________________________
+void
+AliMUONDigit::Converted(Bool_t value)
+{
+ /// Set the convertion status of this digit.
+
+ if ( value )
+ {
+ fFlags |= fgkConverted;
+ }
+ else
+ {
+ fFlags &= ~fgkConverted;
+ }
+}
+
+//_____________________________________________________________________________
+void
+AliMUONDigit::ChargeInFC(Bool_t value)
+{
+ /// Set the convertion status of this digit.
+
+ if ( value )
+ {
+ fFlags |= fgkChargeInFC;
+ }
+ else
+ {
+ fFlags &= ~fgkChargeInFC;
}
}