HYDRA_development_version
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
hrich700thresholdpar.h
Go to the documentation of this file.
1 //////////////////////////////////////////////////////////////////////////////
2 //
3 // $Id: $
4 //
5 // *-- Author : JAM
6 // *-- Revised : Joern Adamczewski-Musch <j.adamczewski@gsi.de> 2017
7 //
8 //_HADES_CLASS_DESCRIPTION
9 //////////////////////////////////////////////////////////////////////////////
10 //
11 // HRich700ThresholdPar
12 // Treestyle parameter container with trb3 time thresholds for rich700
13 // Defined after example of hrichcalpar JAM Nov2017
14 //
15 //////////////////////////////////////////////////////////////////////////////
16 
17 
18 #ifndef HRICH700THRESHOLDPAR_H
19 #define HRICH700THRESHOLDPAR_H
20 
21 #include "hlocation.h"
22 #include "hobjtable.h"
23 #include "hparset.h"
24 
25 #include "hrich700pixelthreshold.h"
26 
27 class HParAsciiFileIo;
28 
29 class HRich700ThresholdPar : public HParSet {
30 
31 private:
33  HLocation fLoc;
34 
35 
36 public:
37 
38  HRich700ThresholdPar(const Char_t* name = "Rich700ThresholdPar",
39  const Char_t* title = "Rich700 Time Threshold Parameters",
40  const Char_t* context = "RichPrimaryCalibration");
42 
43  Bool_t readline(const Char_t* buf);
44  Bool_t init(HParIo* input, Int_t* set);
45  Int_t write(HParIo* output);
46  void clear();
47  void putAsciiHeader(TString& header);
48  void write(std::fstream& fout);
49  void printParams();
50 
51  HRich700PixelThreshold* getSlot(HLocation &loc);
52  HRich700PixelThreshold* getObject(HLocation &loc);
53 
54  Bool_t setPixelThreshold(
55  Int_t pmt, Int_t pix,
56  Double_t tmin, Double_t tmax, Double_t totmin, Double_t totmax, Short_t flag);
57 
58  ClassDef(HRich700ThresholdPar, 1) //RICH calibration parameters class
59 };
60 #endif // HRICH700THRESHOLDPAR_H
Bool_t readline(const Char_t *buf)
void putAsciiHeader(TString &header)
Definition: hpario.h:11
virtual Int_t write()
Definition: hparset.cc:119
TString input
Definition: GarReader.C:5
Definition: hparset.h:9
HRich700PixelThreshold * getSlot(HLocation &loc)
return output
HRich700ThresholdPar(const Char_t *name="Rich700ThresholdPar", const Char_t *title="Rich700 Time Threshold Parameters", const Char_t *context="RichPrimaryCalibration")
Bool_t setPixelThreshold(Int_t pmt, Int_t pix, Double_t tmin, Double_t tmax, Double_t totmin, Double_t totmax, Short_t flag)
HRich700PixelThreshold * getObject(HLocation &loc)
virtual Bool_t init(void)
Definition: hparset.h:21