60 TDirectory* oldDir = gDirectory;
68 std::string tag[2] = {
"OUT",
"IN"};
69 std::string title[2] = {
"[Outside Active Veto Window]",
"[Inside Active Veto Window]"};
74 std::string histoName =
"EventsWithAborts";
75 std::string histoTitle =
"Events With at Least one Abort";
76 m_nEventsWithAbort[0] =
new TH1F(TString::Format(
"%s_%s", histoName.c_str(), tag[0].c_str()),
77 TString::Format(
"%s %s", histoTitle.c_str(), title[0].c_str()),
86 m_nEventsWithAbort[1]->SetName(TString::Format(
"%s_%s", histoName.c_str(), tag[1].c_str()));
87 m_nEventsWithAbort[1]->SetTitle(TString::Format(
"%s %s", histoTitle.c_str(), title[1].c_str()));
91 histoName =
"TrkAbortReason";
92 histoTitle =
"Tracking Abort Reason";
94 TString::Format(
"%s %s", histoTitle.c_str(), title[0].c_str()),
110 histoName =
"SVDL3UOcc";
111 histoTitle =
"SVD L3 u-side ZS5 Occupancy (%)";
114 TString::Format(
"%s %s", histoTitle.c_str(), title[0].c_str()),
115 90, 0, 100.0 / 1536.0 * 90);
121 m_svdL3uZS5Occupancy[1]->SetTitle(TString::Format(
"%s %s", histoTitle.c_str(), title[1].c_str()));
125 histoName =
"nCDCExtraHits";
126 histoTitle =
"Number of CDC Extra Hits";
128 m_nCDCExtraHits[0] =
new TH1F(TString::Format(
"%s_%s", histoName.c_str(), tag[0].c_str()),
129 TString::Format(
"%s %s", histoTitle.c_str(), title[0].c_str()),
135 m_nCDCExtraHits[1]->SetName(TString::Format(
"%s_%s", histoName.c_str(), tag[1].c_str()));
136 m_nCDCExtraHits[1]->SetTitle(TString::Format(
"%s %s", histoTitle.c_str(), title[1].c_str()));
139 histoName =
"svdL3VTime";
140 histoTitle =
"Layer3 v-side Cluster Time Distribution";
142 m_svdTime[0] =
new TH1F(TString::Format(
"%s_%s", histoName.c_str(), tag[0].c_str()),
143 TString::Format(
"%s %s", histoTitle.c_str(), title[0].c_str()),
145 m_svdTime[0]->GetXaxis()->SetTitle(
"cluster time (ns)");
146 m_svdTime[0]->GetYaxis()->SetTitle(
"Number of Events");
149 m_svdTime[1]->SetName(TString::Format(
"%s_%s", histoName.c_str(), tag[1].c_str()));
150 m_svdTime[1]->SetTitle(TString::Format(
"%s %s", histoTitle.c_str(), title[1].c_str()));
153 histoName =
"averages";
154 histoTitle =
"Averages from SVD and CDC";
157 TString::Format(
"%s %s", histoTitle.c_str(), title[0].c_str()),
168 m_integratedAverages[1]->SetTitle(TString::Format(
"%s %s", histoTitle.c_str(), title[1].c_str()));
229 }
catch (
const std::exception&) {
255 float nStripsL3UZS5 = 0;
256 float nStripsL3VZS5 = 0;
257 float nStripsL4UZS5 = 0;
258 float nStripsL4VZS5 = 0;
260 const VxdID& sensorID = hit.getSensorID();
262 const float noise =
m_NoiseCal.getNoise(sensorID, hit.isUStrip(), hit.getCellID());
263 const float cutMinSignal = std::round(5 * noise);
265 if (hit.passesZS(1, cutMinSignal)) {
267 if (hit.isUStrip()) nStripsL3UZS5++;
268 else nStripsL3VZS5++;
269 }
else if (hit.isUStrip()) nStripsL4UZS5++;
270 else nStripsL4VZS5++;
276 const VxdID& sensorID = hit.getSensorID();
278 if (hit.isUCluster())
continue;
280 m_svdTime[index]->Fill(hit.getClsTime());
291 int nCDCHitsInner = 0;
292 int nCDCHitsOuter = 0;
294 if (hit.getISuperLayer() == 0) nCDCHitsInner++;
295 else nCDCHitsOuter++;