updated task to make it possible to run on the grid
[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),
21 fZDCCutZNATimeCorr(2.0),
22 fZDCCutZNCTimeCorr(5.0)
be3cb6b4 23{
24 // default ctor
25
26
27}
28AliOADBTriggerAnalysis::AliOADBTriggerAnalysis(char* name) : TNamed(name, "OADB object storing trigger analysis settings"),
29 fZDCCutRefSumCorr(-65.5),
30 fZDCCutRefDeltaCorr(-2.1),
31 fZDCCutSigmaSumCorr(6.0),
00eea33b 32 fZDCCutSigmaDeltaCorr(1.2),
33 fZDCCutZNATimeCorr(2.0),
34 fZDCCutZNCTimeCorr(5.0)
be3cb6b4 35{
36 // ctor
37 // Init();
38}
39
40// void AliOADBTriggerAnalysis::Init() {
41// // initialize pointers
42
43
44
45// }
46
47AliOADBTriggerAnalysis::~AliOADBTriggerAnalysis(){
48 // dtor
49
50}
51
52void AliOADBTriggerAnalysis::Browse(TBrowser *b)
53{
54 // Browse this object.
55 // If b=0, there is no Browse call TObject::Browse(0) instead.
56 // This means TObject::Inspect() will be invoked indirectly
57
58
59 static TObjString * strZDCCutRefSumCorr =0;
60 static TObjString * strZDCCutRefDeltaCorr =0;
61 static TObjString * strZDCCutSigmaSumCorr =0;
62 static TObjString * strZDCCutSigmaDeltaCorr =0;
00eea33b 63 static TObjString * strZDCCutZNATimeCorr =0;
64 static TObjString * strZDCCutZNCTimeCorr =0;
be3cb6b4 65
66 if(strZDCCutRefSumCorr ) delete strZDCCutRefSumCorr ;
67 if(strZDCCutRefDeltaCorr ) delete strZDCCutRefDeltaCorr ;
68 if(strZDCCutSigmaSumCorr ) delete strZDCCutSigmaSumCorr ;
69 if(strZDCCutSigmaDeltaCorr ) delete strZDCCutSigmaDeltaCorr ;
00eea33b 70 if(strZDCCutZNATimeCorr ) delete strZDCCutZNATimeCorr ;
71 if(strZDCCutZNCTimeCorr ) delete strZDCCutZNCTimeCorr ;
be3cb6b4 72
73 strZDCCutRefSumCorr = new TObjString(Form("ZDCCutRefSumCorr %f", fZDCCutRefSumCorr ));
74 strZDCCutRefDeltaCorr = new TObjString(Form("ZDCCutRefDeltaCorr %f", fZDCCutRefDeltaCorr ));
75 strZDCCutSigmaSumCorr = new TObjString(Form("ZDCCutSigmaSumCorr %f", fZDCCutSigmaSumCorr ));
76 strZDCCutSigmaDeltaCorr = new TObjString(Form("ZDCCutSigmaDeltaCorr %f", fZDCCutSigmaDeltaCorr));
00eea33b 77 strZDCCutZNATimeCorr = new TObjString(Form("ZDCCutZNATimeCorr %f", fZDCCutZNATimeCorr ));
78 strZDCCutZNCTimeCorr = new TObjString(Form("ZDCCutZNCTimeCorr %f", fZDCCutZNCTimeCorr ));
be3cb6b4 79
80 if (b) {
81 // Creates a folder for each beam type containing the list of corresponding bx ids
82 b->Add(strZDCCutRefSumCorr );
83 b->Add(strZDCCutRefDeltaCorr );
84 b->Add(strZDCCutSigmaSumCorr );
85 b->Add(strZDCCutSigmaDeltaCorr);
00eea33b 86 b->Add(strZDCCutZNATimeCorr );
87 b->Add(strZDCCutZNCTimeCorr );
be3cb6b4 88 }
89 else
90 TObject::Browse(b);
91}
92
93void AliOADBTriggerAnalysis::Print(Option_t* option) const {
94 // Print Class contents
95 // Option is passed to TMap::Print
96 cout << "ZDC configuration" << endl;
97 cout << " - ZDCCutRefSumCorr "<< fZDCCutRefSumCorr << endl;
98 cout << " - ZDCCutRefDeltaCorr "<< fZDCCutRefDeltaCorr << endl;
99 cout << " - ZDCCutSigmaSumCorr "<< fZDCCutSigmaSumCorr << endl;
100 cout << " - ZDCCutSigmaDeltaCorr "<< fZDCCutSigmaDeltaCorr << endl;
00eea33b 101 cout << " - ZDCCutZNATimeCorr "<< fZDCCutZNATimeCorr << endl;
102 cout << " - ZDCCutZNCTimeCorr "<< fZDCCutZNCTimeCorr << endl;
dfb98982 103 cout << option << endl;
be3cb6b4 104
105}