32 {
33 MsgStream log(
msgSvc(), name());
34
35 log << MSG::INFO << "in initialize()" << endmsg;
36 StatusCode status;
37
38 StatusCode sc=service("THistSvc", m_thsvc);
39 if(sc.isFailure()) {
40 log << MSG::ERROR << "Couldn't get THistSvc" << endreq;
41 return StatusCode::FAILURE;
42 }
43
44 h_path=new TH1F("h_path","barrel ",200,0,200);
45 if(m_thsvc->regHist("/DQAHist/TOF/h_path",h_path).isFailure()){
46 log << MSG::ERROR << "Couldn't register h_path" << endreq;
47 }
48 h_Bzrhit=new TH1F("h_Bzrhit","barrel z hitmap",240,-120,120);
49 m_thsvc->regHist("/DQAHist/TOF/h_Bzrhit", h_Bzrhit);
50 h_Ezrhit=new TH1F("h_Ezrhit","endcap z hitmap",50,40,90);
51 m_thsvc->regHist("/DQAHist/TOF/h_Ezrhit", h_Ezrhit);
52 h_ph=new TH1F("h_ph","barrel Q",900,0,9000);
53 m_thsvc->regHist("/DQAHist/TOF/h_ph", h_ph);
54
55 W_delT=new TH2F("W_delT","barrel west PMT delT",176,0,176,300,-1.5,1.5);
56 m_thsvc->regHist("/DQAHist/TOF/W_delT", W_delT);
57 E_delT=new TH2F("E_delT","barrel east PMT delT",176,0,176,300,-1.5,1.5);
58 m_thsvc->regHist("/DQAHist/TOF/E_delT", E_delT);
59 counter=new TH2F("counter","barrel counter delT",176,0,176,300,-1.5,1.5);
60 m_thsvc->regHist("/DQAHist/TOF/counter", counter);
61 cluster=new TH2F("cluster","barrel cluster delT",88,0,88,300,-1.5,1.5);
62 m_thsvc->regHist("/DQAHist/TOF/cluster", cluster);
63 EC_delT=new TH2F("EC_delT","endcap delT",96,0,96,300,-1.5,1.5);
64 m_thsvc->regHist("/DQAHist/TOF/EC_delT", EC_delT);
65 Bt_delT=new TH1F("Bt_delT","barrel delT",300,-1.5,1.5);
66 m_thsvc->regHist("/DQAHist/TOF/Bt_delT", Bt_delT);
67 Et_delT=new TH1F("Et_delT","endcap delT",300,-1.5,1.5);
68 m_thsvc->regHist("/DQAHist/TOF/Et_delT", Et_delT);
69
70 B_path=new TH2F("B_path","barrel flight distance vs z",240,-120,120,200,0.0,200.0);
71 m_thsvc->regHist("/DQAHist/TOF/B_path", B_path);
72 E_path=new TH2F("E_path","endcap path distance vs z",50,40,90,200,0.0,200.0);
73 m_thsvc->regHist("/DQAHist/TOF/E_path", E_path);
74
75 delT_z1=new TH2F("delT_z1","barrel east delT vs Z",240,-120,120,300,-1.5,1.5);
76 m_thsvc->regHist("/DQAHist/TOF/delT_z1", delT_z1);
77 delT_z2=new TH2F("delT_z2","barrel west delT vs Z",240,-120,120,300,-1.5,1.5);
78 m_thsvc->regHist("/DQAHist/TOF/delT_z2", delT_z2);
79 delT_z3=new TH2F("delT_z3","barrel counter delT vs Z",240,-120,120,300,-1.5,1.5);
80 m_thsvc->regHist("/DQAHist/TOF/delT_z3", delT_z3);
81 delT_z4=new TH2F("delT_z4","barrel cluster delT vs Z",240,-120,120,300,-1.5,1.5);
82 m_thsvc->regHist("/DQAHist/TOF/delT_z4", delT_z4);
83
84 W_delT_Q=new TH2F("W_delT_Q","west barrel delT vs Q",900,0,9000,300,-1.5,1.5);
85 m_thsvc->regHist("/DQAHist/TOF/W_delT_Q", W_delT_Q);
86 E_delT_Q=new TH2F("E_delT_Q","east barrel delT vs Q",900,0,9000,300,-1.5,1.5);
87 m_thsvc->regHist("/DQAHist/TOF/E_delT_Q", E_delT_Q);
88
89 delT_pp=new TH1F("delT_pp","proton delT",300,-1.5,1.5);
90 m_thsvc->regHist("/DQAHist/TOF/delT_pp", delT_pp);
91 delT_pm=new TH1F("delT_Pm","anti-proton delT",300,-1.5,1.5);
92 m_thsvc->regHist("/DQAHist/TOF/delT_pm", delT_pm);
93 delT_pi=new TH1F("delT_pi","pi delT",300,-1.5,1.5);
94 m_thsvc->regHist("/DQAHist/TOF/delT_pi", delT_pi);
95 delT_k=new TH1F("delT_k","k delT",300,-1.5,1.5);
96 m_thsvc->regHist("/DQAHist/TOF/delT_k", delT_k);
97 log << MSG::INFO << "DQA_TOF successfully return from initialize()" <<endmsg;
98 return StatusCode::SUCCESS;
99}