18 for(
int det_num = 1; det_num <= 16; ++det_num) {
19 for(
int crys1 = 0; crys1 < 4; ++crys1) {
20 for(
int crys2 = crys1 + 1; crys2 < 4; ++crys2) {
21 std::string name_str = Form(
"det_%d_%d_%d", det_num, crys1, crys2);
22 const char* hist_name = name_str.c_str();
23 std::cout <<
"Creating histogram: " << hist_name;
24 fH2[slot][name_str] =
new TH2I(hist_name, Form(
"Detector #%d, crystal %d vs. crystal %d", det_num, crys2, crys1), 1500, 0, 1500, 1500, 0, 1500);
25 std::cout <<
" at address: " <<
fH2[slot][hist_name] << std::endl;
30 fH1[slot][
"aMult"] =
new TH1D(
"aMult",
"addback multilpicity", 20, 0, 20);
31 fH2[slot][
"gE_chan"] =
new TH2D(
"gE_chan",
"gE_chan", 65, 0, 65, 1500, 0, 1500);
32 fH1[slot][
"aE"] =
new TH1D(
"aE",
"Summed Addback", 1500, 0, 1500);
33 fH1[slot][
"gE"] =
new TH1D(
"gE",
"Summed Singles", 1500, 0, 1500);
34 fH1[slot][
"gEnoCT"] =
new TH1D(
"gEnoCT",
"Singles, no CT correction", 1500, 0, 1500);
41 std::array<Int_t, 17> detMultiplicity = {0};
49 fH2[slot].at(
"gE_chan")->Fill(grif1->GetArrayNumber(), grif1->GetEnergy());
50 fH1[slot].at(
"gE")->Fill(grif1->GetEnergy());
51 fH1[slot].at(
"gEnoCT")->Fill(grif1->GetNoCTEnergy());
55 if((detMultiplicity[grif1->GetDetector()] == 2) && grif.
AddbackCriterion(grif1, grif2)) {
58 if(grif1->GetCrystal() > grif2->GetCrystal()) {
59 lowCrystalHit = grif2;
60 highCrystalHit = grif1;
72 fH1[slot].at(
"aE")->Fill(grif1->GetEnergy());