]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - MUON/AliMUONGlobalTrigger.h
SVN keyword Id is set
[u/mrichter/AliRoot.git] / MUON / AliMUONGlobalTrigger.h
index f61cc92b6b8315333675752645966da93cb086fd..5b067bb69039a7c173eaf9bcb6002dd114b5b449 100644 (file)
@@ -4,54 +4,55 @@
 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
  * See cxx source for full Copyright notice                               */
 
-/*    */
+/* $Id$ */
+// Revision of includes 07/05/2004
+
+/// \ingroup trigger
+/// \class AliMUONGlobalTrigger
+/// \brief Global trigger object
+//  Author Ph. Crochet
 
 #include <TObject.h>
 
 class AliMUONGlobalTrigger : public TObject {
  public:
   AliMUONGlobalTrigger();
-  AliMUONGlobalTrigger(const AliMUONGlobalTrigger& ); // copy constructor
-  AliMUONGlobalTrigger(Int_t *singlePlus, Int_t *singleMinus,
-                      Int_t *singleUndef, Int_t *pairUnlike, Int_t *pairLike);
-  virtual ~AliMUONGlobalTrigger(){;}
-  AliMUONGlobalTrigger& operator=(const AliMUONGlobalTrigger& );
+  AliMUONGlobalTrigger(const AliMUONGlobalTrigger& rhs); // copy constructor
+  virtual ~AliMUONGlobalTrigger();
+  AliMUONGlobalTrigger& operator=(const  AliMUONGlobalTrigger& rhs);
+        
+       /// Return number of Single Low pt
+  Int_t SingleLpt()  const {return fSingleLpt;} 
+       /// Return number of Single High pt
+  Int_t SingleHpt()  const {return fSingleHpt ;}    
+       /// Return number of Unlike sign pair Low pt
+  Int_t PairUnlikeLpt()  const {return fPairUnlikeLpt ;}   
+       /// Return number of Unlike sign pair High pt
+  Int_t PairUnlikeHpt()  const {return fPairUnlikeHpt ;}   
+       /// Return number of Like sign pair Low pt
+  Int_t PairLikeLpt()    const {return fPairLikeLpt ;}     
+       /// Return number of Like sign pair High pt
+  Int_t PairLikeHpt()    const {return fPairLikeHpt ;}     
+  
+  void  SetFromGlobalResponse(UShort_t globalResponse);
+  void  SetFromGlobalInput(const UInt_t *globalInput);
+  UChar_t GetGlobalResponse() const;
+          /// Return global input to the global trigger board
+  UInt_t *GetGlobalInput() { return fInput; }
+
+  virtual void Print(Option_t* opt="") const;
   
-  Int_t SinglePlusLpt();  
-  Int_t SinglePlusHpt();  
-  Int_t SinglePlusApt();   
-  Int_t SingleMinusLpt(); 
-  Int_t SingleMinusHpt(); 
-  Int_t SingleMinusApt(); 
-  Int_t SingleUndefLpt(); 
-  Int_t SingleUndefHpt();  
-  Int_t SingleUndefApt(); 
-  Int_t PairUnlikeLpt();  
-  Int_t PairUnlikeHpt();  
-  Int_t PairUnlikeApt();  
-  Int_t PairLikeLpt();    
-  Int_t PairLikeHpt();    
-  Int_t PairLikeApt();    
-
-  ClassDef(AliMUONGlobalTrigger,1)  // reconstructed Global Trigger object    
-    
 private:
-  Int_t fSinglePlusLpt;  // Number of Single Plus Low pt 
-  Int_t fSinglePlusHpt;  // Number of Single Plus High pt 
-  Int_t fSinglePlusApt;  // Number of Single Plus All pt 
-  Int_t fSingleMinusLpt; // Number of Single Minus Low pt
-  Int_t fSingleMinusHpt; // Number of Single Minus High pt 
-  Int_t fSingleMinusApt; // Number of Single Minus All pt
-  Int_t fSingleUndefLpt; // Number of Single Undefined Low pt
-  Int_t fSingleUndefHpt; // Number of Single Undefined High pt 
-  Int_t fSingleUndefApt; // Number of Single Undefined All pt
-  Int_t fPairUnlikeLpt;  // Number of Unlike sign pair Low pt
-  Int_t fPairUnlikeHpt;  // Number of Unlike sign pair High pt
-  Int_t fPairUnlikeApt;  // Number of Unlike sign pair All pt
-  Int_t fPairLikeLpt;    // Number of Like sign pair Low pt
-  Int_t fPairLikeHpt;    // Number of Like sign pair High pt
-  Int_t fPairLikeApt;    // Number of Like sign pair All pt
+  Int_t fSingleLpt;      ///< Number of Single Low pt 
+  Int_t fSingleHpt;      ///< Number of Single High pt 
+  Int_t fPairUnlikeLpt;  ///< Number of Unlike sign pair Low pt
+  Int_t fPairUnlikeHpt;  ///< Number of Unlike sign pair High pt
+  Int_t fPairLikeLpt;    ///< Number of Like sign pair Low pt
+  Int_t fPairLikeHpt;    ///< Number of Like sign pair High pt
+
+  UInt_t fInput[4];      ///< Global input to the global trigger board
 
+ ClassDef(AliMUONGlobalTrigger,3)  // reconstructed Global Trigger object    
 };
 #endif