19 return StatusCode::SUCCESS;
30 m_LUCID_Histos.push_back(
new TH1F(
"tube_occupancy_cBX",
"Tube occupancy (current BX)" , nbin, -0.5, nbin - 0.5));
31 m_LUCID_Histos.push_back(
new TH1F(
"tube_occupancy_pBX",
"Tube occupancy (previous BX)", nbin, -0.5, nbin - 0.5));
32 m_LUCID_Histos.push_back(
new TH1F(
"tube_occupancy_nBX",
"Tube occupancy (next BX)" , nbin, -0.5, nbin - 0.5));
34 m_LUCID_Histos.push_back(
new TH1F(
"hitsPMT_cBX_sing_sideA",
"Number of hitsPMT on sideA (single side mode, current BX)" , nbin + 1, -0.5, nbin + 0.5));
35 m_LUCID_Histos.push_back(
new TH1F(
"hitsPMT_cBX_sing_sideC",
"Number of hitsPMT on sideC (single side mode, current BX)" , nbin + 1, -0.5, nbin + 0.5));
36 m_LUCID_Histos.push_back(
new TH1F(
"hitsPMT_cBX_sing_total",
"Number of hitsPMT in total (single side mode, current BX)" , nbin + 1, -0.5, nbin + 0.5));
38 m_LUCID_Histos.push_back(
new TH1F(
"hitsPMT_cBX_coin_sideA",
"Number of hitsPMT on sideA (coincidence mode, current BX)" , nbin + 1, -0.5, nbin + 0.5));
39 m_LUCID_Histos.push_back(
new TH1F(
"hitsPMT_cBX_coin_sideC",
"Number of hitsPMT on sideC (coincidence mode, current BX)" , nbin + 1, -0.5, nbin + 0.5));
40 m_LUCID_Histos.push_back(
new TH1F(
"hitsPMT_cBX_coin_total",
"Number of hitsPMT in total (coincidence mode, current BX)" , nbin + 1, -0.5, nbin + 0.5));
42 m_LUCID_Histos.push_back(
new TH1F(
"hitsFIB_cBX_sing_sideA",
"Number of hitsFIB on sideA (single side mode, current BX)" , nbin + 1, -0.5, nbin + 0.5));
43 m_LUCID_Histos.push_back(
new TH1F(
"hitsFIB_cBX_sing_sideC",
"Number of hitsFIB on sideC (single side mode, current BX)" , nbin + 1, -0.5, nbin + 0.5));
44 m_LUCID_Histos.push_back(
new TH1F(
"hitsFIB_cBX_sing_total",
"Number of hitsFIB in total (single side mode, current BX)" , nbin + 1, -0.5, nbin + 0.5));
46 m_LUCID_Histos.push_back(
new TH1F(
"hitsFIB_cBX_coin_sideA",
"Number of hitsFIB on sideA (coincidence mode, current BX)" , nbin + 1, -0.5, nbin + 0.5));
47 m_LUCID_Histos.push_back(
new TH1F(
"hitsFIB_cBX_coin_sideC",
"Number of hitsFIB on sideC (coincidence mode, current BX)" , nbin + 1, -0.5, nbin + 0.5));
48 m_LUCID_Histos.push_back(
new TH1F(
"hitsFIB_cBX_coin_total",
"Number of hitsFIB in total (coincidence mode, current BX)" , nbin + 1, -0.5, nbin + 0.5));
50 m_LUCID_Histos.push_back(
new TH1F(
"hitsPMT_pBX_sing_sideA",
"Number of hitsPMT on sideA (single side mode, previous BX)", nbin + 1, -0.5, nbin + 0.5));
51 m_LUCID_Histos.push_back(
new TH1F(
"hitsPMT_pBX_sing_sideC",
"Number of hitsPMT on sideC (single side mode, previous BX)", nbin + 1, -0.5, nbin + 0.5));
52 m_LUCID_Histos.push_back(
new TH1F(
"hitsPMT_pBX_sing_total",
"Number of hitsPMT in total (single side mode, previous BX)", nbin + 1, -0.5, nbin + 0.5));
54 m_LUCID_Histos.push_back(
new TH1F(
"hitsPMT_pBX_coin_sideA",
"Number of hitsPMT on sideA (coincidence mode, previous BX)", nbin + 1, -0.5, nbin + 0.5));
55 m_LUCID_Histos.push_back(
new TH1F(
"hitsPMT_pBX_coin_sideC",
"Number of hitsPMT on sideC (coincidence mode, previous BX)", nbin + 1, -0.5, nbin + 0.5));
56 m_LUCID_Histos.push_back(
new TH1F(
"hitsPMT_pBX_coin_total",
"Number of hitsPMT in total (coincidence mode, previous BX)", nbin + 1, -0.5, nbin + 0.5));
58 m_LUCID_Histos.push_back(
new TH1F(
"hitsFIB_pBX_sing_sideA",
"Number of hitsFIB on sideA (single side mode, previous BX)", nbin + 1, -0.5, nbin + 0.5));
59 m_LUCID_Histos.push_back(
new TH1F(
"hitsFIB_pBX_sing_sideC",
"Number of hitsFIB on sideC (single side mode, previous BX)", nbin + 1, -0.5, nbin + 0.5));
60 m_LUCID_Histos.push_back(
new TH1F(
"hitsFIB_pBX_sing_total",
"Number of hitsFIB in total (single side mode, previous BX)", nbin + 1, -0.5, nbin + 0.5));
62 m_LUCID_Histos.push_back(
new TH1F(
"hitsFIB_pBX_coin_sideA",
"Number of hitsFIB on sideA (coincidence mode, previous BX)", nbin + 1, -0.5, nbin + 0.5));
63 m_LUCID_Histos.push_back(
new TH1F(
"hitsFIB_pBX_coin_sideC",
"Number of hitsFIB on sideC (coincidence mode, previous BX)", nbin + 1, -0.5, nbin + 0.5));
64 m_LUCID_Histos.push_back(
new TH1F(
"hitsFIB_pBX_coin_total",
"Number of hitsFIB in total (coincidence mode, previous BX)", nbin + 1, -0.5, nbin + 0.5));
66 m_LUCID_Histos.push_back(
new TH1F(
"hitsPMT_nBX_sing_sideA",
"Number of hitsPMT on sideA (single side mode, next BX)" , nbin + 1, -0.5, nbin + 0.5));
67 m_LUCID_Histos.push_back(
new TH1F(
"hitsPMT_nBX_sing_sideC",
"Number of hitsPMT on sideC (single side mode, next BX)" , nbin + 1, -0.5, nbin + 0.5));
68 m_LUCID_Histos.push_back(
new TH1F(
"hitsPMT_nBX_sing_total",
"Number of hitsPMT in total (single side mode, next BX)" , nbin + 1, -0.5, nbin + 0.5));
70 m_LUCID_Histos.push_back(
new TH1F(
"hitsPMT_nBX_coin_sideA",
"Number of hitsPMT on sideA (coincidence mode, next BX)" , nbin + 1, -0.5, nbin + 0.5));
71 m_LUCID_Histos.push_back(
new TH1F(
"hitsPMT_nBX_coin_sideC",
"Number of hitsPMT on sideC (coincidence mode, next BX)" , nbin + 1, -0.5, nbin + 0.5));
72 m_LUCID_Histos.push_back(
new TH1F(
"hitsPMT_nBX_coin_total",
"Number of hitsPMT in total (coincidence mode, next BX)" , nbin + 1, -0.5, nbin + 0.5));
74 m_LUCID_Histos.push_back(
new TH1F(
"hitsFIB_nBX_sing_sideA",
"Number of hitsFIB on sideA (single side mode, next BX)" , nbin + 1, -0.5, nbin + 0.5));
75 m_LUCID_Histos.push_back(
new TH1F(
"hitsFIB_nBX_sing_sideC",
"Number of hitsFIB on sideC (single side mode, next BX)" , nbin + 1, -0.5, nbin + 0.5));
76 m_LUCID_Histos.push_back(
new TH1F(
"hitsFIB_nBX_sing_total",
"Number of hitsFIB in total (single side mode, next BX)" , nbin + 1, -0.5, nbin + 0.5));
78 m_LUCID_Histos.push_back(
new TH1F(
"hitsFIB_nBX_coin_sideA",
"Number of hitsFIB on sideA (coincidence mode, next BX)" , nbin + 1, -0.5, nbin + 0.5));
79 m_LUCID_Histos.push_back(
new TH1F(
"hitsFIB_nBX_coin_sideC",
"Number of hitsFIB on sideC (coincidence mode, next BX)" , nbin + 1, -0.5, nbin + 0.5));
80 m_LUCID_Histos.push_back(
new TH1F(
"hitsFIB_nBX_coin_total",
"Number of hitsFIB in total (coincidence mode, next BX)" , nbin + 1, -0.5, nbin + 0.5));
82 std::vector<TH1F*>::const_iterator histo_itr =
m_LUCID_Histos.begin();
83 std::vector<TH1F*>::const_iterator histo_end =
m_LUCID_Histos.end();
87 for(; histo_itr != histo_end; ++histo_itr) {
91 (*histo_itr)->GetXaxis()->SetTitle(
"Tube Number");
92 (*histo_itr)->GetYaxis()->SetTitle(
"Occupancy");
94 else (*histo_itr)->GetXaxis()->SetTitle(
"Number of hits");
101 return StatusCode::SUCCESS;
110 if (!rawdata.isValid()) {
ATH_MSG_WARNING(
" Could not retireved LUCID_RawDataContainer from StoreGate ");
return StatusCode::FAILURE; }
111 else ATH_MSG_DEBUG(
" LUCID_RawDataContainer is retireved from StoreGate ");
113 for (
const auto LUCID_RawData_itr : *rawdata) {
117 for (
int bxID=0; bxID<3; bxID++) {
120 bool isTubeFired = LUCID_RawData_itr->isTubeFired(tub, bxID);
123 " bxID: " << std::setw(10) << bxID
124 <<
" tub: " << std::setw(10) << tub
125 <<
" fire: " << std::setw(10) << isTubeFired
132 int hitsA, hitsC, hitsT;
135 hitsA = LUCID_RawData_itr->getNhitsPMTsideA();
136 hitsC = LUCID_RawData_itr->getNhitsPMTsideC();
137 hitsT = hitsA + hitsC;
138 coinFlag = (hitsA>0 && hitsC>0);
148 hitsA = LUCID_RawData_itr->getNhitsFIBsideA();
149 hitsC = LUCID_RawData_itr->getNhitsFIBsideC();
150 hitsT = hitsA + hitsC;
151 coinFlag = (hitsA>0 && hitsC>0);
161 hitsA = LUCID_RawData_itr->getNhitsPMTsideAprevBX();
162 hitsC = LUCID_RawData_itr->getNhitsPMTsideCprevBX();
163 hitsT = hitsA + hitsC;
164 coinFlag = (hitsA>0 && hitsC>0);
174 hitsA = LUCID_RawData_itr->getNhitsFIBsideAprevBX();
175 hitsC = LUCID_RawData_itr->getNhitsFIBsideCprevBX();
176 hitsT = hitsA + hitsC;
177 coinFlag = (hitsA>0 && hitsC>0);
187 hitsA = LUCID_RawData_itr->getNhitsPMTsideAnextBX();
188 hitsC = LUCID_RawData_itr->getNhitsPMTsideCnextBX();
189 hitsT = hitsA + hitsC;
190 coinFlag = (hitsA>0 && hitsC>0);
200 hitsA = LUCID_RawData_itr->getNhitsFIBsideAnextBX();
201 hitsC = LUCID_RawData_itr->getNhitsFIBsideCnextBX();
202 hitsT = hitsA + hitsC;
203 coinFlag = (hitsA>0 && hitsC>0);
214 return StatusCode::SUCCESS;
228 return StatusCode::SUCCESS;