![]() |
AliRoot Core
edcc906 (edcc906)
|
Interface for a digit container. More...
#include <AliMUONVDigitStore.h>
Public Types | |
enum | EReplacePolicy { kAllow, kDeny, kMerge, kIgnore } |
Replacement policy : what to do when adding a digit to the store. More... | |
Public Member Functions | |
AliMUONVDigitStore () | |
virtual | ~AliMUONVDigitStore () |
virtual Bool_t | Add (TObject *object) |
Add an object, if it is of the right class. More... | |
virtual AliMUONVDigitStore * | Create () const =0 |
Create an (empty) object of the same concrete class as *this. More... | |
virtual AliMUONVDigit * | CreateDigit (Int_t detElemId, Int_t manuId, Int_t manuChannel, Int_t cathode) const =0 |
Create a digit. More... | |
virtual AliMUONVDigit * | Add (Int_t detElemId, Int_t manuId, Int_t manuChannel, Int_t cathode, EReplacePolicy replace) |
Add a digit and return the newly created digit. More... | |
virtual AliMUONVDigit * | Add (const AliMUONVDigit &digit, EReplacePolicy replace)=0 |
virtual TIterator * | CreateIterator () const =0 |
Create an iterator to loop over all our digits. More... | |
virtual TIterator * | CreateIterator (Int_t firstDetElemId, Int_t lastDetElemId, Int_t cathode=2) const =0 |
virtual TIterator * | CreateTrackerIterator () const =0 |
Create an iterator to loop over tracker digits only. More... | |
virtual TIterator * | CreateTriggerIterator () const =0 |
Create an iterator to loop over trigger digits only. More... | |
virtual AliMUONVDigit * | FindObject (const TObject *object) const |
Find an object (default is to forward to FindObject(object->GetUniqueID()) More... | |
virtual AliMUONVDigit * | FindObject (UInt_t uniqueID) const |
Find an object by its uniqueID. More... | |
virtual AliMUONVDigit * | FindObject (Int_t detElemId, Int_t manuId, Int_t manuChannel, Int_t cathode) const =0 |
Find a digit by the quadruplet (de,manu,channel,cathode) More... | |
virtual Int_t | GetSize () const =0 |
Number of digits we store. More... | |
virtual AliMUONVDigit * | Remove (AliMUONVDigit &digit)=0 |
Remove an element. More... | |
virtual Int_t | GetSize (Int_t detElemId) const |
Number of digits in a given detection element. More... | |
virtual Int_t | GetSize (Int_t detElemId, Int_t cathode) const |
Number of digits in a given detection element and a given cathode (2 for both cathodes) More... | |
virtual Bool_t | HasMCInformation () const =0 |
Whether we have any MC related information (e.g. at least one simulated digit) More... | |
![]() | |
AliMUONVStore () | |
virtual | ~AliMUONVStore () |
virtual void | Clear (Option_t *opt="")=0 |
Clear ourselves (i.e. Reset) More... | |
virtual Bool_t | CanConnect () const =0 |
Whether the Connect(TTree&) method is implemented. More... | |
virtual Bool_t | Connect (TTree &tree, Bool_t alone=kTRUE) const |
Connect us to a TTree (only valid if CanConnect()==kTRUE) More... | |
virtual TObject * | FindObject (const char *name) const |
Find an object by name. More... | |
virtual TObject * | FindObject (Int_t i, Int_t j) const |
Find an object using 2 ids. More... | |
virtual Bool_t | IsEmpty () const |
Whether we are empty or not. More... | |
virtual void | Print (Option_t *wildcard="") const |
Print all objects whose name matches wildcard. More... | |
virtual void | Print (Option_t *wildcard, Option_t *opt) const |
Print, with option, all objects whose name matches wildcard. More... | |
Static Public Member Functions | |
static AliMUONVDigitStore * | Create (TTree &tree) |
static AliMUONVDigitStore * | Create (const char *classname) |
![]() | |
static AliMUONVStore * | Create (TTree &tree, const char *what) |
Create a store from a TTree. More... | |
Interface for a digit container.
Interface for a digit (or sdigit) container
It offers methods to Add, Find and Remove single elements, and can create iterators to loop over (part of) the elements.
Definition at line 23 of file AliMUONVDigitStore.h.
Replacement policy : what to do when adding a digit to the store.
Enumerator | |
---|---|
kAllow | |
kDeny | |
kMerge | |
kIgnore |
Definition at line 28 of file AliMUONVDigitStore.h.
AliMUONVDigitStore::AliMUONVDigitStore | ( | ) |
ctor
Definition at line 42 of file AliMUONVDigitStore.cxx.
|
virtual |
dtor
Definition at line 48 of file AliMUONVDigitStore.cxx.
|
virtual |
Add an object, if it is of the right class.
Add an object, if it is of type AliMUONVDigit
Implements AliMUONVStore.
Definition at line 55 of file AliMUONVDigitStore.cxx.
Referenced by Add(), AliMUONESDInterface::Add(), AliMUONDigitizerV3::ApplyResponse(), AliMUONDigitStoreVImpl::CanConnect(), AliMUONDigitStoreV1::Create(), AliMUONSDigitizerV2::Digitize(), AliMUONPedestalEventGenerator::GenerateDigits(), AliMUONDigitizerV3::GenerateNoisyDigitsForOneCathode(), AliMUONDigitizerV3::GenerateNoisyDigitsForTrigger(), AliMUONTriggerUtilities::Init(), AliMUONDigitizerV3::MergeWithSDigits(), AliMUONDigitMaker::ReadTrackerDDL(), and AliMUONDigitMaker::TriggerDigits().
|
virtual |
Add a digit and return the newly created digit.
Add a digit and return it
Definition at line 79 of file AliMUONVDigitStore.cxx.
|
pure virtual |
Add a (s)digit. Digit is adopted.
digit | the digit to be added |
replace | specify what to do if the digit is already there. kAllow means replacement is allowed, kDeny means it is forbidden (in which case we return 0x0), and kMerge means both digits will be merged). Finally, kIgnore means no check is done at all. This is the most rapid option, but also the more dangerous ;-) |
Implemented in AliMUONDigitStoreV1, and AliMUONDigitStoreVImpl.
|
pure virtual |
Create an (empty) object of the same concrete class as *this.
Implements AliMUONVStore.
Implemented in AliMUONDigitStoreV1, AliMUONDigitStoreV2R, and AliMUONDigitStoreV2S.
Referenced by AliMUONDigitizerV3::CreateInputDigitStores(), AliMUONSDigitizerV2::Digitize(), AliMUONDigitizerV3::Digitize(), AliMUON::Digits2Raw(), AliMUONPedestalEventGenerator::DigitStore(), AliMUONDataInterface::DigitStore(), AliMUONMCDataInterface::DigitStore(), AliMUONTrackerQADataMakerRec::MakeDigits(), AliMUONTriggerQADataMakerRec::MakeDigits(), AliMUONQADataMakerSim::MakeDigits(), AliMUONQADataMakerSim::MakeSDigits(), MakeSDigits(), AliMUONDigitizerV3::MergeWithSDigits(), MUONClusterInfo(), MUONTrigger(), AliMUON::Raw2SDigits(), AliMUONMCDataInterface::SDigitStore(), and TestRecPoints().
|
static |
Create store from the given tree (if possible).
Definition at line 116 of file AliMUONVDigitStore.cxx.
|
static |
Create a concrete digitStore, given its classname
Definition at line 98 of file AliMUONVDigitStore.cxx.
|
pure virtual |
Create a digit.
Implemented in AliMUONDigitStoreV1, AliMUONDigitStoreVImpl, AliMUONDigitStoreV2R, and AliMUONDigitStoreV2S.
Referenced by Add(), AliMUONDigitizerV3::GenerateNoisyDigitsForOneCathode(), AliMUONDigitizerV3::GenerateNoisyDigitsForTrigger(), and AliMUONESDInterface::NewDigit().
|
pure virtual |
Create an iterator to loop over all our digits.
Implements AliMUONVStore.
Implemented in AliMUONDigitStoreV1, and AliMUONDigitStoreVImpl.
Referenced by AliMUONDigitizerV3::ApplyResponse(), AliMUONESDInterface::CreateDigitIterator(), AliMUONTriggerGUIbdmap::DrawDigits(), AliMUONTriggerGUIdimap::DrawMaps(), AliMUONDataInterface::GetIterator(), AliMUONMCDataInterface::GetIterator(), GetSize(), AliMUONTrackerQADataMakerRec::MakeDigits(), AliMUONTriggerQADataMakerRec::MakeDigits(), AliMUONQADataMakerSim::MakeDigits(), AliMUONQADataMakerSim::MakeSDigits(), MakeSDigits(), AliMUONDigitizerV3::MergeWithSDigits(), AliMUON::Raw2SDigits(), RecDigitsOk(), SimDigitsOk(), SimSDigitsOk(), and TestRecPoints().
|
pure virtual |
Create an iterator to loop over all digits of a group of detection elements, and a given cathode (if cathode != -1)
Implemented in AliMUONDigitStoreV1, and AliMUONDigitStoreVImpl.
|
pure virtual |
Create an iterator to loop over tracker digits only.
Implemented in AliMUONDigitStoreVImpl, and AliMUONDigitStoreV1.
Referenced by AliMUONDigitCalibrator::Calibrate(), and AliMUONRawWriter::Digits2BusPatchMap().
|
pure virtual |
Create an iterator to loop over trigger digits only.
Implemented in AliMUONDigitStoreVImpl, and AliMUONDigitStoreV1.
Referenced by AliMUONTriggerElectronics::Feed(), AliMUONTrackHitPattern::FindMatchingPads(), AliMUONTrackHitPattern::FindPadMatchingTrack(), and AliMUONTrackHitPattern::FindPadMatchingTrig().
|
virtual |
Find an object (default is to forward to FindObject(object->GetUniqueID())
Find an object, if of AliMUONVDigit type.
Reimplemented from AliMUONVStore.
Definition at line 127 of file AliMUONVDigitStore.cxx.
Referenced by AliMUONDigitStoreV1::Create(), AliMUONChamberCalibrationTask::Exec(), AliMUONESDInterface::FindDigit(), AliMUONSimpleClusterServer::FindMCLabel(), FindObject(), AliMUONESDInterface::LoadEvent(), MUONClusterInfo(), and AliMUONESDInterface::MUONToESD().
|
virtual |
Find an object by its uniqueID.
Find digit by its uniqueID
Reimplemented from AliMUONVStore.
Reimplemented in AliMUONDigitStoreVImpl.
Definition at line 140 of file AliMUONVDigitStore.cxx.
|
pure virtual |
Find a digit by the quadruplet (de,manu,channel,cathode)
Implemented in AliMUONDigitStoreV1, and AliMUONDigitStoreVImpl.
|
pure virtual |
Number of digits we store.
Implements AliMUONVStore.
Implemented in AliMUONDigitStoreV1, and AliMUONDigitStoreVImpl.
Referenced by AliMUONDigitCalibrator::Calibrate(), AliMUONDigitStoreVImpl::CanConnect(), AliMUONCheck::CheckOccupancy(), AliMUONDigitStoreV1::Create(), AliMUONESDInterface::GetNDigits(), and GetSize().
|
inlinevirtual |
Number of digits in a given detection element.
Reimplemented from AliMUONVStore.
Definition at line 99 of file AliMUONVDigitStore.h.
Referenced by GetSize().
|
virtual |
Number of digits in a given detection element and a given cathode (2 for both cathodes)
Return the number of digits we have for a given detection element
Definition at line 152 of file AliMUONVDigitStore.cxx.
|
pure virtual |
Whether we have any MC related information (e.g. at least one simulated digit)
Implemented in AliMUONDigitStoreV1, AliMUONDigitStoreV2R, and AliMUONDigitStoreV2S.
Referenced by AliMUONSimpleClusterServer::Clusterize(), and GetSize().
|
pure virtual |
Remove an element.
Implemented in AliMUONDigitStoreV1, and AliMUONDigitStoreVImpl.