![]() |
AliRoot Core
3abf5b4 (3abf5b4)
|
(Legacy) implementation of AliMUONVDigitStore More...
#include <AliMUONDigitStoreV1.h>
Public Member Functions | |
AliMUONDigitStoreV1 () | |
AliMUONDigitStoreV1 (TRootIOCtor *dummy) | |
AliMUONDigitStoreV1 (const AliMUONDigitStoreV1 &rhs) | |
AliMUONDigitStoreV1 & | operator= (const AliMUONDigitStoreV1 &rhs) |
virtual | ~AliMUONDigitStoreV1 () |
virtual void | Clear (Option_t *opt="") |
Clear ourselves (i.e. Reset) More... | |
virtual Bool_t | CanConnect () const |
Whether the Connect(TTree&) method is implemented. More... | |
virtual AliMUONVDigitStore * | Create () const |
Create an (empty) object of the same concrete class as *this. More... | |
virtual Bool_t | Connect (TTree &tree, Bool_t alone=kTRUE) const |
Connect us to a TTree (only valid if CanConnect()==kTRUE) More... | |
virtual AliMUONVDigit * | CreateDigit (Int_t detElemId, Int_t manuId, Int_t manuChannel, Int_t cathode) const |
Create a digit. More... | |
virtual AliMUONVDigit * | Add (const AliMUONVDigit &digit, EReplacePolicy replace=kDeny) |
virtual TIterator * | CreateIterator () const |
Create an iterator to loop over all our digits. More... | |
virtual TIterator * | CreateTrackerIterator () const |
Create an iterator to loop over tracker digits only. More... | |
virtual TIterator * | CreateTriggerIterator () const |
Create an iterator to loop over trigger digits only. More... | |
virtual TIterator * | CreateIterator (Int_t firstDetElemId, Int_t lastDetElemId, Int_t cathode=2) const |
virtual AliMUONVDigit * | FindObject (Int_t detElemId, Int_t manuId, Int_t manuChannel, Int_t cathode) const |
Find a digit by the quadruplet (de,manu,channel,cathode) More... | |
virtual Int_t | GetSize () const |
Number of digits we store. More... | |
virtual AliMUONVDigit * | Remove (AliMUONVDigit &digit) |
Remove an element. More... | |
Bool_t | HasMCInformation () const |
Whether we have any MC related information (e.g. at least one simulated digit) More... | |
![]() | |
AliMUONVDigitStore () | |
virtual | ~AliMUONVDigitStore () |
virtual Bool_t | Add (TObject *object) |
Add an object, if it is of the right class. 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 * | 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 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... | |
![]() | |
AliMUONVStore () | |
virtual | ~AliMUONVStore () |
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... | |
Private Member Functions | |
TObject ** | ChamberDigitsPtr (Int_t chamberId) const |
TClonesArray * | ChamberDigits (Int_t chamberId) |
const TClonesArray * | ChamberDigits (Int_t chamberId) const |
AliMUONVDigit * | Find (const AliMUONVDigit &digit, Int_t &index) const |
AliMUONVDigit * | FindIndex (Int_t detElemId, Int_t manuId, Int_t manuChannel, Int_t cathode, Int_t &index) const |
Private Attributes | |
TObjArray * | fDigits |
array of tclonesarray More... | |
TClonesArray * | fChamberDigits |
array of digits for one chamber More... | |
Additional Inherited Members | |
![]() | |
enum | EReplacePolicy { kAllow, kDeny, kMerge, kIgnore } |
Replacement policy : what to do when adding a digit to the store. More... | |
![]() | |
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... | |
(Legacy) implementation of AliMUONVDigitStore
(Legacy) Implementation of AliMUONVDigitStore. Called legacy as the internal structure corresponds to what we used to write as MUON.(S)Digits.root files, before the switch to data stores.
Definition at line 22 of file AliMUONDigitStoreV1.h.
AliMUONDigitStoreV1::AliMUONDigitStoreV1 | ( | ) |
AliMUONDigitStoreV1::AliMUONDigitStoreV1 | ( | TRootIOCtor * | dummy | ) |
ctor
Definition at line 60 of file AliMUONDigitStoreV1.cxx.
AliMUONDigitStoreV1::AliMUONDigitStoreV1 | ( | const AliMUONDigitStoreV1 & | rhs | ) |
copy ctor
Definition at line 87 of file AliMUONDigitStoreV1.cxx.
|
virtual |
dtor
Definition at line 106 of file AliMUONDigitStoreV1.cxx.
|
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 ;-) |
Try to add a digit to the store. Return whether the try was successfull or not.
If the digit is already there, the action taken depends on "replace" kAllow -> replacement will occur (i.e. return kTRUE) kDeny -> replacement will not occur (and returned value is kFALSE) kMerge -> both digits will be merged into one (return kTRUE)
Implements AliMUONVDigitStore.
Definition at line 127 of file AliMUONDigitStoreV1.cxx.
|
inlinevirtual |
Whether the Connect(TTree&) method is implemented.
Implements AliMUONVStore.
Definition at line 34 of file AliMUONDigitStoreV1.h.
|
private |
Returns the tclonesarray storing digits for chamberId
Definition at line 242 of file AliMUONDigitStoreV1.cxx.
Referenced by Add(), Clear(), FindIndex(), GetSize(), and Remove().
|
private |
Returns the tclonesarray storing digits for chamberId
Definition at line 250 of file AliMUONDigitStoreV1.cxx.
|
private |
Get the address of the TClonesArray storing digits for chamberId.
Definition at line 223 of file AliMUONDigitStoreV1.cxx.
Referenced by Connect().
|
virtual |
Clear ourselves (i.e. Reset)
Clear the tclonesarray, but keep the tobjarray's size constant.
Implements AliMUONVStore.
Definition at line 115 of file AliMUONDigitStoreV1.cxx.
Referenced by AliMUONDigitStoreV1(), and TestRecPoints().
|
virtual |
Connect us to a TTree (only valid if CanConnect()==kTRUE)
Connect this to the tree.
Connect to a Ttree
Reimplemented from AliMUONVStore.
Definition at line 179 of file AliMUONDigitStoreV1.cxx.
|
inlinevirtual |
Create an (empty) object of the same concrete class as *this.
Implements AliMUONVDigitStore.
Definition at line 38 of file AliMUONDigitStoreV1.h.
Referenced by AliMUONTriggerGUI::AliMUONTriggerGUI().
|
virtual |
Create a digit.
Implements AliMUONVDigitStore.
Definition at line 258 of file AliMUONDigitStoreV1.cxx.
|
virtual |
Create an iterator to loop over all our digits.
Return an iterator on the full store
Implements AliMUONVDigitStore.
Definition at line 332 of file AliMUONDigitStoreV1.cxx.
Referenced by HasMCInformation(), and TestRecPoints().
|
virtual |
Create an iterator to loop over all digits of a group of detection elements, and a given cathode (if cathode != -1)
Return an iterator on part of the store
Implements AliMUONVDigitStore.
Definition at line 356 of file AliMUONDigitStoreV1.cxx.
|
virtual |
Create an iterator to loop over tracker digits only.
Return an iterator on the tracker part of the store
Implements AliMUONVDigitStore.
Definition at line 340 of file AliMUONDigitStoreV1.cxx.
|
virtual |
Create an iterator to loop over trigger digits only.
Return an iterator on the trigger part of the store
Implements AliMUONVDigitStore.
Definition at line 348 of file AliMUONDigitStoreV1.cxx.
|
private |
Find a digit, and return its index.
Definition at line 286 of file AliMUONDigitStoreV1.cxx.
Referenced by Add().
|
private |
Find and return the index of a digit
Definition at line 304 of file AliMUONDigitStoreV1.cxx.
Referenced by Find(), FindObject(), and Remove().
|
virtual |
Find a digit by the quadruplet (de,manu,channel,cathode)
Find a (trigger) digit
Implements AliMUONVDigitStore.
Definition at line 294 of file AliMUONDigitStoreV1.cxx.
|
virtual |
Number of digits we store.
Return the number of digits we store
Implements AliMUONVDigitStore.
Definition at line 365 of file AliMUONDigitStoreV1.cxx.
|
virtual |
Whether we have any MC related information (e.g. at least one simulated digit)
As this class is legacy, don't care about looping and loosing a bit of time...
Implements AliMUONVDigitStore.
Definition at line 379 of file AliMUONDigitStoreV1.cxx.
AliMUONDigitStoreV1 & AliMUONDigitStoreV1::operator= | ( | const AliMUONDigitStoreV1 & | rhs | ) |
assignement operator
Definition at line 98 of file AliMUONDigitStoreV1.cxx.
|
virtual |
Remove an element.
Remove one digit, and returns it, thus returning 0x0 if digit is not present.
Implements AliMUONVDigitStore.
Definition at line 266 of file AliMUONDigitStoreV1.cxx.
|
private |
array of digits for one chamber
Definition at line 86 of file AliMUONDigitStoreV1.h.
|
private |
array of tclonesarray
Definition at line 85 of file AliMUONDigitStoreV1.h.
Referenced by AliMUONDigitStoreV1(), ChamberDigits(), ChamberDigitsPtr(), Clear(), CreateIterator(), CreateTrackerIterator(), CreateTriggerIterator(), GetSize(), and ~AliMUONDigitStoreV1().