LCOV - code coverage report
Current view: top level - FMD/FMDrec - AliFMDRecoParam.cxx (source / functions) Hit Total Coverage
Test: coverage.info Lines: 9 24 37.5 %
Date: 2016-06-14 17:26:59 Functions: 3 6 50.0 %

          Line data    Source code
       1             : /**************************************************************************
       2             :  * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
       3             :  *                                                                        *
       4             :  * Author: The ALICE Off-line Project.                                    *
       5             :  * Contributors are mentioned in the code where appropriate.              *
       6             :  *                                                                        *
       7             :  * Permission to use, copy, modify and distribute this software and its   *
       8             :  * documentation strictly for non-commercial purposes is hereby granted   *
       9             :  * without fee, provided that the above copyright notice appears in all   *
      10             :  * copies and that both the copyright notice and this permission notice   *
      11             :  * appear in the supporting documentation. The authors make no claims     *
      12             :  * about the suitability of this software for any purpose. It is          *
      13             :  * provided "as is" without express or implied warranty.                  *
      14             :  **************************************************************************/
      15             : ///////////////////////////////////////////////////////////////////////////////
      16             : //
      17             : // FMD Reconstruction Parameters 
      18             : //
      19             : //
      20             : ///////////////////////////////////////////////////////////////////////////////
      21             : 
      22             : 
      23             : #include "AliFMDRecoParam.h"
      24             : 
      25          12 : ClassImp(AliDetectorRecoParam)
      26             : #if 0 
      27             : ; // Don't delete - for Emacs
      28             : #endif
      29             : 
      30             : //____________________________________________________________________
      31             : AliFMDRecoParam::AliFMDRecoParam(Float_t noiseFactor, 
      32             :                                  Bool_t angleCorrect,
      33             :                                  Bool_t sharingCorrect)
      34           8 :   : AliDetectorRecoParam(),
      35           8 :     fNoiseFactor(noiseFactor), 
      36           8 :     fAngleCorrect(angleCorrect), 
      37           8 :     fSharingCorrect(sharingCorrect)
      38          24 : {
      39             :   // Constructor
      40           8 :   SetName("FMD");
      41           8 :   SetTitle("FMD");
      42          16 : }
      43             : 
      44             : //____________________________________________________________________
      45             : AliFMDRecoParam*
      46             : AliFMDRecoParam::GetLowFluxParam()
      47             : {
      48             :   // 
      49             :   // Get low flux parameter
      50             :   //
      51             :   // Return:
      52             :   //    low flux parameters 
      53             :   //  
      54           0 :   AliFMDRecoParam* p = new AliFMDRecoParam(10, kTRUE, kFALSE);
      55           0 :   p->SetName("FMD_low_flux");
      56           0 :   p->SetTitle("FMD low flux");
      57           0 :   return p;
      58           0 : }
      59             : //____________________________________________________________________
      60             : AliFMDRecoParam*
      61             : AliFMDRecoParam::GetHighFluxParam()
      62             : {
      63             :   // 
      64             :   // Get high flux parameter
      65             :   //
      66             :   // Return:
      67             :   //    high flux parameters 
      68             :   //  
      69           0 :   AliFMDRecoParam* p = new AliFMDRecoParam(10, kTRUE, kFALSE);
      70           0 :   p->SetName("FMD_high_flux");
      71           0 :   p->SetTitle("FMD high flux");
      72           0 :   return p;
      73           0 : }
      74             : //____________________________________________________________________
      75             : AliFMDRecoParam*
      76             : AliFMDRecoParam::GetParam(AliRecoParam::EventSpecie_t specie)
      77             : {
      78             :   // 
      79             :   // Get parameters for a specific species 
      80             :   // 
      81             :   // Parameters:
      82             :   //    specie Species 
      83             :   // 
      84             :   // Return:
      85             :   //    Reconstruction paramters 
      86             :   //
      87           0 :   switch (specie) { 
      88             :   case AliRecoParam::kDefault: 
      89             :   case AliRecoParam::kCalib: 
      90           0 :   case AliRecoParam::kHighMult: return GetHighFluxParam(); 
      91             :   case AliRecoParam::kCosmic: 
      92           0 :   case AliRecoParam::kLowMult:  return GetLowFluxParam(); 
      93             :   }
      94           0 :   return new AliFMDRecoParam();
      95           0 : }
      96             : 
      97             : 
      98             : //____________________________________________________________________
      99             : //
     100             : //
     101             : // EOF
     102             : //

Generated by: LCOV version 1.11