![]() |
AliRoot Core
v5-06-15 (45dab64)
|
MUON digit. More...
#include <AliMUONDigit.h>
Public Member Functions | |
AliMUONDigit () | |
AliMUONDigit (Int_t detElemId, Int_t manuId, Int_t manuChannel, Int_t cathode) | |
AliMUONDigit (const AliMUONDigit &rhs) | |
virtual | ~AliMUONDigit () |
AliMUONDigit & | operator= (const AliMUONDigit &rhs) |
virtual TObject * | Clone (const char *="") const |
Own clone methods (as the default TObject::Clone turned out to be pretty slow !) More... | |
virtual Bool_t | HasMCInformation () const |
Below are methods only relevant for MC digigts. More... | |
virtual Int_t | DetElemId () const |
Return detection element ID. More... | |
virtual Int_t | PadX () const |
Return pad number along x. More... | |
virtual Int_t | PadY () const |
Return pad number along y. More... | |
virtual Int_t | Cathode () const |
Return cathode number. More... | |
virtual Float_t | Charge () const |
Return signal amplitude. More... | |
virtual Int_t | Hit () const |
Return MC hit number. More... | |
virtual Float_t | Time () const |
Hit age. More... | |
virtual Int_t | Ntracks () const |
Return MC hit age. More... | |
virtual void | AddTrack (Int_t trackNumber, Float_t trackCharge) |
Add a track (and its charge) to the list of tracks we handle. More... | |
virtual Int_t | Track (Int_t i) const |
Return the i-th track number. More... | |
virtual Float_t | TrackCharge (Int_t i) const |
Return the i-th track charge. More... | |
virtual Int_t | ADC () const |
Return ADC value. More... | |
virtual Int_t | ManuId () const |
Return Id of the MANU chip. More... | |
virtual Int_t | ManuChannel () const |
Return Channel within the MANU chip. More... | |
virtual Bool_t | IsSaturated () const |
Whether the ADC has saturated. More... | |
virtual Bool_t | IsNoiseOnly () const |
Whether this (simulated) digit is purely noise. More... | |
virtual Bool_t | IsEfficiencyApplied () const |
Whether this (simulated) digit got corrected by chamber efficiency. More... | |
virtual Bool_t | IsConverted () const |
Whether or not this digit was obtained from a conversion (e.g. real to simulated) More... | |
virtual Bool_t | IsChargeInFC () const |
Whether this digit has charge in femto coulomb (see note 1 in AliMUONVDigit.cxx) More... | |
virtual UInt_t | StatusMap () const |
Return Neighbouring pad status. More... | |
virtual void | NoiseOnly (Bool_t value=kTRUE) |
Set the noiseOnly status. More... | |
virtual void | Saturated (Bool_t saturated=kTRUE) |
Set the saturation status. More... | |
virtual void | EfficiencyApplied (Bool_t value=kTRUE) |
Set the efficiencyApplied status. More... | |
virtual void | Converted (Bool_t value=kTRUE) |
virtual void | ChargeInFC (Bool_t value=kTRUE) |
Set the unit value (see note 1 in AliMUONVDigit.cxx) More... | |
virtual void | SetADC (Int_t adc) |
Set ADC value. More... | |
virtual void | SetPadXY (Int_t padx, Int_t pady) |
Set pad number along x. More... | |
virtual void | SetCharge (Float_t q) |
Set charge. More... | |
virtual void | SetHit (Int_t n) |
Set MC hit number. More... | |
virtual void | SetTime (Float_t t) |
Set MC hit age. More... | |
virtual void | SetStatusMap (UInt_t statusMap) |
Set status map. More... | |
virtual void | Copy (TObject &digit) const |
virtual void | Clear (Option_t *) |
virtual void | PatchTracks (Int_t mask) |
Patch track with a mask. More... | |
virtual Bool_t | MergeWith (const AliMUONVDigit &other) |
Merge this with other. More... | |
virtual Bool_t | IsUsed () const |
Whether this digit is used somewhere (typically in a cluster) More... | |
virtual void | Used (Bool_t value) |
Set the used status. More... | |
virtual Bool_t | IsCalibrated () const |
Whether this digit has been calibrated or not (see note 1 in AliMUONVDigit.cxx) More... | |
virtual void | Calibrated (Bool_t value) |
Set the calibrated status (see note 1 in AliMUONVDigit.cxx) More... | |
virtual UInt_t | GetUniqueID () const |
![]() | |
AliMUONVDigit () | |
AliMUONVDigit (Int_t detElemId, Int_t manuId, Int_t manuChannel, Int_t cathode) | |
virtual | ~AliMUONVDigit () |
virtual Bool_t | IsEqual (const TObject *object) const |
virtual Bool_t | IsSortable () const |
Advertise that we can be sorted in TCollections. More... | |
virtual Int_t | Compare (const TObject *object) const |
virtual const char * | GetName () const |
virtual void | AddCharge (Float_t q) |
Add a charge. More... | |
virtual Bool_t | IsTracker () const |
Whether this digit is a tracker digit (false if belongs to trigger) More... | |
virtual Bool_t | IsTrigger () const |
virtual void | Print (Option_t *opt="") const |
Private Attributes | |
Int_t | fDetElemId |
Detection element ID. More... | |
Int_t | fManuId |
Id of the MANU chip. More... | |
Int_t | fManuChannel |
Channel within the MANU chip. More... | |
Float_t | fSignal |
Signal amplitude. More... | |
Int_t | fPadX |
Pad number along x. More... | |
Int_t | fPadY |
Pad number along y. More... | |
Int_t | fCathode |
Cathode number. More... | |
Int_t | fADC |
ADC value. More... | |
UInt_t | fFlags |
Special flags (e.g. is the signal an overflow ?) More... | |
Int_t | fNtracks |
MC tracks making to this digit. More... | |
Float_t * | fTcharges |
charges of MC track making this digit More... | |
Int_t * | fTracks |
primary MC tracks making this digit More... | |
Int_t | fHit |
MC hit number - temporary solution. More... | |
Float_t | fTime |
MC hit age. More... | |
UInt_t | fStatusMap |
Neighbouring pad status (whether ped, gains, hv were ok or not) More... | |
Static Private Attributes | |
static const UInt_t | fgkSaturatedMask = 0x1 |
the mask (part of fFlags) to indicate this digit is saturated More... | |
static const UInt_t | fgkUsedMask = 0x10 |
whether this digit is used by whatever other object (typically a cluster, though) More... | |
static const UInt_t | fgkCalibratedMask = 0x100 |
whether this digits has been calibrated More... | |
static const UInt_t | fgkNoiseOnlyMask = 0x1000 |
indicate a simulated digit due to noise only More... | |
static const UInt_t | fgkEfficiencyMask = 0x2000 |
indicate chamber efficiency has been applied to a simulated digit More... | |
static const UInt_t | fgkConverted = 0x4000 |
has been converted from a real digit More... | |
static const UInt_t | fgkChargeInFC = 0x8000 |
charge unit are femto coulomb More... | |
Additional Inherited Members | |
![]() | |
static UInt_t | BuildUniqueID (Int_t detElemId, Int_t manuId, Int_t manuChannel, Int_t cathode) |
static void | DecodeUniqueID (UInt_t uniqueID, Int_t &detElemId, Int_t &manuId, Int_t &manuChannel, Int_t &cathode) |
static Int_t | DetElemId (UInt_t uniqueID) |
static Int_t | ManuId (UInt_t uniqueID) |
static Int_t | ManuChannel (UInt_t uniqueID) |
static Int_t | Cathode (UInt_t uniqueID) |
static Int_t | LocalBoardNumber (UInt_t uniqueID) |
Return the localBoardNumber from the uniqueID. More... | |
static Int_t | LocalBoardChannel (UInt_t uniqueID) |
Return the localBoardChannel from the uniqueID. More... | |
MUON digit.
A class representing a digit (with MC information if possible) in the MUON spectrometer either in tracking or trigger chambers.
A digit holds the signal (proportional to a charge) on a pad (or strip).
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).
Definition at line 17 of file AliMUONDigit.h.
AliMUONDigit::AliMUONDigit | ( | ) |
AliMUONDigit::AliMUONDigit | ( | Int_t | detElemId, |
Int_t | manuId, | ||
Int_t | manuChannel, | ||
Int_t | cathode | ||
) |
Normal constructor
Definition at line 61 of file AliMUONDigit.cxx.
AliMUONDigit::AliMUONDigit | ( | const AliMUONDigit & | rhs | ) |
Copy constructor
Definition at line 86 of file AliMUONDigit.cxx.
|
virtual |
Destructor
Definition at line 110 of file AliMUONDigit.cxx.
|
inlinevirtual |
|
virtual |
Add a track (and its charge) to the list of tracks we handle.
Add 1 track information to the track list we keep. The implementation below is dumb, you've been warned !
Reimplemented from AliMUONVDigit.
Definition at line 120 of file AliMUONDigit.cxx.
Referenced by MergeWith().
|
virtual |
Set the calibrated status (see note 1 in AliMUONVDigit.cxx)
Set the Calibrated status of this digit.
Implements AliMUONVDigit.
Definition at line 297 of file AliMUONDigit.cxx.
Referenced by AliMUON::Raw2SDigits().
|
inlinevirtual |
Return cathode number.
Implements AliMUONVDigit.
Definition at line 36 of file AliMUONDigit.h.
Referenced by GetUniqueID(), and MergeWith().
|
inlinevirtual |
|
virtual |
Set the unit value (see note 1 in AliMUONVDigit.cxx)
Set the convertion status of this digit.
Implements AliMUONVDigit.
Definition at line 425 of file AliMUONDigit.cxx.
|
virtual |
Delete the internal track arrays (which are dynamically allocated). This is to insure we can put those digits in e.g. TClonesArray w/o leaking memory.
Reset this digit, in particular the internal arrays are deleted.
Definition at line 161 of file AliMUONDigit.cxx.
|
inlinevirtual |
Own clone methods (as the default TObject::Clone turned out to be pretty slow !)
Definition at line 29 of file AliMUONDigit.h.
|
virtual |
Set the convertion status of this digit.
Definition at line 409 of file AliMUONDigit.cxx.
|
virtual |
|
inlinevirtual |
Return detection element ID.
Implements AliMUONVDigit.
Definition at line 33 of file AliMUONDigit.h.
Referenced by AliMUONDigitStoreV1::Add(), GetUniqueID(), and MergeWith().
|
virtual |
Set the efficiencyApplied status.
Set the EfficiencyApplied status of this digit.
Reimplemented from AliMUONVDigit.
Definition at line 313 of file AliMUONDigit.cxx.
|
virtual |
Return a single integer with id information
Definition at line 469 of file AliMUONDigit.cxx.
|
inlinevirtual |
Below are methods only relevant for MC digigts.
Whether we implement MC methods.
Implements AliMUONVDigit.
Definition at line 31 of file AliMUONDigit.h.
|
inlinevirtual |
Return MC hit number.
Reimplemented from AliMUONVDigit.
Definition at line 40 of file AliMUONDigit.h.
|
virtual |
Whether this digit has been calibrated or not (see note 1 in AliMUONVDigit.cxx)
Whether this digit is calibrated or not
Implements AliMUONVDigit.
Definition at line 235 of file AliMUONDigit.cxx.
|
virtual |
Whether this digit has charge in femto coulomb (see note 1 in AliMUONVDigit.cxx)
Whether this digit is converted or not
Reimplemented from AliMUONVDigit.
Definition at line 253 of file AliMUONDigit.cxx.
|
virtual |
Whether or not this digit was obtained from a conversion (e.g. real to simulated)
Whether this digit is converted or not
Reimplemented from AliMUONVDigit.
Definition at line 244 of file AliMUONDigit.cxx.
|
virtual |
Whether this (simulated) digit got corrected by chamber efficiency.
Whether this digit had efficiency applied or not
Implements AliMUONVDigit.
Definition at line 272 of file AliMUONDigit.cxx.
|
virtual |
Whether this (simulated) digit is purely noise.
Whether this (simulated only) digit is only due to noise.
Implements AliMUONVDigit.
Definition at line 217 of file AliMUONDigit.cxx.
|
virtual |
Whether the ADC has saturated.
Whether this digit is saturated or not.
Implements AliMUONVDigit.
Definition at line 226 of file AliMUONDigit.cxx.
|
virtual |
Whether this digit is used somewhere (typically in a cluster)
Whether this digit is used or not (in a cluster, for instance)
Implements AliMUONVDigit.
Definition at line 263 of file AliMUONDigit.cxx.
|
inlinevirtual |
Return Channel within the MANU chip.
Implements AliMUONVDigit.
Definition at line 51 of file AliMUONDigit.h.
Referenced by GetUniqueID().
|
inlinevirtual |
Return Id of the MANU chip.
Implements AliMUONVDigit.
Definition at line 50 of file AliMUONDigit.h.
Referenced by GetUniqueID().
|
virtual |
Merge this with other.
Merge with src.
Implements AliMUONVDigit.
Definition at line 329 of file AliMUONDigit.cxx.
|
virtual |
Set the noiseOnly status.
Set the NoiseOnly status of this digit.
Reimplemented from AliMUONVDigit.
Definition at line 352 of file AliMUONDigit.cxx.
|
inlinevirtual |
Return MC hit age.
Return MC tracks making to this digit
Reimplemented from AliMUONVDigit.
Definition at line 44 of file AliMUONDigit.h.
Referenced by AddTrack(), and PatchTracks().
AliMUONDigit & AliMUONDigit::operator= | ( | const AliMUONDigit & | rhs | ) |
Assignement operator.
Definition at line 368 of file AliMUONDigit.cxx.
|
inlinevirtual |
Return pad number along x.
Implements AliMUONVDigit.
Definition at line 34 of file AliMUONDigit.h.
Referenced by MergeWith().
|
inlinevirtual |
Return pad number along y.
Implements AliMUONVDigit.
Definition at line 35 of file AliMUONDigit.h.
Referenced by MergeWith().
|
virtual |
Patch track with a mask.
Add mask to each track number.
Reimplemented from AliMUONVDigit.
Definition at line 381 of file AliMUONDigit.cxx.
|
virtual |
Set the saturation status.
Set the saturation status of this digit.
Implements AliMUONVDigit.
Definition at line 393 of file AliMUONDigit.cxx.
|
inlinevirtual |
|
inlinevirtual |
Set charge.
Implements AliMUONVDigit.
Definition at line 67 of file AliMUONDigit.h.
Referenced by AliMUONDigitStoreV2S::AddConcreteDigit(), AliMUONResponseTrigger::DisIntegrate(), AliMUONResponseTriggerV1::DisIntegrate(), and AliMUONResponseV0::DisIntegrate().
|
inlinevirtual |
|
inlinevirtual |
Set pad number along x.
Implements AliMUONVDigit.
Definition at line 66 of file AliMUONDigit.h.
Referenced by AliMUONResponseTrigger::DisIntegrate(), AliMUONResponseTriggerV1::DisIntegrate(), and AliMUONResponseV0::DisIntegrate().
|
inlinevirtual |
|
inlinevirtual |
|
inlinevirtual |
Return Neighbouring pad status.
Implements AliMUONVDigit.
Definition at line 57 of file AliMUONDigit.h.
|
inlinevirtual |
|
virtual |
Return the i-th track number.
Return the i-th track number (if i is >=0 and < Ntracks()) or -1.
Reimplemented from AliMUONVDigit.
Definition at line 441 of file AliMUONDigit.cxx.
Referenced by AddTrack().
|
virtual |
Return the i-th track charge.
Return the i-th track charge (if i is >=0 and < Ntracjs()) or -1.
Reimplemented from AliMUONVDigit.
Definition at line 455 of file AliMUONDigit.cxx.
|
virtual |
Set the used status.
Set the Used status of this digit.
Implements AliMUONVDigit.
Definition at line 281 of file AliMUONDigit.cxx.
|
private |
ADC value.
Definition at line 102 of file AliMUONDigit.h.
|
private |
|
private |
Detection element ID.
Definition at line 94 of file AliMUONDigit.h.
Referenced by Copy(), and DetElemId().
|
private |
Special flags (e.g. is the signal an overflow ?)
Definition at line 103 of file AliMUONDigit.h.
Referenced by Calibrated(), ChargeInFC(), Converted(), Copy(), EfficiencyApplied(), IsCalibrated(), IsChargeInFC(), IsConverted(), IsEfficiencyApplied(), IsNoiseOnly(), IsSaturated(), IsUsed(), NoiseOnly(), Saturated(), and Used().
|
staticprivate |
whether this digits has been calibrated
Definition at line 120 of file AliMUONDigit.h.
Referenced by Calibrated(), and IsCalibrated().
|
staticprivate |
charge unit are femto coulomb
Definition at line 124 of file AliMUONDigit.h.
Referenced by ChargeInFC(), and IsChargeInFC().
|
staticprivate |
has been converted from a real digit
Definition at line 123 of file AliMUONDigit.h.
Referenced by Converted(), and IsConverted().
|
staticprivate |
indicate chamber efficiency has been applied to a simulated digit
Definition at line 122 of file AliMUONDigit.h.
Referenced by EfficiencyApplied(), and IsEfficiencyApplied().
|
staticprivate |
indicate a simulated digit due to noise only
Definition at line 121 of file AliMUONDigit.h.
Referenced by IsNoiseOnly(), and NoiseOnly().
|
staticprivate |
the mask (part of fFlags) to indicate this digit is saturated
Definition at line 118 of file AliMUONDigit.h.
Referenced by IsSaturated(), and Saturated().
|
staticprivate |
whether this digit is used by whatever other object (typically a cluster, though)
Definition at line 119 of file AliMUONDigit.h.
|
private |
MC hit number - temporary solution.
Definition at line 113 of file AliMUONDigit.h.
|
private |
Channel within the MANU chip.
Definition at line 96 of file AliMUONDigit.h.
Referenced by Copy(), and ManuChannel().
|
private |
Id of the MANU chip.
Definition at line 95 of file AliMUONDigit.h.
|
private |
MC tracks making to this digit.
Definition at line 105 of file AliMUONDigit.h.
Referenced by AddTrack(), Clear(), Copy(), Ntracks(), Track(), and TrackCharge().
|
private |
Pad number along x.
Definition at line 99 of file AliMUONDigit.h.
Referenced by Copy(), PadX(), and SetPadXY().
|
private |
Pad number along y.
Definition at line 100 of file AliMUONDigit.h.
Referenced by Copy(), PadY(), and SetPadXY().
|
private |
Signal amplitude.
Definition at line 97 of file AliMUONDigit.h.
Referenced by Charge(), Copy(), and SetCharge().
|
private |
Neighbouring pad status (whether ped, gains, hv were ok or not)
Definition at line 116 of file AliMUONDigit.h.
Referenced by Copy(), SetStatusMap(), and StatusMap().
|
private |
charges of MC track making this digit
Definition at line 108 of file AliMUONDigit.h.
Referenced by AddTrack(), Clear(), Copy(), TrackCharge(), and ~AliMUONDigit().
|
private |
MC hit age.
Definition at line 114 of file AliMUONDigit.h.
|
private |
primary MC tracks making this digit
Definition at line 111 of file AliMUONDigit.h.
Referenced by AddTrack(), Clear(), Copy(), PatchTracks(), Track(), and ~AliMUONDigit().