]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - MUON/AliMUONLocalTrigger.h
In AliMUONRecoCheck:
[u/mrichter/AliRoot.git] / MUON / AliMUONLocalTrigger.h
index 28f45c9662ba8dcb0d2057ed4818cf9bbf1033b6..575d8157e0029d5e9101016f5c7ab428a5c4384b 100644 (file)
@@ -73,9 +73,15 @@ class AliMUONLocalTrigger : public TObject {
   void  SetDeviation(Int_t deviation);
 
   /// Trigger response X strips
-  Bool_t IsTrigX();
+  Bool_t IsTrigX() const;
   /// Trigger response Y strips
-  Bool_t IsTrigY();
+  Bool_t IsTrigY() const;
+
+  /// Hit pattern from the re-calculated trigger response after removing chambers one-by-one
+  UShort_t GetHitPatternFromResponse() const {return fHitPatternFromResponse; }
+
+  /// Triggers from the re-calculated trigger response after removing chambers one-by-one
+  UChar_t GetTriggerWithoutChamber() const {return fTriggerWithoutChamber; }
 
   // setter methods
   //
@@ -122,7 +128,13 @@ class AliMUONLocalTrigger : public TObject {
   virtual void Print(Option_t* opt="") const;
   
   virtual const char* GetName() const;
-  
+
+  /// The board would provide a trigger even after removing chamber ich [0,3]
+  void SetTriggerWithoutChamber(Int_t ich){ fTriggerWithoutChamber |= 1 << (3 - ich); }
+
+  /// Trigger algorithm did NOT find hit in the specified chamber and cathode
+  void SetNoHitInPlane(Int_t icath, Int_t ich){ fHitPatternFromResponse &= ~(1 << (7 - 4*icath - ich)); }
+
 private:
   Int_t fLoCircuit; ///< Circuit number 
   Int_t fLoStripX;  ///< X strip in MT11 
@@ -143,7 +155,10 @@ private:
   UShort_t fY3Pattern; ///< Y strip pattern for chamber 21
   UShort_t fY4Pattern; ///< Y strip pattern for chamber 22
 
-  ClassDef(AliMUONLocalTrigger,4)  // reconstructed Local Trigger object
+  UShort_t fHitPatternFromResponse; ///<  Fired plane according to re-computed repsonse
+  UChar_t fTriggerWithoutChamber; ///< Pattern of triggers after chamber removal
+
+  ClassDef(AliMUONLocalTrigger,5)  // reconstructed Local Trigger object
 };
 #endif