KaliVeda  1.13/01
Heavy-Ion Analysis Toolkit
KVDBPeak.cpp
Go to the documentation of this file.
1 /***************************************************************************
2 $Id: KVDBPeak.cpp,v 1.4 2007/04/02 17:43:38 ebonnet Exp $
3  KVDBPeak.cpp - description
4  -------------------
5  begin : dec 5 2003
6  copyright : (C) 2003 by J.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 #include "KVDBPeak.h"
19 
20 
23 
25 void KVDBPeak::init()
26 {
27  //default initialisations
28  fAvecGaz = kTRUE;
29  fGain = 1.0; //gain of ampli for Si = 1.00 or 1.41
30  fEnergy = 0.0; //theoretical energy of peak
31  fDetector = "";
32  fSignal = "";
33  fRing = 0;
34  fModule = 0;
35  SetRunList("");
36  SetRingList("");
37  SetModuleList("");
38 }
39 
40 
41 
44 
46 {
47  //default ctor
48  init();
49 }
50 
51 
52 
56 
57 KVDBPeak::KVDBPeak(const Char_t* detname, const Char_t* type,
58  UShort_t pnum): KVDBParameterSet(Form("%s_%s", detname,
59  type), type, pnum)
60 {
61  //create a calibration peak of type "type" for detector "detname" with pnum parameters
62  //the name of the peak is "detname_type"
63 
64  init();
65  SetDetector(detname);
66 }
67 
68 
ClassImp(KVPartitionList) void KVPartitionList
Initialisation.
unsigned short UShort_t
char Char_t
const Bool_t kTRUE
int type
char * Form(const char *fmt,...)
To store calibration parameters in a database ,.
Calibration peak in database.
Definition: KVDBPeak.h:34
void init()
default initialisations
Definition: KVDBPeak.cpp:25
void SetDetector(const Char_t *name)
Definition: KVDBPeak.h:65
KVDBPeak()
default ctor
Definition: KVDBPeak.cpp:45