43 {
44 MsgStream log(
msgSvc(), name());
45
46 log << MSG::INFO << "in initialize()" << endmsg;
47 StatusCode status;
48
49
50 if(service("THistSvc", m_thsvc).isFailure()) {
51 log << MSG::ERROR << "Couldn't get THistSvc" << endreq;
52 return StatusCode::FAILURE;
53 }
54
55
56 m_hresAllIncBb = new TH1F("HResAllIncBb", "", 200, -1.0, 1.0);
57 if(m_thsvc->regHist("/DQAHist/MDC/hresAllIncBb", m_hresAllIncBb).isFailure())
58 { log << MSG::ERROR << "Couldn't register HResAllIncBb" << endreq; }
59
60 m_hresAllExcBb = new TH1F("HResAllExcBb", "", 200, -1.0, 1.0);
61 if(m_thsvc->regHist("/DQAHist/MDC/hresAllExcBb", m_hresAllExcBb).isFailure())
62 { log << MSG::ERROR << "Couldn't register HResAllExcBb" << endreq; }
63
64 m_hresAllEvaBb = new TH1F("HResAllEvaBb", "", 200, -1.0, 1.0);
65 if(m_thsvc->regHist("/DQAHist/MDC/hresAllEvaBb", m_hresAllEvaBb).isFailure())
66 { log << MSG::ERROR << "Couldn't register HResAllEvaBb" << endreq; }
67
68 m_ppLabBb = new TH1F("PpLabBb", "", 800, 0, 3);
69 if(m_thsvc->regHist("/DQAHist/MDC/hppLabBb", m_ppLabBb).isFailure())
70 { log << MSG::ERROR << "Couldn't register PpLabBb" << endreq; }
71 m_pmLabBb = new TH1F("PmLabBb", "", 800, 0, 3);
72 if(m_thsvc->regHist("/DQAHist/MDC/hpmLabBb", m_pmLabBb).isFailure())
73 { log << MSG::ERROR << "Couldn't register PmLabBb" << endreq; }
74
75 m_ppCmsBb = new TH1F("PpCmsBb", "", 800, 0, 3);
76 if(m_thsvc->regHist("/DQAHist/MDC/hppCmsBb", m_ppCmsBb).isFailure())
77 { log << MSG::ERROR << "Couldn't register PpCmsBb" << endreq; }
78 m_pmCmsBb = new TH1F("PmCmsBb", "", 800, 0, 3);
79 if(m_thsvc->regHist("/DQAHist/MDC/hpmCmsBb", m_pmCmsBb).isFailure())
80 { log << MSG::ERROR << "Couldn't register PmCmsBb" << endreq; }
81
82 m_pTotLabBb = new TH1F("PTotLabBb", "", 800, 0, 3);
83 if(m_thsvc->regHist("/DQAHist/MDC/hpTotLabBb", m_pTotLabBb).isFailure())
84 { log << MSG::ERROR << "Couldn't register PTotLabBb" << endreq; }
85 m_pTotCmsBb = new TH1F("PTotCmsBb", "", 800, 0, 3);
86 if(m_thsvc->regHist("/DQAHist/MDC/hpTotCmsBb", m_pTotCmsBb).isFailure())
87 { log << MSG::ERROR << "Couldn't register PTotCmsBb" << endreq; }
88
89 m_hresAllIncDimu = new TH1F("HResAllIncDimu", "", 200, -1.0, 1.0);
90 if(m_thsvc->regHist("/DQAHist/MDC/hresAllIncDimu", m_hresAllIncDimu).isFailure())
91 { log << MSG::ERROR << "Couldn't register HResAllIncDimu" << endreq; }
92
93 m_hresAllExcDimu = new TH1F("HResAllExcDimu", "", 200, -1.0, 1.0);
94 if(m_thsvc->regHist("/DQAHist/MDC/hresAllExcDimu", m_hresAllExcDimu).isFailure())
95 { log << MSG::ERROR << "Couldn't register HResAllExcDimu" << endreq; }
96
97 m_hresAllEvaDimu = new TH1F("HResAllEvaDimu", "", 200, -1.0, 1.0);
98 if(m_thsvc->regHist("/DQAHist/MDC/hresAllEvaDimu", m_hresAllEvaDimu).isFailure())
99 { log << MSG::ERROR << "Couldn't register HResAllEvaDimu" << endreq; }
100
101 m_ppLabDimu = new TH1F("PpLabDimu", "", 800, 0, 3);
102 if(m_thsvc->regHist("/DQAHist/MDC/hppLabDimu", m_ppLabDimu).isFailure())
103 { log << MSG::ERROR << "Couldn't register PpLabDimu" << endreq; }
104 m_pmLabDimu = new TH1F("PmLabDimu", "", 800, 0, 3);
105 if(m_thsvc->regHist("/DQAHist/MDC/hpmLabDimu", m_pmLabDimu).isFailure())
106 { log << MSG::ERROR << "Couldn't register PmLabDimu" << endreq; }
107
108 m_ppCmsDimu = new TH1F("PpCmsDimu", "", 800, 0, 3);
109 if(m_thsvc->regHist("/DQAHist/MDC/hppCmsDimu", m_ppCmsDimu).isFailure())
110 { log << MSG::ERROR << "Couldn't register PpCmsDimu" << endreq; }
111 m_pmCmsDimu = new TH1F("PmCmsDimu", "", 800, 0, 3);
112 if(m_thsvc->regHist("/DQAHist/MDC/hpmCmsDimu", m_pmCmsDimu).isFailure())
113 { log << MSG::ERROR << "Couldn't register PmCmsDimu" << endreq; }
114
115 m_pTotLabDimu = new TH1F("PTotLabDimu", "", 800, 0, 3);
116 if(m_thsvc->regHist("/DQAHist/MDC/hpTotLabDimu", m_pTotLabDimu).isFailure())
117 { log << MSG::ERROR << "Couldn't register PTotLabDimu" << endreq; }
118 m_pTotCmsDimu = new TH1F("PTotCmsDimu", "", 800, 0, 3);
119 if(m_thsvc->regHist("/DQAHist/MDC/hpTotCmsDimu", m_pTotCmsDimu).isFailure())
120 { log << MSG::ERROR << "Couldn't register PTotCmsDimu" << endreq; }
121
122
123 log << MSG::INFO << "Initialize done!" <<endmsg;
124 return StatusCode::SUCCESS;
125}