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;
}
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;
}
}