HYDRA_development_version
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
hrpctimepospar.h
Go to the documentation of this file.
1 #ifndef HRPCTIMEPOSPAR_H
2 #define HRPCTIMEPOSPAR_H
3 #include "TArrayF.h"
4 #include "hparcond.h"
5 
6 class HParamList;
7 
8 class HRpcTimePosPar : public HParCond {
9 
10 protected:
11 
12  TArrayF f5harmonics_16; // Parameters of the 5 harmonics used for the correction
13 
14 
15 public:
16  HRpcTimePosPar(const Char_t* name ="RpcTimePosPar",
17  const Char_t* title ="Time-position correction parameters for the Rpc Detector",
18  const Char_t* context="RpcTimePosParProduction");
20 
21  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 ];}
22  const Float_t* getPars(Int_t sec, Int_t col, Int_t cell) {return &f5harmonics_16[sec*3072 + col*512 + cell*16 ]; }
23 
24  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; }
25  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); }
26 
27  void putParams(HParamList*);
28  Bool_t getParams(HParamList*);
29  void clear();
30 
31  ClassDef(HRpcTimePosPar,2) // Container for the RPC hit finder parameters
32 };
33 #endif /*!HRPCTIMEPOSPAR_H*/
void putParams(HParamList *)
HRpcTimePosPar(const Char_t *name="RpcTimePosPar", const Char_t *title="Time-position correction parameters for the Rpc Detector", const Char_t *context="RpcTimePosParProduction")
Float_t getPar(Int_t sec, Int_t col, Int_t cell, Int_t npar) const
void setPars(Int_t sec, Int_t col, Int_t cell, Float_t *pars)
TArrayF f5harmonics_16
Bool_t getParams(HParamList *)
const Float_t * getPars(Int_t sec, Int_t col, Int_t cell)
void setPar(Int_t sec, Int_t col, Int_t cell, Int_t npar, Float_t par)