forked from AliceO2Group/AliceO2
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathOCDB2CCDBTrapConfig.C
More file actions
359 lines (334 loc) · 18.4 KB
/
OCDB2CCDBTrapConfig.C
File metadata and controls
359 lines (334 loc) · 18.4 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
// Copyright 2019-2020 CERN and copyright holders of ALICE O2.
// See https://alice-o2.web.cern.ch/copyright for details of the copyright holders.
// All rights not expressly granted are reserved.
//
// This software is distributed under the terms of the GNU General Public
// License v3 (GPL Version 3), copied verbatim in the file "COPYING".
//
// In applying this license CERN does not waive the privileges and immunities
// granted to it by virtue of its status as an Intergovernmental Organization
// or submit itself to any jurisdiction.
// Use this macro to extract TRD calibration data from run2 for O2 calibrations class
// Alot of this was taken from OCDBtoTree.C in AliRoot/TRD/macros/
// Usage:
//
// void OCDB2CCDBTrapConfig(int run, const char* storageURI = "alien://folder=/alice/data/2010/OCDB/")
//
// * run - name of an ascii file containing run numbers
// * outFilename - name of the root file where the TRD OCDB information tree to be stored
// * storageURI - path of the OCDB database (if it is on alien, be sure to have a valid/active token)
// NOTES :
// This requires a custom version of AliTRDTrapConfig.h all private and protected must be changed to public
//
// for running with both O2 and aliroot ...
// export OCDB_PATH=/cvmfs/alice-ocdb.cern.ch to use cvmfs instead of the slower pulling from alien.
//
// .include $ALIROOT/include
//
// build aliroot as :
// aliBuild build AliRoot --defaults=o2
// i have aliBuild build AliRoot --defaults=o2 -z O2 --debug
// you then call :
// alienv enter VO_ALICE@O2::latest-O2-o2,VO_ALICE@AliRoot::latest-O2-o2
// according to my configs, modify as required of course.
// AliRoot needs to be rebuilt with private and protected removed from AliTRDTrapConfig, one can not
// extract the required information from the internals. I did not want to add additional functions.
//
#include <iostream>
#include <fstream>
#include <string>
#include <exception>
#include "TError.h"
#include "TVectorD.h"
#include "TTreeStream.h"
#include "TObjString.h"
#include "TTimeStamp.h"
#include "TH1.h"
#include "TMath.h"
#include "TObjArray.h"
#include "TFile.h"
#include "TList.h"
#include "TSystem.h"
#include "TGrid.h"
#include "AliCDBManager.h"
#include "AliCDBStorage.h"
#include "AliCDBEntry.h"
#include "AliTRDcalibDB.h"
// #include "AliGRPObject.h"
// #include "AliDCSSensor.h"
// #include "AliTRDSensorArray.h"
#include "AliTRDCalDet.h"
#include "AliTRDCalPad.h"
#include "AliTRDCalROC.h"
#include "AliTRDCalPadStatus.h"
#include "AliTRDCalChamberStatus.h"
#include "AliTRDCalSingleChamberStatus.h"
#include "AliTRDCalOnlineGainTable.h"
#include "AliTRDCalOnlineGainTableROC.h"
#include "AliTRDCalOnlineGainTableMCM.h"
//#include "AliTRDCalDCS.h"
// #include "AliTRDCalDCSFEE.h"
// #include "AliTRDCalDCSv2.h"
// #include "AliTRDCalDCSFEEv2.h"
#include "AliTRDCalTrapConfig.h"
#include "CCDB/CcdbApi.h"
//#include "TRDBase/PadParameters.h"
//#include "TRDBase/PadCalibrations.h"
//#include "TRDBase/PadCalibrationsAliases.h"
//#include "TRDBase/ChamberCalibrations.h"
//#include "TRDBase/ChamberStatus.h"
//#include "TRDBase/ChamberNoise.h"
//#include "TRDBase/CalOnlineGainTables.h"
//#include "TRDBase/FeeParam.h"
#include "TRDSimulation/TrapConfig.h"
using namespace std;
using namespace o2::ccdb;
using namespace o2::trd;
// global variables
// histograms used for extracting the mean and RMS of calibration parameters
// global constants
AliCDBStorage* storage = NULL;
AliCDBManager* manager = NULL;
Int_t Run(0);
void MakeRunListFromOCDB(const Char_t* directory, const Char_t* outfile, Bool_t fromAlien = kFALSE);
AliCDBEntry* GetCDBentry(const Char_t* path, Bool_t owner = kTRUE);
// NB NB NB NB
// This *WILL NOT WORK* unless you recompile AliTRDtrapConf with all public members in the class.
// It seems this class was never designed to allow copying..
// I could of course redo AliRoot, but ... whats the point, as this should simply be a one off
// to get all the trapconfig into CCDB.
// This is the reason the following method is commented out.
void ParseTrapConfigs(TrapConfig* trapconfig, AliTRDtrapConfig* run2config)
{
for (int regvalue = 0; regvalue < AliTRDtrapConfig::kLastReg; regvalue++) {
// cout << "revalue of : " << regvalue << endl;
// AliTRDtrapConfig::AliTRDTrapRegister a = fRegisterValue[regvalue];
//copy fname, fAddr, fNbits and fResetValue
//and inherited from trapvalue : fAllocMode fSize fData fValid
// trapconfig->mRegisterValue[regvalue].mName = run2config->fRegisterValue[regvalue].fName;
// cout << "now to init registervalues" << endl;
// Some Sanity checks:
if (regvalue > trapconfig->mRegisterValue.size())
cout << "!!!!!!!!!!!!! regval = " << regvalue << " while register array in trapconfig is :" << trapconfig->mRegisterValue.size() << endl;
trapconfig->mRegisterValue[regvalue].initfromrun2(run2config->fRegisterValue[regvalue].fName,
run2config->fRegisterValue[regvalue].fAddr,
run2config->fRegisterValue[regvalue].fNbits,
run2config->fRegisterValue[regvalue].fResetValue);
// now for the inherited AliTRDtrapValue members;
trapconfig->mRegisterValue[regvalue].allocatei((int)run2config->fRegisterValue[regvalue].fAllocMode);
//cout << "size is : " << run2config->fRegisterValue[regvalue].fSize << endl;
//allocate will set the size of the arrays and resize them accordingly.
// cout<< "PROBLEM !! datacount " << datacount<<">="<<trapconfig->mRegisterValue.size() << " and run2 size is : "<< run2config->fRegisterValue[regvalue].fSize << " allocmode : "<< run2config->fRegisterValue[regvalue].fAllocMode << endl;
for (unsigned int datacount = 0; datacount < run2config->fRegisterValue[regvalue].fSize; datacount++) {
if (datacount < trapconfig->mRegisterValue[regvalue].getDataSize()) {
// cout << " Writing : " << run2config->fRegisterValue[regvalue].fData[datacount] << " :: with valid of " << run2config->fRegisterValue[regvalue].fValid[datacount] << endl;
trapconfig->mRegisterValue[regvalue].setDataFromRun2(run2config->fRegisterValue[regvalue].fData[datacount], run2config->fRegisterValue[regvalue].fValid[datacount], datacount);
// cout << "Reading back : " << trapconfig->mRegisterValue[regvalue].getDataRaw(datacount) << " :: with valid of "<< trapconfig->mRegisterValue[regvalue].getValidRaw(datacount)<< endl;
// exit(1);
} else
cout << " datacoutn : " << datacount << " >= " << trapconfig->mDmem[regvalue].getDataSize() << endl;
}
}
// cout << "done with regiser values now for dmemwords" << endl;
for (int dmemwords = 0; dmemwords < AliTRDtrapConfig::fgkDmemWords; dmemwords++) {
// copy fName, fAddr
// inherited from trapvalue : fAllocMode, fSize fData and fValid
// trapconfig->mDmem[dmemwords].mName= run2config->fDmem[dmemwords].fName; // this gets set on setting the address
if (dmemwords > trapconfig->mDmem.size())
cout << "!!!!!!!!!!!!! dmemwords = " << dmemwords << " while register array in trapconfig is :" << trapconfig->mDmem.size() << endl;
trapconfig->mDmem[dmemwords].setAddress(run2config->fDmem[dmemwords].fAddr);
//TODO WHy did i have to comment this out ! trapconfig->mDmem[dmemwords].setName(run2config->fDmem[dmemwords].fName);
// now for the inherited AliTRDtrapValue members;
trapconfig->mDmem[dmemwords].allocatei((int)run2config->fDmem[dmemwords].fAllocMode);
//cout << "size is : " << run2config->fDmem[dmemwords].fSize << endl;
//trapconfig->mDmem[dmemwords].mSize = run2config->fDmem[dmemwords].fSize;i// gets set via allocate method in line above
for (unsigned int datacount = 0; datacount < run2config->fDmem[dmemwords].fSize; datacount++) {
if (datacount < trapconfig->mDmem[dmemwords].getDataSize()) {
trapconfig->mDmem[dmemwords].setDataFromRun2(run2config->fDmem[dmemwords].fData[datacount], run2config->fDmem[dmemwords].fValid[datacount], datacount);
} else
cout << " datacount : " << datacount << " >= " << trapconfig->mDmem[dmemwords].getDataSize() << endl;
}
}
// now for static values, static consts we obviously ignore
/* trapconfig->mgRegAddressMapInitialized = run2config->fgRegAddressMapInitialized;
for(int regmapindex=0;regmapindex<0x400+0x200+0x4;regmapindex++){
trapconfig->mgRegAddressMap[regmapindex]= (int)run2config->fgRegAddressMap[regmapindex]; // no need to sort this compiler problem out, RegAddressMap is done in the constructore
// the same way as it was done in run2 and nothing in the code allows you to change it.
}*/
}
// choose ccdbPath = "http://ccdb-test.cern.ch:8080" to write to the test CCDB at CERN
//__________________________________________________________________________________________
void OCDB2CCDBTrapConfig(TString ccdbPath = "http://localhost:8080", Int_t run = 297595, const Char_t* storageURI = "local:///cvmfs/alice-ocdb.cern.ch/calibration/data/2018/OCDB")
{
//
// Main function to steer the extraction of TRD OCDB information
//
auto timeStampStart = std::chrono::duration_cast<std::chrono::milliseconds>(std::chrono::system_clock::now().time_since_epoch()).count();
auto timeStampEnd = timeStampStart;
timeStampStart = 297595;
timeStampEnd += 1e3 * 60 * 60 * 24 * 365 * 3;
//std::string outFilename="CalibrationsForRun"+Run;
TTimeStamp jobStartTime;
// if the storage is on alien than we need to do some extra stuff
TString storageString(storageURI);
if (storageString.Contains("raw://") && !gGrid) {
TGrid::Connect("alien://");
}
// initialize the OCDB manager
manager = AliCDBManager::Instance();
manager->SetDefaultStorage(storageURI);
manager->SetCacheFlag(kTRUE);
storage = manager->GetDefaultStorage();
AliCDBEntry* entry = NULL;
Run = run;
manager->SetRun(Run);
time_t startTime = 0;
time_t endTime = 0;
UInt_t detectorMask = 0;
// get calibration information
// process gains
///////////////////////////
//Connect to CCDB
//
o2::ccdb::CcdbApi ccdb;
map<string, string> metadata; // do we want to store any meta data?
metadata.emplace(std::make_pair("UploadedBy", "marten"));
metadata.emplace(std::make_pair("Description", "Default TRAP config for Run 3 simulations in LS2"));
ccdb.init(ccdbPath.Data());
/*
AliTRDCalTrapConfig has a print command that outputs the list of trapconfigs stored.
AliTRDCalTrapConfig->Print() .... and you get the stuff below via AliInfo, but I can seem to get it right to parse this so
its all going here unfortunately ....
*/
vector<std::string> run2confignames = {
/*
"cf_pg-fpnp32_zs-s16-deh_tb30_trkl-b5n-fs1e24-ht200-qs0e24s24e23-pidlinear-pt100_ptrg.r5505",
"cf_pg-fpnp32_zs-s16-deh_tb24_trkl-b2p-fs1e24-ht200-qs0e24s24e23-pidlinear-pt100_ptrg.r5585",
"cf_pg-fpnp32_zs-s16-deh_tb24_trkl-b5p-fs1e24-ht200-qs0e23s23e22-pidlhc11dv3en-pt100_ptrg.r5766",
"cf_pg-fpnp32_zs-s16-deh_tb24_trkl-b0-fs1e24-ht200-qs0e23s23e22-pidlhc11dv3en_ptrg.r5767",
"cf_pg-fpnp32_zs-s16-deh_tb24_trkl-b5n-fs1e24-ht200-qs0e24s24e23-pidlinear-pt100_ptrg.r5570",
"cf_pg-fpnp32_zs-s16-deh_tb30_trkl-b2p-fs1e24-ht200-qs0e24s24e23-pidlinear-pt100_ptrg.r5566",
"cf_pg-fpnp32_zs-s16-deh_tb24_trkl-b2p-fs1e24-ht200-qs0e23s23e22-pidlhc11dv2en-pt100_ptrg.r5764",
"cf_pg-fpnp32_zs-s16-deh_tb24_trkl-b0-fs1e24-ht200-qs0e23s23e22-pidlhc11dv3en_ptrg.r5766",
"cf_pg-fpnp32_zs-s16-deh_tb24_trkl-b5n-fs1e24-ht200-qs0e23s23e22-pidlhc11dv2en-pt100_ptrg.r5764",
"cf_p_nozs_tb30_trk_ptrg.r4850",
"cf_pg-fpnp32_zs-s16-deh_tb24_trkl-b5p-fs1e24-ht200-qs0e23s23e22-pidlhc11dv2en-pt100_ptrg.r5764",
"cf_pg-fpnp32_zs-s16-deh_tb30_trkl-b0-fs1e24-ht200-qs0e24s24e23-pidlinear_ptrg.r5549",
"cf_pg-fpnp32_zs-s16-deh_tb30_trkl-b00-fs1e30-ht200-qs0e23s23e22-nb233-pidlhc11dv3en_ptrg.r5772",
"cf_pg-fpnp32_zs-s16-deh_tb30_trkl-b2p-fs1e30-ht200-qs0e29s29e28-nb233-pidlhc11dv4en-pt100_ptrg.r5773",
"cf_pg-fpnp32_zs-s16-deh_tb30_trkl-b2p-fs1e30-ht200-qs0e23s23e22-nb233-pidlhc11dv3en-pt100_ptrg.r5772",
"cf_pg-fpnp32_zs-s16-deh_tb24_trkl-b2p-fs1e24-ht200-qs0e23s23e22-pidlhc11dv1-pt100_ptrg.r5762",
"cf_pg-fpnp32_zs-s16-deh_tb30_trkl-b5n-fs1e30-ht200-qs0e23s23e22-nb233-pidlhc11dv3en-pt100_ptrg.r5772",
"cf_pg-fpnp32_zs-s16-deh_tb26_trkl-b5p-fs1e24-ht200-qs0e23s23e22-pidlhc11dv3en-pt100_ptrg.r5771",
"cf_pg-fpnp32_zs-s16-deh_tb30_trkl-b5p-fs1e30-ht200-qs0e23s23e22-nb233-pidlhc11dv3en-pt100_ptrg.r5772",
"cf_pg-fpnp32_zs-s16-deh_tb24_trkl-b0-fs1e24-ht200-qs0e23s23e22-pidlhc11dv3en_ptrg.r5765",
"cf_pg-fpnp32_zs-s16-deh_tb24_trkl-b2n-fs1e24-ht200-qs0e24s24e23-pidlinear-pt100_ptrg.r5585",
"cf_pg-fpnp32_zs-s16-deh_tb30_trkl-b5p-fs1e24-ht200-qs0e24s24e23-pidlinear-pt100_ptrg.r5505",
"cf_pg-fpnp32_zs-s16-deh_tb24_trkl-b5p-fs1e24-ht200-qs0e23s23e22-pidlhc11dv3en-pt100_ptrg.r5767",
"cf_pg-fpnp32_zs-s16-deh_tb30_trkl-b5p-fs1e24-ht200-qs0e24s24e23-pidlinear-pt100_ptrg.r5549",
"cf_pg-fpnp32_zs-s16-deh_tb24_trkl-b0-fs1e24-ht200-qs0e23s23e22-pidlhc11dv2en_ptrg.r5764",
"cf_pg-fpnp32_zs-s16-deh_tb30_trkl-b5p-fs1e30-ht200-qs0e29s29e28-nb233-pidlhc11dv4en-pt100_ptrg.r5773",
"cf_pg-fpnp32_zs-s16-deh_tb26_trkl-b0-fs1e24-ht200-qs0e23s23e22-pidlhc11dv3en_ptrg.r5771",
"cf_pg-fpnp32_zs-s16-deh_tb30_trkl-b2n-fs1e30-ht200-qs0e23s23e22-nb233-pidlhc11dv3en-pt100_ptrg.r5772",
"cf_pg-fpnp32_zs-s16-deh_tb24_trkl-b2n-fs1e24-ht200-qs0e23s23e22-pidlhc11dv1-pt100_ptrg.r5762",
"cf_pg-fpnp32_zs-s16-deh_tb26_trkl-b2p-fs1e24-ht200-qs0e23s23e22-pidlhc11dv3en-pt100_ptrg.r5771",
"cf_pg-fpnp32_zs-s16-deh_tb24_trkl-b5n-fs1e24-ht200-qs0e23s23e22-pidlhc11dv3en-pt100_ptrg.r5766",
"cf_pg-fpnp32_zs-s16-deh_tb24_trkl-b5n-fs1e24-ht200-qs0e23s23e22-pidlhc11dv1-pt100_ptrg.r4946",
"cf_pg-fpnp32_zs-s16-deh_tb24_trkl-b5p-fs1e24-ht200-qs0e23s23e22-pidlhc11dv3en-pt100_ptrg.r5765",
"cf_pg-fpnp32_zs-s16-deh_tb24_trkl-b5p-fs1e24-ht200-qs0e23s23e22-pidlhc11dv1-pt100_ptrg.r5762",
"cf_pg-fpnp32_zs-s16-deh_tb22_trkl-b5p-fs1e24-ht200-qs0e23s23e22-pidlhc11dv1-pt100_ptrg.r5037",
"cf_pg-fpnp32_zs-s16-deh_tb24_trkl-b5n-fs1e24-ht200-qs0e23s23e22-pidlhc11dv3en-pt100_ptrg.r5767",
"cf_pg-fpnp32_zs-s16-deh_tb24_trkl-b2p-fs1e24-ht200-qs0e23s23e22-pidlhc11dv3en-pt100_ptrg.r5767",
"cf_pg-fpnp32_zs-s16-deh_tb22_trkl-b5n-fs1e24-ht200-qs0e23s23e22-pidlhc11dv1-pt100_ptrg.r5037",
"cf_pg-fpnp32_zs-s16-deh_tb24_trkl-b2n-fs1e24-ht200-qs0e23s23e22-pidlhc11dv2en-pt100_ptrg.r5764",
"cf_pg-fpnp32_zs-s16-deh_tb24_trkl-b5n-fs1e24-ht200-qs0e23s23e22-pidlhc11dv3en-pt100_ptrg.r5765",
"cf_pg-fpnp32_zs-s16-deh_tb24_trkl-b5p-fs1e24-ht200-qs0e24s24e23-pidlinear-pt100_ptrg.r5570",
"cf_pg-fpnp32_zs-s16-deh_tb30_trkl-b0-fs1e30-ht200-qs0e29s29e28-nb233-pidlhc11dv4en_ptrg.r5773",
"cf_pg-fpnp32_zs-s16-deh_tb26_trkl-b5n-fs1e24-ht200-qs0e23s23e22-pidlhc11dv3en-pt100_ptrg.r5771",
"cf_pg-fpnp32_zs-s16-deh_tb30_trkl-b5n-fs1e30-ht200-qs0e29s29e28-nb233-pidlhc11dv4en-pt100_ptrg.r5773",
"cf_pg-fpnp32_zs-s16-deh_tb24_trkl-b0-fs1e24-ht200-qs0e24s24e23-pidlinear_ptrg.r5570",
"cf_pg-fpnp32_zs-s16-deh_tb30_trkl-b2n-fs1e24-ht200-qs0e24s24e23-pidlinear-pt100_ptrg.r5566",
"cf_pg-fpnp32_zs-s16-deh_tb22_trkl-b0-fs1e24-ht200-qs0e23s23e22-pidlhc11dv1_ptrg.r5037",
"cf_pg-fpnp32_zs-s16-deh_tb30_trkl-b2n-fs1e30-ht200-qs0e29s29e28-nb233-pidlhc11dv4en-pt100_ptrg.r5773",
"cf_pg-fpnp32_zs-s16-deh_tb22_trkl-b5n-fs1e24-ht200-qs0e23s23e22-pidlhc11dv1hn-pt100_ptrg.r5151",
"cf_pg-fpnp32_zs-s16-deh_tb24_trkl-b2n-fs1e24-ht200-qs0e23s23e22-pidlhc11dv3en-pt100_ptrg.r5767",
"cf_pg-fpnp32_zs-s16-deh_tb26_trkl-b2n-fs1e24-ht200-qs0e23s23e22-pidlhc11dv3en-pt100_ptrg.r5771",
"cf_pg-fpnp32_zs-s16-deh_tb24_trkl-b5n-fs1e24-ht200-qs0e23s23e22-pidlhc11dv1-pt100_ptrg.r5762",
"cf_pg-fpnp32_zs-s16-deh_tb30_trkl-b0-fs1e24-ht200-qs0e24s24e23-pidlinear_ptrg.r5505",
"cf_pg-fpnp32_zs-s16-deh_tb24_trkl-b0-fs1e24-ht200-qs0e23s23e22-pidlhc11dv1_ptrg.r5762",
*/
"cf_pg-fpnp32_zs-s16-deh_tb30_trkl-b5n-fs1e24-ht200-qs0e24s24e23-pidlinear-pt100_ptrg.r5549"};
// now we loop over these extracting the trapconfing and dumping it into the ccdb.
AliTRDCalTrapConfig* run2caltrapconfig = 0;
AliTRDtrapConfig* run2trapconfig = 0;
if ((entry = GetCDBentry("TRD/Calib/TrapConfig", 0))) {
if ((run2caltrapconfig = (AliTRDCalTrapConfig*)entry->GetObject())) {
for (auto const& run2trapconfigname : run2confignames) {
auto o2trapconfig = new TrapConfig();
run2trapconfig = run2caltrapconfig->Get(run2trapconfigname.c_str());
ParseTrapConfigs(o2trapconfig, run2trapconfig);
std::string objectPath = "TRD/TrapConfig/" + run2trapconfigname;
ccdb.storeAsTFileAny(o2trapconfig, objectPath, metadata, timeStampStart, timeStampEnd); // upper time chosen into the future else the server simply adds a year
}
}
}
//const AliTRDCalTrapConfig *caltrap = dynamic_cast<const AliTRDCalTrapConfig*> (calibdb->GetCachedCDBObject(12));
//cout << "now to print the names of the cal traps" << endl;
//if(caltrap) caltrap->Print();
//else cout << "caltrap is null" << endl;
//RecoParam
/*
THESE ARE THE ONES NOT CURRENTLY INCLUDED.
trd_ddchamberStatus
trd_gaschromatographXe
trd_gasOverpressure
trd_hvDriftImon
MonitoringData
PIDLQ
trd_envTemp
trd_gasCO2
trd_hvDriftUmon
PIDLQ1D
trd_gaschromatographCO2
trd_gasH2O
trd_hvAnodeImon
TrkAttach
PIDNN
PHQ PIDThresholds
This pulls stuff from DCS I should hopefully not need this stuff for simulation.
DCS
AliTRDSensorArray descends from AliTRDDCSSensorArray
trd_gaschromatographN2
trd_gasO2
trd_goofieHv
trd_goofiePressure
trd_hvAnodeUmon
trd_goofieN2
trd_goofieTemp
trd_goofieCO2
trd_goofiePeakArea
trd_goofieVelocity
trd_goofieGain
trd_goofiePeakPos
*/
return;
}
//__________________________________________________________________________________________
AliCDBEntry* GetCDBentry(const Char_t* path, Bool_t owner)
{
TString spath = path;
// ::Info("GetCDBentry", Form("QUERY RUN [%d] for \"%s\".", Run, spath.Data()));
AliCDBEntry* entry(NULL);
storage->QueryCDB(Run, spath.Data());
cout << spath.Data();
if (!storage->GetQueryCDBList()->GetEntries()) {
cout << "GetCDBentry" << Form("Missing \"%s\" in run %d.", spath.Data(), Run);
return NULL;
} else
entry = manager->Get(spath.Data());
if (!entry)
return NULL;
entry->SetOwner(owner);
// ::Info("GetCDBentry", Form("FOUND ENTRY @ [%p].", (void*)entry));
return entry;
}