AliRoot Core  a565103 (a565103)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
AliMUONRealDigit Class Reference

Implementation of AliMUONVDigit for real (i.e. not simulated) digits. More...

#include <AliMUONRealDigit.h>

Inheritance diagram for AliMUONRealDigit:

Public Member Functions

 AliMUONRealDigit ()
 
 AliMUONRealDigit (Int_t detElemId, Int_t manuId, Int_t manuChannel, Int_t cathode)
 
virtual ~AliMUONRealDigit ()
 
virtual Int_t DetElemId () const
 Return the detection element this digit belongs to. More...
 
virtual Int_t PadX () const
 The x-index of this digit (>=0) More...
 
virtual Int_t PadY () const
 The y-index of this digit (>=0) More...
 
virtual Int_t Cathode () const
 Return the cathode this digit belongs to. More...
 
virtual Float_t Charge () const
 Charge (should be non zero if calibrated) More...
 
virtual Int_t ADC () const
 ADC value (it is the real raw adc value, not pedestal subtracted) More...
 
virtual Int_t ManuId () const
 Return the manu chip this digit belongs to. More...
 
virtual Int_t ManuChannel () const
 Return the manu channel this digits is connected to. More...
 
virtual Bool_t IsSaturated () const
 Whether this digit's charge has saturated the electronics. More...
 
virtual void Saturated (Bool_t saturated=kTRUE)
 Set the saturation status. More...
 
virtual Bool_t IsNoiseOnly () const
 We have no idea whether a real digit is noise only or not ;-) More...
 
virtual Bool_t IsEfficiencyApplied () const
 Again, this is for simulation only. More...
 
virtual Bool_t IsCalibrated () const
 Whether this digit is calibrated or not. More...
 
virtual void Calibrated (Bool_t value)
 Set the calibration status. More...
 
virtual Bool_t IsChargeInFC () const
 Whether this digit has its charge already in fC. More...
 
virtual void ChargeInFC (Bool_t value=kTRUE)
 Set the charge unit value. More...
 
virtual Bool_t IsUsed () const
 Whether this digit is part of a cluster or something else. More...
 
virtual void Used (Bool_t value)
 Set the used status. More...
 
virtual UInt_t StatusMap () const
 The status map (i.e. the status of the neighbours) of this digit. More...
 
virtual void SetStatusMap (UInt_t statusMap)
 Set the status map value. More...
 
virtual void SetADC (Int_t adc)
 Set the ADC value (should be between 0 and 4095) More...
 
virtual void SetPadXY (Int_t padx, Int_t pady)
 Set the ix and iy of this digit. More...
 
virtual void SetCharge (Float_t q)
 Set the charge. More...
 
virtual Bool_t MergeWith (const AliMUONVDigit &other)
 Merge this with other. More...
 
virtual Bool_t HasMCInformation () const
 No, this digit is not a Monte-Carlo one, sorry. More...
 
- Public Member Functions inherited from AliMUONVDigit
 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 NoiseOnly (Bool_t=kTRUE)
 Set the noiseOnly status. More...
 
virtual void EfficiencyApplied (Bool_t=kTRUE)
 Set the efficiencyApplied status. More...
 
virtual Bool_t IsConverted () const
 Whether or not this digit was obtained from a conversion (e.g. real to simulated) More...
 
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
 
virtual Int_t Hit () const
 Hit number that contributed to this simulated digit. More...
 
virtual void SetHit (Int_t)
 Set the hit number. More...
 
virtual Float_t Time () const
 Hit age. More...
 
virtual void SetTime (Float_t)
 Set hit age. More...
 
virtual Int_t Ntracks () const
 Number of tracks contributing to this digit. More...
 
virtual void AddTrack (Int_t, Float_t)
 Add a track (and its charge) to the list of tracks we handle. More...
 
virtual Int_t Track (Int_t) const
 Return the i-th track number. More...
 
virtual Float_t TrackCharge (Int_t) const
 Return the i-th track charge. More...
 
virtual void PatchTracks (Int_t)
 Patch track with a mask. More...
 

Private Types

enum  EStatusBit { kSaturated = BIT(20), kUsed = BIT(21), kCalibrated = BIT(22), kChargeInFC = BIT(23) }
 Various statuses of the digit. More...
 

Private Attributes

Float_t fCharge
 Charge on pad. More...
 
UInt_t fPadXY
 Pad number along x and Y (packed) More...
 
Int_t fADC
 Raw ADC value. More...
 
UInt_t fStatusMap
 Neighbouring pad status (whether ped, gains, hv were ok or not) More...
 

Additional Inherited Members

- Static Public Member Functions inherited from AliMUONVDigit
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...
 

Detailed Description

Implementation of AliMUONVDigit for real (i.e. not simulated) digits.

Implementation of AliMUONVDigit for real digit.

This class should store the bare minimum in order to save disk space

Author
Laurent Aphecetche

Definition at line 19 of file AliMUONRealDigit.h.

Member Enumeration Documentation

Various statuses of the digit.

Enumerator
kSaturated 

to indicate that manas amplifier has saturated

kUsed 

whether the digit is used (e.g. in a cluster)

kCalibrated 

whether the digit has been calibrated or not

kChargeInFC 

whether the digit has a charge in fC or not

Definition at line 93 of file AliMUONRealDigit.h.

Constructor & Destructor Documentation

AliMUONRealDigit::AliMUONRealDigit ( )

default ctor

Definition at line 35 of file AliMUONRealDigit.cxx.

AliMUONRealDigit::AliMUONRealDigit ( Int_t  detElemId,
Int_t  manuId,
Int_t  manuChannel,
Int_t  cathode 
)

normal ctor

Definition at line 46 of file AliMUONRealDigit.cxx.

AliMUONRealDigit::~AliMUONRealDigit ( )
virtual

empty ctor

Definition at line 58 of file AliMUONRealDigit.cxx.

Member Function Documentation

virtual Int_t AliMUONRealDigit::ADC ( ) const
inlinevirtual

ADC value (it is the real raw adc value, not pedestal subtracted)

Implements AliMUONVDigit.

Definition at line 37 of file AliMUONRealDigit.h.

virtual void AliMUONRealDigit::Calibrated ( Bool_t  value)
inlinevirtual

Set the calibration status.

Implements AliMUONVDigit.

Definition at line 58 of file AliMUONRealDigit.h.

virtual Int_t AliMUONRealDigit::Cathode ( ) const
inlinevirtual

Return the cathode this digit belongs to.

Implements AliMUONVDigit.

Definition at line 31 of file AliMUONRealDigit.h.

Referenced by MergeWith().

virtual Float_t AliMUONRealDigit::Charge ( ) const
inlinevirtual

Charge (should be non zero if calibrated)

Implements AliMUONVDigit.

Definition at line 34 of file AliMUONRealDigit.h.

virtual void AliMUONRealDigit::ChargeInFC ( Bool_t  value = kTRUE)
inlinevirtual

Set the charge unit value.

Implements AliMUONVDigit.

Definition at line 63 of file AliMUONRealDigit.h.

virtual Int_t AliMUONRealDigit::DetElemId ( ) const
inlinevirtual

Return the detection element this digit belongs to.

Implements AliMUONVDigit.

Definition at line 27 of file AliMUONRealDigit.h.

Referenced by MergeWith().

virtual Bool_t AliMUONRealDigit::HasMCInformation ( ) const
inlinevirtual

No, this digit is not a Monte-Carlo one, sorry.

Implements AliMUONVDigit.

Definition at line 84 of file AliMUONRealDigit.h.

virtual Bool_t AliMUONRealDigit::IsCalibrated ( ) const
inlinevirtual

Whether this digit is calibrated or not.

Implements AliMUONVDigit.

Definition at line 56 of file AliMUONRealDigit.h.

virtual Bool_t AliMUONRealDigit::IsChargeInFC ( ) const
inlinevirtual

Whether this digit has its charge already in fC.

Reimplemented from AliMUONVDigit.

Definition at line 61 of file AliMUONRealDigit.h.

virtual Bool_t AliMUONRealDigit::IsEfficiencyApplied ( ) const
inlinevirtual

Again, this is for simulation only.

Implements AliMUONVDigit.

Definition at line 53 of file AliMUONRealDigit.h.

virtual Bool_t AliMUONRealDigit::IsNoiseOnly ( ) const
inlinevirtual

We have no idea whether a real digit is noise only or not ;-)

Implements AliMUONVDigit.

Definition at line 50 of file AliMUONRealDigit.h.

virtual Bool_t AliMUONRealDigit::IsSaturated ( ) const
inlinevirtual

Whether this digit's charge has saturated the electronics.

Implements AliMUONVDigit.

Definition at line 45 of file AliMUONRealDigit.h.

virtual Bool_t AliMUONRealDigit::IsUsed ( ) const
inlinevirtual

Whether this digit is part of a cluster or something else.

Implements AliMUONVDigit.

Definition at line 66 of file AliMUONRealDigit.h.

virtual Int_t AliMUONRealDigit::ManuChannel ( ) const
inlinevirtual

Return the manu channel this digits is connected to.

Implements AliMUONVDigit.

Definition at line 42 of file AliMUONRealDigit.h.

virtual Int_t AliMUONRealDigit::ManuId ( ) const
inlinevirtual

Return the manu chip this digit belongs to.

Implements AliMUONVDigit.

Definition at line 40 of file AliMUONRealDigit.h.

Bool_t AliMUONRealDigit::MergeWith ( const AliMUONVDigit other)
virtual

Merge this with other.

Merge with src.

Implements AliMUONVDigit.

Definition at line 65 of file AliMUONRealDigit.cxx.

Int_t AliMUONRealDigit::PadX ( ) const
virtual

The x-index of this digit (>=0)

Return (integer) position in x (within the detection element)

Implements AliMUONVDigit.

Definition at line 84 of file AliMUONRealDigit.cxx.

Referenced by MergeWith().

Int_t AliMUONRealDigit::PadY ( ) const
virtual

The y-index of this digit (>=0)

Return (integer) position in y (within the detection element)

Implements AliMUONVDigit.

Definition at line 92 of file AliMUONRealDigit.cxx.

Referenced by MergeWith().

virtual void AliMUONRealDigit::Saturated ( Bool_t  saturated = kTRUE)
inlinevirtual

Set the saturation status.

Implements AliMUONVDigit.

Definition at line 47 of file AliMUONRealDigit.h.

virtual void AliMUONRealDigit::SetADC ( Int_t  adc)
inlinevirtual

Set the ADC value (should be between 0 and 4095)

Implements AliMUONVDigit.

Definition at line 76 of file AliMUONRealDigit.h.

virtual void AliMUONRealDigit::SetCharge ( Float_t  q)
inlinevirtual

Set the charge.

Implements AliMUONVDigit.

Definition at line 79 of file AliMUONRealDigit.h.

void AliMUONRealDigit::SetPadXY ( Int_t  padx,
Int_t  pady 
)
virtual

Set the ix and iy of this digit.

Set the pad (integer) positions

Implements AliMUONVDigit.

Definition at line 100 of file AliMUONRealDigit.cxx.

virtual void AliMUONRealDigit::SetStatusMap ( UInt_t  statusMap)
inlinevirtual

Set the status map value.

Implements AliMUONVDigit.

Definition at line 73 of file AliMUONRealDigit.h.

virtual UInt_t AliMUONRealDigit::StatusMap ( ) const
inlinevirtual

The status map (i.e. the status of the neighbours) of this digit.

Implements AliMUONVDigit.

Definition at line 71 of file AliMUONRealDigit.h.

virtual void AliMUONRealDigit::Used ( Bool_t  value)
inlinevirtual

Set the used status.

Implements AliMUONVDigit.

Definition at line 68 of file AliMUONRealDigit.h.

Member Data Documentation

Int_t AliMUONRealDigit::fADC
private

Raw ADC value.

Definition at line 89 of file AliMUONRealDigit.h.

Referenced by ADC(), and SetADC().

Float_t AliMUONRealDigit::fCharge
private

Charge on pad.

Definition at line 87 of file AliMUONRealDigit.h.

Referenced by Charge(), and SetCharge().

UInt_t AliMUONRealDigit::fPadXY
private

Pad number along x and Y (packed)

Definition at line 88 of file AliMUONRealDigit.h.

Referenced by PadX(), PadY(), and SetPadXY().

UInt_t AliMUONRealDigit::fStatusMap
private

Neighbouring pad status (whether ped, gains, hv were ok or not)

Definition at line 90 of file AliMUONRealDigit.h.

Referenced by SetStatusMap(), and StatusMap().


The documentation for this class was generated from the following files: