]> git.uio.no Git - u/mrichter/AliRoot.git/blob - TRD/Cal/AliTRDTestCal.C
TOF raw data format: updated version
[u/mrichter/AliRoot.git] / TRD / Cal / AliTRDTestCal.C
1 void Dump(Char_t* comment, Float_t* f)
2 {
3   cout << f[0] << " " << f[1] << " " << f[2] << endl;
4 }
5
6 void Dump(Char_t* comment, Float_t f)
7 {
8   cout << comment << ": " << f << endl;
9 }
10
11 void AliTRDTestCal()
12 {
13   AliTRDcalibDB* calib = AliTRDcalibDB::Instance();
14   if (!calib)
15   {
16     cerr << "calibDB singleton has already been terminated." << endl;
17     return;
18   }
19
20   Float_t f[3];
21
22   calib->GetChamberPos(0, f); Dump("chamberpos", f);
23   calib->GetChamberRot(0, f); Dump("chamberrot", f);
24
25   calib->GetStackPos(0, 0, f); Dump("stackpos", f);
26   calib->GetStackRot(0, 0, f); Dump("stackrot", f);
27
28   calib->GetSuperModulePos(0, f); Dump("smpos", f);
29   calib->GetSuperModuleRot(0, f); Dump("smrot", f);
30
31   Dump("vdrift", calib->GetVdrift(0, 0, 0));
32   Dump("vdrift-av", calib->GetVdriftAverage(0));
33
34   Dump("t0", calib->GetT0(0, 0, 0));
35   Dump("t0-av", calib->GetT0Average(0));
36
37   Dump("gain", calib->GetGainFactor(0, 0, 0));
38   Dump("gain-av", calib->GetGainFactorAverage(0));
39
40   Dump("prf", calib->GetPRFWidth(0, 0, 0));
41
42   Dump("sf", calib->GetSamplingFrequency());
43   Dump("timebins", calib->GetNumberOfTimeBins());
44
45   Dump("padstatus", calib->GetPadStatus(0, 0, 0));
46   Dump("mcmstatus", calib->GetMCMStatus(0, 0, 0));
47   Dump("chamberstatus", calib->GetChamberStatus(0));
48   Dump("smstatus", calib->GetSuperModuleStatus(0));
49
50   AliTRDCalMonitoring* mon = calib->GetMonitoringObject();
51   Dump("monitoring", (Float_t) mon);
52   AliTRDCalPIDLQ* pid = calib->GetPIDLQObject();
53   Dump("pid", (Float_t) pid);
54
55 }