Class AliHMPIDRecoParamV1 introduced (29-11-2009) as a copy of AliHMPIDRecoParam...
authorgvolpe <gvolpe@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 26 Jun 2013 11:08:20 +0000 (11:08 +0000)
committergvolpe <gvolpe@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 26 Jun 2013 11:08:20 +0000 (11:08 +0000)
HMPID/AliHMPIDRecoParam.cxx
HMPID/AliHMPIDRecoParamV1.cxx [deleted file]
HMPID/AliHMPIDRecoParamV1.h [deleted file]

index 85ff3ac..655a7d9 100644 (file)
@@ -81,7 +81,7 @@ AliHMPIDRecoParam *AliHMPIDRecoParam::GetLowFluxParam(){
   //
   // Set HMPID Reco Params for Low Flux environment
   //
-  AliHMPIDRecoParamV1 *hmpParam = new AliHMPIDRecoParamV1;
+  AliHMPIDRecoParam *hmpParam = new AliHMPIDRecoParam;
   hmpParam->fHmpRecoMode = kTRUE;                                                     //kTRUE = normal reco. kFLASE = HTA
   hmpParam->fHmpUserCut[0] = 3;                                                       //HMPID Module 0 User DAQ Sigma cut
   hmpParam->fHmpUserCut[1] = 3;                                                       //HMPID Module 1 User DAQ Sigma cut
@@ -148,8 +148,8 @@ void AliHMPIDRecoParam::PrintParameters() const
   //
   // Printing of the used HMPID reconstruction parameters
   //
-   AliInfo(Form("%s",AliHMPIDRecoParamV1::GetName()));
-   AliInfo(Form("IsDefault: %d",AliHMPIDRecoParamV1::IsDefault()));
+   AliInfo(Form("%s",AliHMPIDRecoParam::GetName()));
+   AliInfo(Form("IsDefault: %d",AliHMPIDRecoParam::IsDefault()));
    AliInfo(Form(" Running HMPID Reco: %d (1=Standard, 0=HTA)",fHmpRecoMode));
    AliInfo(Form(" Is track matching distance fixed (1) or momentum dependent (0): %d",fHmpFixedDistCut));
    AliInfo(Form(" HMPID track matching distance cut: %.3lf",fHmpTrackMatchingDist));
diff --git a/HMPID/AliHMPIDRecoParamV1.cxx b/HMPID/AliHMPIDRecoParamV1.cxx
deleted file mode 100644 (file)
index 0fed53a..0000000
+++ /dev/null
@@ -1,161 +0,0 @@
-/**************************************************************************
- * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
- *                                                                        *
- * Author: The ALICE Off-line Project.                                    *
- * Contributors are mentioned in the code where appropriate.              *
- *                                                                        *
- * Permission to use, copy, modify and distribute this software and its   *
- * documentation strictly for non-commercial purposes is hereby granted   *
- * without fee, provided that the above copyright notice appears in all   *
- * copies and that both the copyright notice and this permission notice   *
- * appear in the supporting documentation. The authors make no claims     *
- * about the suitability of this software for any purpose. It is          *
- * provided "as is" without express or implied warranty.                  *
- **************************************************************************/
-
-
-///////////////////////////////////////////////////////////////////////////////
-//                                                                           //
-// Class to set HMPID reconstruction parameters (normal, HTA, UserCut ...    //
-//                                                                           //  
-//                                                                           //
-///////////////////////////////////////////////////////////////////////////////
-//
-//Email: domenico.dibari@ba.infn.it
-//
-#include "AliLog.h"
-#include "AliHMPIDRecoParamV1.h"
-#include "AliHMPIDParam.h"
-
-ClassImp(AliHMPIDRecoParamV1)
-
-//_____________________________________________________________________________
-AliHMPIDRecoParamV1::AliHMPIDRecoParamV1():AliDetectorRecoParam(),   
-  fHmpRecoMode(kTRUE),fHmpFixedDistCut(kTRUE),
-  fHmpTrackMatchingDist(1.0)
-{
-  //
-  // ctor
-  //
-  for(Int_t iCh=AliHMPIDParam::kMinCh;iCh<=AliHMPIDParam::kMaxCh;iCh++) fHmpUserCut[iCh]=3;
-  for(Int_t iPol=0;iPol<5;iPol++) fHmpTrackMatchingDistParas[iPol]=0;
-}
-//++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
-AliHMPIDRecoParamV1::AliHMPIDRecoParamV1(const AliHMPIDRecoParamV1 &p):AliDetectorRecoParam(p),   
-    fHmpRecoMode(kTRUE),fHmpFixedDistCut(kTRUE),
-    fHmpTrackMatchingDist(1.0)
-{ 
-   //copy Ctor
-
-   fHmpRecoMode= p.fHmpRecoMode;
-   fHmpFixedDistCut=p.fHmpFixedDistCut;
-   for(Int_t iCh=AliHMPIDParam::kMinCh;iCh<=AliHMPIDParam::kMaxCh;iCh++) fHmpUserCut[iCh]=p.fHmpUserCut[iCh];
-   fHmpTrackMatchingDist=p.fHmpTrackMatchingDist;
-   for(Int_t iPol=0;iPol<5;iPol++) fHmpTrackMatchingDistParas[iPol]=p.fHmpTrackMatchingDistParas[iPol];
-}
-
-//++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
-AliHMPIDRecoParamV1& AliHMPIDRecoParamV1::operator=(const AliHMPIDRecoParamV1 &p)
-{
-//
-// assign. operator
-  if(this!=&p){
-    AliDetectorRecoParam::operator=(p);
-    this->fHmpRecoMode= p.fHmpRecoMode;
-    this->fHmpFixedDistCut=p.fHmpFixedDistCut;
-    for(Int_t iCh=AliHMPIDParam::kMinCh;iCh<=AliHMPIDParam::kMaxCh;iCh++) this->fHmpUserCut[iCh] = p.fHmpUserCut[iCh];   
-    this->fHmpTrackMatchingDist=p.fHmpTrackMatchingDist;
-    for(Int_t iPol=0;iPol<5;iPol++) this->fHmpTrackMatchingDistParas[iPol]=p.fHmpTrackMatchingDistParas[iPol];
-  }
-  return *this;
-}
-//++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
-AliHMPIDRecoParamV1::~AliHMPIDRecoParamV1() 
-{
-  //
-  // dtor
-  //  
-}
-//++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
-AliHMPIDRecoParamV1 *AliHMPIDRecoParamV1::GetLowFluxParam(){
-  //
-  // Set HMPID Reco Params for Low Flux environment
-  //
-  AliHMPIDRecoParamV1 *hmpParam = new AliHMPIDRecoParamV1;
-  hmpParam->fHmpRecoMode = kTRUE;                                                     //kTRUE = normal reco. kFLASE = HTA
-  hmpParam->fHmpUserCut[0] = 3;                                                       //HMPID Module 0 User DAQ Sigma cut
-  hmpParam->fHmpUserCut[1] = 3;                                                       //HMPID Module 1 User DAQ Sigma cut
-  hmpParam->fHmpUserCut[2] = 3;                                                       //HMPID Module 2 User DAQ Sigma cut
-  hmpParam->fHmpUserCut[3] = 3;                                                       //HMPID Module 3 User DAQ Sigma cut
-  hmpParam->fHmpUserCut[4] = 3;                                                       //HMPID Module 4 User DAQ Sigma cut
-  hmpParam->fHmpUserCut[5] = 3;                                                       //HMPID Module 5 User DAQ Sigma cut
-  hmpParam->fHmpUserCut[6] = 3;                                                       //HMPID Module 6 User DAQ Sigma cut
-  hmpParam->fHmpFixedDistCut=kTRUE;                                                   //HMPID fixed (kTRUE) or parameterized distance cut (kFALSE)
-  hmpParam->fHmpTrackMatchingDist = 3.0;                                              //HMPID Track Matching distance cut
-  for(Int_t iPol=0;iPol<5;iPol++) hmpParam->fHmpTrackMatchingDistParas[iPol]=1;       //Prevision for momentum dependen track matching
-  hmpParam->SetName("HMP Low Flux");
-  hmpParam->SetTitle("HMP Low Flux");
-  return hmpParam;
-    
-}
-//++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
-AliHMPIDRecoParamV1 *AliHMPIDRecoParamV1::GetHighFluxParam(){
-  //
-  // Set HMPID Reco Params for Low Flux environment
-  //
-  AliHMPIDRecoParamV1 *hmpParam = new AliHMPIDRecoParamV1;
-  hmpParam->fHmpRecoMode = kTRUE;                                                       //kTRUE = normal reco. kFLASE = HTA
-  hmpParam->fHmpUserCut[0] = 3;                                                         //HMPID Module 0 User DAQ Sigma cut
-  hmpParam->fHmpUserCut[1] = 3;                                                         //HMPID Module 1 User DAQ Sigma cut
-  hmpParam->fHmpUserCut[2] = 3;                                                         //HMPID Module 2 User DAQ Sigma cut
-  hmpParam->fHmpUserCut[3] = 3;                                                         //HMPID Module 3 User DAQ Sigma cut
-  hmpParam->fHmpUserCut[4] = 3;                                                         //HMPID Module 4 User DAQ Sigma cut
-  hmpParam->fHmpUserCut[5] = 3;                                                         //HMPID Module 5 User DAQ Sigma cut
-  hmpParam->fHmpUserCut[6] = 3;                                                         //HMPID Module 6 User DAQ Sigma cut
-  hmpParam->fHmpFixedDistCut=kTRUE;                                                     //HMPID fixed (kTRUE) or parameterized distance cut (kFALSE)
-  hmpParam->fHmpTrackMatchingDist = 1.0;                                                //HMPID Track Matching distance cut
-  for(Int_t iPol=0;iPol<5;iPol++) hmpParam->fHmpTrackMatchingDistParas[iPol]=1;         //Prevision for momentum dependen track matching
-  hmpParam->SetName("HMP High Flux");
-  hmpParam->SetTitle("HMP High Flux");
-  return hmpParam;
-    
-}
-//++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
-AliHMPIDRecoParamV1 *AliHMPIDRecoParamV1::GetCosmicParam(){
-  //
-  // Set HMPID Reco Params for Low Flux environment
-  //
-  AliHMPIDRecoParamV1 *hmpParam = new AliHMPIDRecoParamV1;
-  hmpParam->fHmpRecoMode = kTRUE;                                                                   //kTRUE = normal reco. kFLASE = HTA
-  hmpParam->fHmpUserCut[0] = 3;                                                                     //HMPID Module 0 User DAQ Sigma cut
-  hmpParam->fHmpUserCut[1] = 3;                                                                     //HMPID Module 1 User DAQ Sigma cut
-  hmpParam->fHmpUserCut[2] = 3;                                                                     //HMPID Module 2 User DAQ Sigma cut
-  hmpParam->fHmpUserCut[3] = 3;                                                                     //HMPID Module 3 User DAQ Sigma cut
-  hmpParam->fHmpUserCut[4] = 3;                                                                     //HMPID Module 4 User DAQ Sigma cut
-  hmpParam->fHmpUserCut[5] = 3;                                                                     //HMPID Module 5 User DAQ Sigma cut
-  hmpParam->fHmpUserCut[6] = 3;                                                                     //HMPID Module 6 User DAQ Sigma cut
-  hmpParam->fHmpFixedDistCut=kTRUE;                                                                 //HMPID fixed (kTRUE) or parameterized distance cut (kFALSE)
-  hmpParam->fHmpTrackMatchingDist = 4.0;                                                            //HMPID Track Matching distance cut
-  for(Int_t iPol=0;iPol<5;iPol++) hmpParam->fHmpTrackMatchingDistParas[iPol]=1;                     //Prevision for momentum dependen track matching
-  hmpParam->SetName("HMP Cosmic ");
-  hmpParam->SetTitle("HMP Cosmic");
-  return hmpParam;
-    
-}
-//++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
-void AliHMPIDRecoParamV1::PrintParameters() const
-{
-  //
-  // Printing of the used HMPID reconstruction parameters
-  //
-   AliInfo(Form("%s",AliHMPIDRecoParamV1::GetName()));
-   AliInfo(Form("IsDefault: %d",AliHMPIDRecoParamV1::IsDefault()));
-   AliInfo(Form(" Running HMPID Reco: %d (1=Standard, 0=HTA)",fHmpRecoMode));
-   AliInfo(Form(" Is track matching distance fixed (1) or momentum dependent (0): %d",fHmpFixedDistCut));
-   AliInfo(Form(" HMPID track matching distance cut: %.3lf",fHmpTrackMatchingDist));
-   for(Int_t iCh=AliHMPIDParam::kMinCh;iCh<=AliHMPIDParam::kMaxCh;iCh++)
-    AliInfo(Form(" HMPID Chamber: %d User DAQ Sigma cut: %d",iCh,fHmpUserCut[iCh]));
-   for(Int_t iPol=0;iPol<5;iPol++) 
-     AliInfo(Form(" HMPID momentum dependent distnce parameters: param[%d]=%lf",iPol,fHmpTrackMatchingDistParas[iPol]));
-  
-}
diff --git a/HMPID/AliHMPIDRecoParamV1.h b/HMPID/AliHMPIDRecoParamV1.h
deleted file mode 100644 (file)
index d7a2514..0000000
+++ /dev/null
@@ -1,58 +0,0 @@
-#ifndef ALIHMPIDRECOPARAMV1_H
-#define ALIHMPIDRECOPARAMV1_H
-/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
- * See cxx source for full Copyright notice                               */
-
-///////////////////////////////////////////////////////////////////////////////
-//                                                                           //
-// Class to set HMPID reconstruction parameters (normal, HTA, UserCut ...    //
-//                                                                           //
-// This class is introduced as a copy of teh AliHMPIDRecoParam to solve      //
-// the problem occured in v4-17-Rev-18                                       //
-//                                                                           //
-//                                                                           //
-///////////////////////////////////////////////////////////////////////////////
-
-#include "AliDetectorRecoParam.h"
-
-class AliHMPIDRecoParamV1 : public AliDetectorRecoParam
-{
- public: 
-  
-  AliHMPIDRecoParamV1();                                                                                           //ctor
-  AliHMPIDRecoParamV1(const AliHMPIDRecoParamV1 &p);                                                               //copy ctor 
-  AliHMPIDRecoParamV1& operator=(const AliHMPIDRecoParamV1 &p);                                                    // ass. op.
-  virtual ~AliHMPIDRecoParamV1();                                                                                  //dtor
-
-  
-  static AliHMPIDRecoParamV1 *GetLowFluxParam();                                                                   // reco params for low flux env.
-  static AliHMPIDRecoParamV1 *GetHighFluxParam();                                                                  // reco params for high flux env. 
-  static AliHMPIDRecoParamV1 *GetCosmicParam();                                                                    // reco params for cosmic  
-    
-  Bool_t   GetHmpRecoMode(            )        const            { return fHmpRecoMode;          }                  //kTRUE = normal tracking reco, kFALSE = HTA     
-  void     SetHmpRecoMode(Bool_t recoMode)                       { fHmpRecoMode=recoMode;        }                 //kTRUE = normal tracking reco, kFALSE = HTA   
-  Int_t    GetHmpUserCut(Int_t iCh)            const             { return fHmpUserCut[iCh];      }                 //user cut for the 7 chambers
-  void     SetHmpUserCut(Int_t iChamb,Int_t ucCh)     { fHmpUserCut[iChamb]=ucCh; Printf("fUserCut[%d]=%d",iChamb,ucCh);    }       //set user cut (DAQ Sigma) for a given chamber
-  Bool_t   IsFixedDistCut()                    const             { return fHmpFixedDistCut;      }                  //if kTRUE the track matching  distance is a fix number, if kFALSE the distance depends on momentum
-  void     SetIsFixedDistCut(Bool_t isFix)                       { fHmpFixedDistCut=isFix;       }                  //Change from fix distance cut to parameterized
-  Double_t GetHmpTrackMatchingDist()           const             { return fHmpTrackMatchingDist; }                  //Get distance between the MIP cluster
-  void     SetHmpTrackMatchingDist(Double_t dist)                { fHmpTrackMatchingDist=dist;   }                  //Set distance between the MIP cluster
-  Double_t GetHmpTrackMatchingDistParam(Int_t par) const         {return fHmpTrackMatchingDistParas[par];}          //Prevision to get  momentum dependen track matching parameters
-  void     SetHmpTrackMatchingDistParam(Int_t par, Double_t val) {fHmpTrackMatchingDistParas[par]=val;}             //Prevision to set  momentum dependen track matching parameters
-
-  virtual void PrintParameters() const;
-  
-  protected:
-   
-  Bool_t   fHmpRecoMode;                                    //kTRUE = normal tracking reco, kFALSE = HTA
-  Int_t    fHmpUserCut[7];                                  //user cut for the 7 chambers
-  Bool_t   fHmpFixedDistCut;                                //if kTRUE the track matching  distance is a fix number, if kFALSE the distance depends on momentum
-  Double_t fHmpTrackMatchingDist;                           //distance between the MIP cluster
-  Double_t fHmpTrackMatchingDistParas[5];                   //Prevision for momentum dependen track matching
-  
-
-  ClassDef(AliHMPIDRecoParamV1, 1) 
-};
-#endif
-