43 fHM = std::make_unique<CbmHistManager>();
44 fHMSed = std::make_unique<CbmHistManager>();
47 fHM->Create1<TH1D>(
"fhRingsPerEvent",
"number of ring per event;# rings per event;Entries", 6, -0.5, 5.5);
49 fHM->Create1<TH1D>(
"fhRingRadius",
"ring radius;ring radius [cm];Entries", 100, 0., 7.);
51 fHM->Create1<TH1D>(
"fhRingRadiusUp",
"ring radius upper half;ring radius [cm]; count", 100, 0., 7.);
53 fHM->Create1<TH1D>(
"fhRingRadiusDown",
"ring radius lower half;ring radius [cm]; count", 100, 0., 7.);
55 fHM->Create1<TH1D>(
"fhRingHits",
"number of ring hits;# ring hits;Entries", 50, -0.5, 49.5);
57 fHM->Create1<TH1D>(
"fhRingHitsUp",
"number of ring hits upper half;# ring hits;Entries", 50, -0.5, 49.5);
59 fHM->Create1<TH1D>(
"fhRingHitsDown",
"number of ring hits lower half;# ring hits;Entries", 50, -0.5, 49.5);
61 fHM->Create1<TH1D>(
"fhRingHitsTimeDiff",
"ringhit to ring time difference;hittime-ringtime [ns]; count", 100, -10.,
65 fHM->Create2<TH2D>(
"fhRichHitsXY",
"position of rich hits;X [cm];Y [cm];Entries", 37, -11.2, 11.2, 82, -24.115,
68 fHM->Create2<TH2D>(
"fhRingHitsXY",
"position of ring hits;X [cm];Y [cm];Entries", 37, -11.2, 11.2, 82, -24.115,
71 fHM->Create2<TH2D>(
"fhRingCenterXY",
"position of ring centers;X [cm];Y [cm];Entries", 37, -11.2, 11.2, 82, -24.115,
140 std::string hName =
"fhSED" + std::to_string(
fEventNum);
141 auto c =
fHMSed->CreateCanvas(hName, hName, 800, 1505);
142 c->SetMargin(0.15, 0.15, 0.1, 0.1);
144 TH2D*
h =
new TH2D(hName.c_str(), hName.c_str(), 37, -11.2, 11.2, 82, -24.115, 23.885);
145 h->SetXTitle(
"X [cm]");
146 h->SetYTitle(
"Y [cm]");
147 h->SetZTitle(
"NN classification 0: noise, 1: signal");
148 h->GetZaxis()->SetTitleOffset(1.3);
152 for (
int i = 0; i < nHits; i++) {
156 if (
h->GetBinContent(
h->FindBin(hit->
GetX(), hit->
GetY())) > 0) {
157 LOG(info) << GetName() <<
"::DrawSED channel already filled for this event. Skipping.";
164 h->Fill(hit->
GetX(), hit->
GetY(), 0.001);
170 for (
int i = 0; i < nRings; i++) {
175 360., ring->
GetPhi() * 180. / TMath::Pi());
176 circle->SetFillStyle(0);
177 circle->SetLineWidth(2);
178 circle->Draw(
"same");
184 TDirectory* oldir = gDirectory;
185 TFile* outFile = FairRootManager::Instance()->GetOutFile();
187 outFile->mkdir(GetName());
188 outFile->cd(GetName());
191 outFile->mkdir((std::string(GetName()) + std::string(
"SEDs")).c_str());
192 outFile->cd((std::string(GetName()) + std::string(
"SEDs")).c_str());
193 fHMSed->WriteCanvasToFile();
197 gDirectory->cd(oldir->GetPath());