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