ROOT logo
#ifndef HRPCTIMEPOSPAR_H
#define HRPCTIMEPOSPAR_H
#include "TArrayF.h"
#include "hparcond.h"

class HParamList;

class HRpcTimePosPar : public HParCond {

protected:

    TArrayF f5harmonics_16;   // Parameters of the 5 harmonics used for the correction


public:
    HRpcTimePosPar(const Char_t* name ="RpcTimePosPar",
	      const Char_t* title  ="Time-position correction parameters for the Rpc Detector",
	      const Char_t* context="RpcTimePosParProduction");
    ~HRpcTimePosPar();

    Float_t  getPar(Int_t sec, Int_t col, Int_t cell, Int_t npar) const { return f5harmonics_16[ sec*3072 + col*512 + cell*16 + npar ];}
    const Float_t* getPars(Int_t sec, Int_t col, Int_t cell)  {return &f5harmonics_16[sec*3072 + col*512 + cell*16 ]; }

    void    setPar(Int_t sec, Int_t col, Int_t cell, Int_t npar, Float_t par)  { f5harmonics_16[sec*3072 + col*512 + cell*16  + npar ] = par; }
    void    setPars(Int_t sec, Int_t col, Int_t cell, Float_t* pars)  { for(Int_t i = 0; i < 16 ; i++) f5harmonics_16.AddAt(pars[i], sec*3072 + col*512 + cell*16  + i); }

    void    putParams(HParamList*);
    Bool_t  getParams(HParamList*);
    void    clear();

    ClassDef(HRpcTimePosPar,2) // Container for the RPC hit finder parameters
};
#endif  /*!HRPCTIMEPOSPAR_H*/
 hrpctimepospar.h:1
 hrpctimepospar.h:2
 hrpctimepospar.h:3
 hrpctimepospar.h:4
 hrpctimepospar.h:5
 hrpctimepospar.h:6
 hrpctimepospar.h:7
 hrpctimepospar.h:8
 hrpctimepospar.h:9
 hrpctimepospar.h:10
 hrpctimepospar.h:11
 hrpctimepospar.h:12
 hrpctimepospar.h:13
 hrpctimepospar.h:14
 hrpctimepospar.h:15
 hrpctimepospar.h:16
 hrpctimepospar.h:17
 hrpctimepospar.h:18
 hrpctimepospar.h:19
 hrpctimepospar.h:20
 hrpctimepospar.h:21
 hrpctimepospar.h:22
 hrpctimepospar.h:23
 hrpctimepospar.h:24
 hrpctimepospar.h:25
 hrpctimepospar.h:26
 hrpctimepospar.h:27
 hrpctimepospar.h:28
 hrpctimepospar.h:29
 hrpctimepospar.h:30
 hrpctimepospar.h:31
 hrpctimepospar.h:32
 hrpctimepospar.h:33