X-Git-Url: http://git.uio.no/git/?a=blobdiff_plain;f=MUON%2FAliMUONVDigitStore.h;h=87a9e15be9359afd3fd030de90438319a6af427f;hb=c77b3dc7e4eb7e6c571828c984874471eb4e3157;hp=9354a3575dad703f13fe4141145e2d431f19edfb;hpb=8c7404983c7c7b6fe20743c31aee045217fdaf20;p=u%2Fmrichter%2FAliRoot.git diff --git a/MUON/AliMUONVDigitStore.h b/MUON/AliMUONVDigitStore.h index 9354a3575da..87a9e15be93 100644 --- a/MUON/AliMUONVDigitStore.h +++ b/MUON/AliMUONVDigitStore.h @@ -39,6 +39,8 @@ public: static AliMUONVDigitStore* Create(TTree& tree); + static AliMUONVDigitStore* Create(const char* classname); + /// Create a digit virtual AliMUONVDigit* CreateDigit(Int_t detElemId, Int_t manuId, Int_t manuChannel, Int_t cathode) const = 0; @@ -77,12 +79,15 @@ public: virtual TIterator* CreateTriggerIterator() const = 0; using AliMUONVStore::FindObject; + + /// Find an object (default is to forward to FindObject(object->GetUniqueID()) + virtual AliMUONVDigit* FindObject(const TObject* object) const; - /// Find a (tracker) digit by the triplet (de,manu,channel) - virtual AliMUONVDigit* FindObject(Int_t detElemId, Int_t manuId, Int_t manuChannel) const = 0; + /// Find an object by its uniqueID + virtual AliMUONVDigit* FindObject(UInt_t uniqueID) const; - /// Find a (trigger) digit by the quadruplet (de,lb,channel,cathode) - virtual AliMUONVDigit* FindObject(Int_t detElemId, Int_t localBoardId, Int_t localBoardChannel, Int_t cathode) const = 0; + /// Find a digit by the quadruplet (de,manu,channel,cathode) + virtual AliMUONVDigit* FindObject(Int_t detElemId, Int_t manuId, Int_t manuChannel, Int_t cathode) const = 0; /// Number of digits we store virtual Int_t GetSize() const = 0; @@ -96,6 +101,9 @@ public: /// Number of digits in a given detection element and a given cathode (2 for both cathodes) virtual Int_t GetSize(Int_t detElemId, Int_t cathode) const; + /// Whether we have any MC related information (e.g. at least one simulated digit) + virtual Bool_t HasMCInformation() const = 0; + ClassDef(AliMUONVDigitStore,1) // Digit container interface };