]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - MUON/AliMUONVDigitStore.h
Adding protection against taking Sqrt of negative values...
[u/mrichter/AliRoot.git] / MUON / AliMUONVDigitStore.h
index 9354a3575dad703f13fe4141145e2d431f19edfb..87a9e15be9359afd3fd030de90438319a6af427f 100644 (file)
@@ -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
 };