+//_____________________________________________________________________________
+Bool_t
+AliMUONDigit::IsCalibrated() const
+{
+ /// Whether this digit is calibrated or not
+
+ 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
+AliMUONDigit::IsUsed() const
+{
+ /// Whether this digit is used or not (in a cluster, for instance)
+
+ return (fFlags & fgkUsedMask );
+}
+
+//_____________________________________________________________________________
+Bool_t
+AliMUONDigit::IsEfficiencyApplied() const
+{
+ /// Whether this digit had efficiency applied or not
+
+ return (fFlags & fgkEfficiencyMask );
+}
+
+//_____________________________________________________________________________
+void
+AliMUONDigit::Used(Bool_t value)
+{
+ /// Set the Used status of this digit.
+
+ if ( value )
+ {
+ fFlags |= fgkUsedMask;
+ }
+ else
+ {
+ fFlags &= ~fgkUsedMask;
+ }
+}
+
+//_____________________________________________________________________________
+void
+AliMUONDigit::Calibrated(Bool_t value)
+{
+ /// Set the Calibrated status of this digit.
+
+ if ( value )
+ {
+ fFlags |= fgkCalibratedMask;
+ }
+ else
+ {
+ fFlags &= ~fgkCalibratedMask;
+ }
+}
+
+//_____________________________________________________________________________
+void
+AliMUONDigit::EfficiencyApplied(Bool_t value)
+{
+ /// Set the EfficiencyApplied status of this digit.
+
+ if ( value )
+ {
+ fFlags |= fgkEfficiencyMask;
+ }
+ else
+ {
+ fFlags &= ~fgkEfficiencyMask;
+ }
+}
+
+//_____________________________________________________________________________
+Bool_t
+AliMUONDigit::MergeWith(const AliMUONVDigit& src)
+{
+ /// Merge with src.
+
+ Bool_t check = ( src.DetElemId() == DetElemId() &&
+ src.PadX() == PadX() &&
+ src.PadY() == PadY() &&
+ src.Cathode() == Cathode() );
+ if (!check)
+ {
+ return kFALSE;
+ }
+
+ AddCharge(src.Charge());
+ for ( Int_t i = 0; i < src.Ntracks(); ++i )
+ {
+ AddTrack(src.Track(i),src.TrackCharge(i));
+ }
+ return kTRUE;
+}
+