ROOT logo
#ifndef HMDCLAYERCORRPAR_H
#define HMDCLAYERCORRPAR_H

#include "hparcond.h"

class HMdcLayerCorrPar : public HParCond {
protected:
  Int_t   firstWire[72];      // first cell in shifted part of layer
  Float_t shift[72];          // shift value (in mkm!)
  Float_t wireOrientCorr[72]; // correction for wire orientation (in deg!)
  Int_t   nMdc;
  Int_t   nLay;
  Int_t   numCorrLayers;
  
public:
  HMdcLayerCorrPar(const Char_t* name    = "MdcLayerCorrPar",
                   const Char_t* title   = "parameters for Mdc layer correction",
                   const Char_t* context = "MdcLayerCorrProduction");
  ~HMdcLayerCorrPar(void) {}
  
  Bool_t  init(HParIo*,Int_t* set=0);
  Int_t   write(HParIo*);
  void    clear(void);
  void    putParams(HParamList*);
  Bool_t  getParams(HParamList*);
  
  Bool_t  addLayerShift(Int_t s,Int_t m,Int_t l,Int_t fstWr,Float_t sh,Float_t orCorr=0.);
  void    setDefaultPar(void);

  Bool_t  getLayerCorrPar(Int_t s,Int_t m,Int_t l,Int_t& fstWr,Float_t& sh,Float_t& orCorr) const;

private:
  Bool_t isSecOk(Int_t s) const                 {return s>=0 && s<6;}
  Bool_t isModOk(Int_t m) const                 {return m>=2 && m<4;}
  Bool_t isLayOk(Int_t l) const                 {return l>=0 && l<6;}
  Bool_t isAddOk(Int_t s,Int_t m,Int_t l) const {return isSecOk(s) && isModOk(m) && isLayOk(l);}

  ClassDef(HMdcLayerCorrPar,1) // Parameter container layer correction
};

#endif  /*!HMDCLAYERCORRPAR_H */









 hmdclayercorrpar.h:1
 hmdclayercorrpar.h:2
 hmdclayercorrpar.h:3
 hmdclayercorrpar.h:4
 hmdclayercorrpar.h:5
 hmdclayercorrpar.h:6
 hmdclayercorrpar.h:7
 hmdclayercorrpar.h:8
 hmdclayercorrpar.h:9
 hmdclayercorrpar.h:10
 hmdclayercorrpar.h:11
 hmdclayercorrpar.h:12
 hmdclayercorrpar.h:13
 hmdclayercorrpar.h:14
 hmdclayercorrpar.h:15
 hmdclayercorrpar.h:16
 hmdclayercorrpar.h:17
 hmdclayercorrpar.h:18
 hmdclayercorrpar.h:19
 hmdclayercorrpar.h:20
 hmdclayercorrpar.h:21
 hmdclayercorrpar.h:22
 hmdclayercorrpar.h:23
 hmdclayercorrpar.h:24
 hmdclayercorrpar.h:25
 hmdclayercorrpar.h:26
 hmdclayercorrpar.h:27
 hmdclayercorrpar.h:28
 hmdclayercorrpar.h:29
 hmdclayercorrpar.h:30
 hmdclayercorrpar.h:31
 hmdclayercorrpar.h:32
 hmdclayercorrpar.h:33
 hmdclayercorrpar.h:34
 hmdclayercorrpar.h:35
 hmdclayercorrpar.h:36
 hmdclayercorrpar.h:37
 hmdclayercorrpar.h:38
 hmdclayercorrpar.h:39
 hmdclayercorrpar.h:40
 hmdclayercorrpar.h:41
 hmdclayercorrpar.h:42
 hmdclayercorrpar.h:43
 hmdclayercorrpar.h:44
 hmdclayercorrpar.h:45
 hmdclayercorrpar.h:46
 hmdclayercorrpar.h:47
 hmdclayercorrpar.h:48
 hmdclayercorrpar.h:49
 hmdclayercorrpar.h:50