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