]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - FMD/AliFMDReconstructor.h
Changes of Jens
[u/mrichter/AliRoot.git] / FMD / AliFMDReconstructor.h
index 5837faeedcc7c20f5a2f2fa5a32602f6e3d9a4d3..049979e1828e6bd02f5afc90dc051dc37400bac4 100644 (file)
@@ -33,6 +33,7 @@ class AliFMDDigit;
 class AliRawReader;
 class AliESDEvent;
 class AliESDFMD;
+class AliFMDRecoParam;
 class TH1;
 
 
@@ -159,6 +160,17 @@ public:
    * @param use If true, make the diagnostics file 
    */
   void SetDiagnose(Bool_t use=kTRUE) { fDiagnostics = use; }
+   /** 
+   * Functions to use the FMD as an offline trigger. The idea is to read
+   * the data until we are certain we have one particle. If no particle is 
+   * found the functions return kFALSE. These functions were added as a 
+   * result of the discussions in the First Physics Working Group.
+   *    *
+   * @param AliESDFMD* fmd the FMD data from one event.
+   */
+  static Bool_t GetFMDAsideBit(AliESDFMD* fmd);
+  static Bool_t GetFMDCsideBit(AliESDFMD* fmd);
+  
 protected:
   /** 
    * Copy CTOR 
@@ -362,7 +374,28 @@ protected:
                                       UShort_t str, 
                                       Float_t& eta, 
                                       Float_t& phi) const;
-  
+  /** 
+   * Set-up reconstructor to use values from reconstruction
+   * parameters, if present, for this event.   If the argument @a set
+   * is @c false, then restore preset values. 
+   * 
+   * @param set 
+   */  
+  virtual void UseRecoParam(Bool_t set=kTRUE) const;
+  /** 
+   * Utility member function to get the reconstruction parameters for 
+   * this event
+   * 
+   * @return Pointer to AliFMDRecoParam object or null if not
+   * available. 
+   */
+  const AliFMDRecoParam* GetParameters() const;
+  /** 
+   * Get the numeric identifier of this detector
+   * 
+   * @return Should be 12
+   */  
+  Int_t GetIdentifier() const;
   enum Vertex_t {
     kNoVertex,   // Got no vertex
     kGenVertex,  // Got generator vertex 
@@ -373,8 +406,8 @@ protected:
   mutable TTree*        fTreeR;         // Output tree 
   mutable Float_t       fCurrentVertex; // Z-coordinate of primary vertex
   mutable AliESDFMD*    fESDObj;        // ESD output object
-  Float_t               fNoiseFactor;   // Factor of noise to check
-  Bool_t                fAngleCorrect;  // Whether to angle correct
+  mutable Float_t       fNoiseFactor;   // Factor of noise to check
+  mutable Bool_t        fAngleCorrect;  // Whether to angle correct
   mutable Vertex_t      fVertexType;    // What kind of vertex we got
   AliESDEvent*          fESD;           // ESD object(?)
   Bool_t                fDiagnostics;   // Wheter to do diagnostics