KaliVeda
Toolkit for HIC analysis
KVDBPeak.h
1 /***************************************************************************
2 $Id: KVDBPeak.h,v 1.4 2007/04/02 17:43:38 ebonnet Exp $
3  KVDBPeak.h - description
4  -------------------
5  begin : december 5th 2003
6  copyright : (C) 2003 by John D. Frankland
7  email : frankland@ganil.fr
8  ***************************************************************************/
9 
10 /***************************************************************************
11  * *
12  * This program is free software; you can redistribute it and/or modify *
13  * it under the terms of the GNU General Public License as published by *
14  * the Free Software Foundation; either version 2 of the License, or *
15  * (at your option) any later version. *
16  * *
17  ***************************************************************************/
18 #ifndef __KVDBPEAK_H
19 #define __KVDBPEAK_H
20 
21 #include "KVDBParameterSet.h"
22 #include "KVINDRARRMValidator.h"
23 #include "TString.h"
24 
36 
37 private:
38 
46 
47 public:
48 
49  KVDBPeak();
50  KVDBPeak(const Char_t* detname, const Char_t* type, UShort_t pnum);
51  virtual ~ KVDBPeak()
52  {
53  };
54 
55  void init();
56 
57  void SetGas(Bool_t avec = kTRUE)
58  {
59  fAvecGaz = avec;
60  };
61  Bool_t WithGas() const
62  {
63  return fAvecGaz;
64  };
65 
66  void SetDetector(const Char_t* name)
67  {
68  fDetector = name;
69  };
70  const Char_t* GetDetector() const
71  {
72  return fDetector.Data();
73  };
74 
75  void SetSigType(const Char_t* sig)
76  {
77  fSignal = sig;
78  };
79  const Char_t* GetSigType() const
80  {
81  return fSignal.Data();
82  };
83 
84  void SetGain(Float_t gain)
85  {
86  fGain = gain;
87  };
88  Float_t GetGain() const
89  {
90  return fGain;
91  };
92 
94  {
95  fEnergy = e;
96  };
98  {
99  return fEnergy;
100  };
101 
102  void SetRing(UChar_t ring)
103  {
104  fRing = ring;
105  };
106  UChar_t GetRing() const
107  {
108  return fRing;
109  };
110 
111  void SetModule(UChar_t mod)
112  {
113  fModule = mod;
114  };
116  {
117  return fModule;
118  };
119 
121  {
122  return GetParameter(0);
123  };
125  {
126  return GetParameter(1);
127  };
129  {
130  return GetParameter(2);
131  }
132 
133  ClassDef(KVDBPeak, 2) //calibration points such as alpha, elastic, Brho
134 };
135 
136 #endif
#define e(i)
bool Bool_t
unsigned short UShort_t
unsigned char UChar_t
char Char_t
float Float_t
double Double_t
#define ClassDef(name, id)
char name[80]
To store calibration parameters in a database ,.
Double_t GetParameter(UShort_t i=0) const
Calibration peak in database.
Definition: KVDBPeak.h:35
void init()
default initialisations
Definition: KVDBPeak.cpp:25
TString fDetector
name of detector
Definition: KVDBPeak.h:40
Double_t GetPeakWidth()
Definition: KVDBPeak.h:128
void SetSigType(const Char_t *sig)
Definition: KVDBPeak.h:75
void SetDetector(const Char_t *name)
Definition: KVDBPeak.h:66
Double_t GetCentroid()
Definition: KVDBPeak.h:120
UChar_t fModule
module number of Si or CsI (in coinc with ChIo if peak is in ChIo)
Definition: KVDBPeak.h:45
UChar_t fRing
ring number of Si or CsI (in coinc with ChIo if peak is in ChIo)
Definition: KVDBPeak.h:44
const Char_t * GetSigType() const
Definition: KVDBPeak.h:79
Double_t GetError()
Definition: KVDBPeak.h:124
Bool_t WithGas() const
Definition: KVDBPeak.h:61
void SetGain(Float_t gain)
Definition: KVDBPeak.h:84
Float_t fEnergy
theoretical energy of peak
Definition: KVDBPeak.h:43
Float_t GetEnergy() const
Definition: KVDBPeak.h:97
UChar_t GetRing() const
Definition: KVDBPeak.h:106
void SetRing(UChar_t ring)
Definition: KVDBPeak.h:102
void SetModule(UChar_t mod)
Definition: KVDBPeak.h:111
Float_t GetGain() const
Definition: KVDBPeak.h:88
Bool_t fAvecGaz
=kTRUE if gaz present in chio
Definition: KVDBPeak.h:39
void SetEnergy(Float_t e)
Definition: KVDBPeak.h:93
TString fSignal
=signal type
Definition: KVDBPeak.h:41
void SetGas(Bool_t avec=kTRUE)
Definition: KVDBPeak.h:57
UChar_t GetModule() const
Definition: KVDBPeak.h:115
const Char_t * GetDetector() const
Definition: KVDBPeak.h:70
virtual ~ KVDBPeak()
Definition: KVDBPeak.h:51
Float_t fGain
gain of ampli for Si = 1.00 or 1.41
Definition: KVDBPeak.h:42
KVDBPeak()
default ctor
Definition: KVDBPeak.cpp:45
const char * Data() const