]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - MUON/AliMUONRecoParam.h
Changes needed by the following commit: coding convention for type (_t) and access...
[u/mrichter/AliRoot.git] / MUON / AliMUONRecoParam.h
index ea21a2f2d637d1c8a8c4964fb6ef91c196f39536..ad6d058c4324e06950781a4268053f1b64debd87 100644 (file)
@@ -9,10 +9,10 @@
 ///
 //  Author: Philippe Pillot
 
-#include "TObject.h"
+#include "AliDetectorRecoParam.h"
 #include "TString.h"
 
-class AliMUONRecoParam : public TObject
+class AliMUONRecoParam : public AliDetectorRecoParam
 {
  public: 
   AliMUONRecoParam();
@@ -21,13 +21,18 @@ class AliMUONRecoParam : public TObject
   static AliMUONRecoParam *GetLowFluxParam();
   static AliMUONRecoParam *GetHighFluxParam();
   
+  /// set the calibration mode
+  void SetCalibrationMode(Option_t* mode) { fCalibrationMode = mode; fCalibrationMode.ToUpper();}
+  /// get the calibration mode
+  Option_t* GetCalibrationMode() const { return fCalibrationMode.Data(); }
+  
   /// set the clustering (pre-clustering) mode
-  void      SetClusteringMode(Option_t* mode) {fClusteringMode = mode;}
+  void      SetClusteringMode(Option_t* mode) {fClusteringMode = mode; fClusteringMode.ToUpper();}
   /// get the clustering (pre-clustering) mode
   Option_t* GetClusteringMode() const {return fClusteringMode.Data();}
   
   /// set the tracking mode
-  void      SetTrackingMode(Option_t* mode) {fTrackingMode = mode;}
+  void      SetTrackingMode(Option_t* mode) {fTrackingMode = mode; fTrackingMode.ToUpper();}
   /// get the tracking mode
   Option_t* GetTrackingMode() const {return fTrackingMode.Data();}
   
@@ -36,6 +41,14 @@ class AliMUONRecoParam : public TObject
   /// return kTRUE/kFALSE if the combined cluster/track reconstruction is on/off
   Bool_t    CombineClusterTrackReco() const {return fCombinedClusterTrackReco;}
   
+  /// save all cluster info (including pads) in ESD, for the given percentage of events
+  void      SaveFullClusterInESD(Bool_t flag, Double_t percentOfEvent = 100.) {fSaveFullClusterInESD = flag;
+                                 fPercentOfFullClusterInESD = (fSaveFullClusterInESD) ? percentOfEvent : 0.;}
+  /// return kTRUE/kFALSE depending on whether we save all cluster info in ESD or not
+  Bool_t    SaveFullClusterInESD() const {return fSaveFullClusterInESD;}
+  /// return the percentage of events for which all cluster info are stored in ESD
+  Double_t  GetPercentOfFullClusterInESD() const {return fPercentOfFullClusterInESD;}
+  
   /// set the minimum value (GeV/c) of momentum in bending plane
   void     SetMinBendingMomentum(Double_t val) {fMinBendingMomentum = val;}
   /// return the minimum value (GeV/c) of momentum in bending plane
@@ -141,6 +154,8 @@ class AliMUONRecoParam : public TObject
   
   Double32_t fMaxNormChi2MatchTrigger; ///< maximum normalized chi2 of tracking/trigger track matching
   
+  Double32_t fPercentOfFullClusterInESD; ///< percentage of events for which all cluster info are stored in ESD
+  
   Bool_t     fCombinedClusterTrackReco; ///< switch on/off the combined cluster/track reconstruction
   
   Bool_t     fTrackAllTracks; ///< kTRUE to track all the possible candidates; kFALSE to track only the best ones
@@ -155,13 +170,17 @@ class AliMUONRecoParam : public TObject
   
   Bool_t     fUseSmoother; ///< kTRUE to use the smoother to compute track parameters/covariances and local chi2 at each cluster (used for Kalman tracking only)
   
+  Bool_t     fSaveFullClusterInESD; ///< kTRUE to save all cluster info (including pads) in ESD
+  
+  /// calibration mode:  GAIN, NOGAIN
+  TString fCalibrationMode; ///<\brief calibration mode
   
   // functions
   void SetLowFluxParam();
   void SetHighFluxParam();
   
   
-  ClassDef(AliMUONRecoParam,1) // MUON reco parameters
+  ClassDef(AliMUONRecoParam,2) // MUON reco parameters
 };
 
 #endif