KaliVeda  1.13/01
Heavy-Ion Analysis Toolkit
KVINDRAUpDater_e416a.cpp
Go to the documentation of this file.
1 /*
2 $Id: KVINDRAUpDater_e416a.cpp,v 1.1 2007/02/14 14:12:00 franklan Exp $
3 $Revision: 1.1 $
4 $Date: 2007/02/14 14:12:00 $
5 */
6 
7 //Created by KVClassFactory on Wed Feb 14 12:54:25 2007
8 //Author: franklan
9 
10 #include "KVINDRAUpDater_e416a.h"
11 #include "KVRList.h"
12 #include "KVDBRun.h"
13 #include "KVDB_BIC_Pressures.h"
14 #include "Riostream.h"
15 #include "KVINDRA.h"
16 #include "KVINDRADB.h"
17 
18 using namespace std;
19 
21 
22 
23 
27 {
28  //Default constructor
29 }
30 
31 
32 
35 
37 {
38  //Destructor
39 }
40 
41 
42 
45 
47 {
48  //Update ChIo and BIC pressures for this run with values in database
49 
51 
52  //set BIC pressures
53  KVRList* param_list = kvrun->GetLinks("BIC Pressures");
54  if (!param_list) {
55  return;
56  }
57  if (param_list->GetSize() > 1) {
58  Warning("SetChIoPressures",
59  "There are %d sets of BIC pressures for this run. Check file %s",
60  param_list->GetSize(), gIndraDB->GetCalibFileName("BICPressures"));
61  }
62  KVDB_BIC_Pressures* kvps = (KVDB_BIC_Pressures*)param_list->At(0);
63  cout << "--> Setting BIC pressures" << endl;
64  cout << " BIC_1: " << kvps->
65  GetPressure(BIC_1) << " Torr" << endl;
66  cout << " BIC_2: " << kvps->
67  GetPressure(BIC_2) << " Torr" << endl;
68  cout << " BIC_3: " << kvps->
69  GetPressure(BIC_3) << " Torr" << endl;
70  gIndra->GetDetector("BIC_1")->SetPressure(kvps->GetPressure(BIC_1));
71  gIndra->GetDetector("BIC_2")->SetPressure(kvps->GetPressure(BIC_2));
72  gIndra->GetDetector("BIC_3")->SetPressure(kvps->GetPressure(BIC_3));
73 }
74 
75 
76 
#define BIC_3
#define BIC_2
#define BIC_1
KVINDRADB * gIndraDB
Definition: KVINDRADB.cpp:38
KVINDRA * gIndra
Definition: KVINDRA.cpp:88
ClassImp(KVPartitionList) void KVPartitionList
Initialisation.
virtual Float_t GetPressure(UInt_t chio_number)
virtual KVRList * GetLinks(const Char_t *key) const
Returns the list of records linked to this record in table "key".
Definition: KVDBRecord.cpp:206
Description of an experimental run in database ,.
Definition: KVDBRun.h:35
Database entry for BIC (Blocking Ionisation Chamber) pressures (experiment E416A)
TString GetCalibFileName(const Char_t *type) const
Definition: KVExpDB.h:108
KVDetector * GetDetector(const Char_t *name) const
Return detector in this structure with given name.
Sets run parameters for INDRA_e416a dataset.
virtual void SetChIoPressures(KVDBRun *)
Update ChIo and BIC pressures for this run with values in database.
virtual ~KVINDRAUpDater_e416a()
Destructor.
virtual void SetChIoPressures(KVDBRun *)
virtual void SetPressure(Double_t)
Definition: KVMaterial.cpp:583
Wrapper for TRefArray adding some functionality.
Definition: KVRList.h:36
virtual Int_t GetSize() const
Definition: KVRList.h:76
TObject * At(Int_t idx) const
void Warning(const char *location, const char *va_(fmt),...)