could you please commit the attached TPC PID files to the OADB:
[u/mrichter/AliRoot.git] / OADB / AliOADBTriggerAnalysis.cxx
CommitLineData
be3cb6b4 1//-------------------------------------------------------------------------
2// OADB container for trigger analysis configuration (cut ranges.. ...)
3// Author: Michele Floris, CERN
4//-------------------------------------------------------------------------
5
6#include "AliOADBTriggerAnalysis.h"
7#include "AliLog.h"
8#include "TBrowser.h"
9#include "TFolder.h"
10#include <iostream>
11
12using namespace std;
13
14ClassImp(AliOADBTriggerAnalysis)
15
16AliOADBTriggerAnalysis::AliOADBTriggerAnalysis() : TNamed("AliOADBTriggerAnalysis", "OADB object storing trigger analysis settings"),
17 fZDCCutRefSumCorr(-65.5),
18 fZDCCutRefDeltaCorr(-2.1),
19 fZDCCutSigmaSumCorr(6.0),
00eea33b 20 fZDCCutSigmaDeltaCorr(1.2),
b68d0b5e 21 fZDCCutZNATimeCorrMin(2.0),
22 fZDCCutZNATimeCorrMax(100.0),
23 fZDCCutZNCTimeCorrMin(5.0),
24 fZDCCutZNCTimeCorrMax(100.0)
be3cb6b4 25{
26 // default ctor
be3cb6b4 27}
b68d0b5e 28
be3cb6b4 29AliOADBTriggerAnalysis::AliOADBTriggerAnalysis(char* name) : TNamed(name, "OADB object storing trigger analysis settings"),
30 fZDCCutRefSumCorr(-65.5),
31 fZDCCutRefDeltaCorr(-2.1),
32 fZDCCutSigmaSumCorr(6.0),
00eea33b 33 fZDCCutSigmaDeltaCorr(1.2),
b68d0b5e 34 fZDCCutZNATimeCorrMin(2.0),
35 fZDCCutZNATimeCorrMax(100.0),
36 fZDCCutZNCTimeCorrMin(5.0),
37 fZDCCutZNCTimeCorrMax(100.0)
be3cb6b4 38{
39 // ctor
40 // Init();
41}
42
43// void AliOADBTriggerAnalysis::Init() {
44// // initialize pointers
45
46
47
48// }
49
50AliOADBTriggerAnalysis::~AliOADBTriggerAnalysis(){
51 // dtor
52
53}
54
55void AliOADBTriggerAnalysis::Browse(TBrowser *b)
56{
57 // Browse this object.
58 // If b=0, there is no Browse call TObject::Browse(0) instead.
59 // This means TObject::Inspect() will be invoked indirectly
60
61
62 static TObjString * strZDCCutRefSumCorr =0;
63 static TObjString * strZDCCutRefDeltaCorr =0;
64 static TObjString * strZDCCutSigmaSumCorr =0;
65 static TObjString * strZDCCutSigmaDeltaCorr =0;
b68d0b5e 66 static TObjString * strZDCCutZNATimeCorrMin =0;
67 static TObjString * strZDCCutZNATimeCorrMax =0;
68 static TObjString * strZDCCutZNCTimeCorrMin =0;
69 static TObjString * strZDCCutZNCTimeCorrMax =0;
be3cb6b4 70
71 if(strZDCCutRefSumCorr ) delete strZDCCutRefSumCorr ;
72 if(strZDCCutRefDeltaCorr ) delete strZDCCutRefDeltaCorr ;
73 if(strZDCCutSigmaSumCorr ) delete strZDCCutSigmaSumCorr ;
74 if(strZDCCutSigmaDeltaCorr ) delete strZDCCutSigmaDeltaCorr ;
b68d0b5e 75 if(strZDCCutZNATimeCorrMin ) delete strZDCCutZNATimeCorrMin ;
76 if(strZDCCutZNATimeCorrMax ) delete strZDCCutZNATimeCorrMax ;
77 if(strZDCCutZNCTimeCorrMin ) delete strZDCCutZNCTimeCorrMin ;
78 if(strZDCCutZNCTimeCorrMax ) delete strZDCCutZNCTimeCorrMax ;
be3cb6b4 79
80 strZDCCutRefSumCorr = new TObjString(Form("ZDCCutRefSumCorr %f", fZDCCutRefSumCorr ));
81 strZDCCutRefDeltaCorr = new TObjString(Form("ZDCCutRefDeltaCorr %f", fZDCCutRefDeltaCorr ));
82 strZDCCutSigmaSumCorr = new TObjString(Form("ZDCCutSigmaSumCorr %f", fZDCCutSigmaSumCorr ));
83 strZDCCutSigmaDeltaCorr = new TObjString(Form("ZDCCutSigmaDeltaCorr %f", fZDCCutSigmaDeltaCorr));
b68d0b5e 84 strZDCCutZNATimeCorrMin = new TObjString(Form("ZDCCutZNATimeCorrMin %f", fZDCCutZNATimeCorrMin));
85 strZDCCutZNATimeCorrMax = new TObjString(Form("ZDCCutZNATimeCorrMax %f", fZDCCutZNATimeCorrMax));
86 strZDCCutZNCTimeCorrMin = new TObjString(Form("ZDCCutZNCTimeCorrMin %f", fZDCCutZNCTimeCorrMin));
87 strZDCCutZNCTimeCorrMax = new TObjString(Form("ZDCCutZNCTimeCorrMax %f", fZDCCutZNCTimeCorrMax));
be3cb6b4 88
89 if (b) {
90 // Creates a folder for each beam type containing the list of corresponding bx ids
91 b->Add(strZDCCutRefSumCorr );
92 b->Add(strZDCCutRefDeltaCorr );
93 b->Add(strZDCCutSigmaSumCorr );
94 b->Add(strZDCCutSigmaDeltaCorr);
b68d0b5e 95 b->Add(strZDCCutZNATimeCorrMin);
96 b->Add(strZDCCutZNATimeCorrMax);
97 b->Add(strZDCCutZNCTimeCorrMin);
98 b->Add(strZDCCutZNCTimeCorrMax);
be3cb6b4 99 }
100 else
101 TObject::Browse(b);
102}
103
104void AliOADBTriggerAnalysis::Print(Option_t* option) const {
105 // Print Class contents
106 // Option is passed to TMap::Print
107 cout << "ZDC configuration" << endl;
108 cout << " - ZDCCutRefSumCorr "<< fZDCCutRefSumCorr << endl;
109 cout << " - ZDCCutRefDeltaCorr "<< fZDCCutRefDeltaCorr << endl;
110 cout << " - ZDCCutSigmaSumCorr "<< fZDCCutSigmaSumCorr << endl;
111 cout << " - ZDCCutSigmaDeltaCorr "<< fZDCCutSigmaDeltaCorr << endl;
b68d0b5e 112 cout << " - ZDCCutZNATimeCorrMin "<< fZDCCutZNATimeCorrMin << endl;
113 cout << " - ZDCCutZNATimeCorrMax "<< fZDCCutZNATimeCorrMax << endl;
114 cout << " - ZDCCutZNCTimeCorrMin "<< fZDCCutZNCTimeCorrMin << endl;
115 cout << " - ZDCCutZNCTimeCorrMax "<< fZDCCutZNCTimeCorrMax << endl;
dfb98982 116 cout << option << endl;
be3cb6b4 117
118}