10         std::stringstream str;
 
   11         str << 
"Got ODB cycle length " << 
fCycleLength << 
" us = " << 
static_cast<double>(
fCycleLength) / 1e6 << 
" s" << std::endl;
 
   12         std::cout << str.str();
 
   14   } 
else if(slot == 0) {
 
   15      std::stringstream str;
 
   16      str << 
DRED << 
"No ppg provided, can't fill cycle spectra!" << 
RESET_COLOR << std::endl;
 
   17      std::cout << str.str();
 
   21   int    energyBins = 10000;
 
   22   double lowEnergy  = 0.;
 
   23   double highEnergy = 2000.;
 
   25   fH2[slot][
"zdsMultGriffinMult"] = 
new TH2I(
"zdsMultGriffinMult", 
"ZDS multiplicity vs. GRIFFIN multiplicity (unsuppressed)", 65, -0.5, 64.5, 10, -0.5, 9.5);
 
   28   fH1[slot][
"griffinE"] = 
new TH1F(
"griffinE", Form(
"Unsuppressed griffin energy;energy [keV];counts/%.1f keV", (highEnergy - lowEnergy) / energyBins), energyBins, lowEnergy, highEnergy);
 
   30   fH1[slot][
"griffinESupp"] = 
new TH1F(
"griffinESupp", Form(
"Suppressed griffin energy;energy [keV];counts/%.1f keV", (highEnergy - lowEnergy) / energyBins), energyBins, lowEnergy, highEnergy);
 
   32   fH1[slot][
"griffinEAddback"] = 
new TH1F(
"griffinEAddback", Form(
"Unsuppressed griffin addback energy;energy [keV];counts/%.1f keV", (highEnergy - lowEnergy) / energyBins), energyBins, lowEnergy, highEnergy);
 
   34   fH1[slot][
"griffinESuppAddback"]             = 
new TH1F(
"griffinESuppAddback", Form(
"Suppressed griffin addback energy;energy [keV];counts/%.1f keV", (highEnergy - lowEnergy) / energyBins), energyBins, lowEnergy, highEnergy);
 
   35   fH1[slot][
"griffinESuppAddbackBeta"]         = 
new TH1F(
"griffinESuppAddbackBeta", Form(
"Suppressed griffin addback energy w/ #beta-tag;energy [keV];counts/%.1f keV", (highEnergy - lowEnergy) / energyBins), energyBins, lowEnergy, highEnergy);
 
   36   fH2[slot][
"griffinESuppAddbackMatrixBeta"]   = 
new TH2F(
"griffinESuppAddbackMatrixBeta", 
"Suppressed griffin addback energy matrix w/ #beta-tag;energy [keV];energy [keV]", energyBins / 5, lowEnergy, highEnergy, energyBins / 5, lowEnergy, highEnergy);
 
   37   fH2[slot][
"griffinESuppAddbackMatrixBetaBg"] = 
new TH2F(
"griffinESuppAddbackMatrixBetaBg", 
"Suppressed griffin addback energy matrix w/ #beta-tag (time random BG);energy [keV];energy [keV]", energyBins / 5, lowEnergy, highEnergy, energyBins / 5, lowEnergy, highEnergy);
 
   40   fH2[slot][
"griffinZdsTS"]       = 
new TH2F(
"griffinZdsTS", 
"GRIFFIN crystal vs. GRIFFIN-ZDS timestamp difference (suppressed addback);#DeltaTS_{GRIFFIN-ZDS}", 200, -1000., 1000., 64, 0.5, 64.5);
 
   41   fH2[slot][
"griffinZdsTime"]     = 
new TH2F(
"griffinZdsTime", 
"GRIFFIN crystal vs. GRIFFIN-ZDS timing (suppressed addback);#Deltat_{GRIFFIN-ZDS}", 2000, -1000., 1000., 64, 0.5, 64.5);
 
   42   fH2[slot][
"griffinGriffinTS"]   = 
new TH2F(
"griffinGriffinTS", 
"GRIFFIN crystal vs. GRIFFIN-GRIFFIN timestamp difference (suppressed addback);#DeltaTS_{GRIFFIN-GRIFFIN}", 2000, -1000., 1000., 64, 0.5, 64.5);
 
   43   fH2[slot][
"griffinGriffinTime"] = 
new TH2F(
"griffinGriffinTime", 
"GRIFFIN crystal vs. GRIFFIN-GRIFFIN timing (suppressed addback);#Deltat_{GRIFFIN-GRIFFIN}", 2000, -1000., 1000., 64, 0.5, 64.5);
 
   47      fH2[slot][
"griffinCycle"] = 
new TH2F(
"griffinCycle", 
"GRIFFIN suppressed addback energy w/ #beta-tag vs. time in cycle;time in cycle [s];energy [keV]", 100 * 
fCycleLength / 1000000, 0., 
static_cast<double>(
fCycleLength) / 1e6, energyBins / 5, lowEnergy, highEnergy);
 
   48      fH1[slot][
"zdsCycle"]     = 
new TH1F(
"zdsCycle", 
"ZDS hits in cycle;time in cycle [s]", 100 * 
fCycleLength / 1000000, 0., 
static_cast<double>(
fCycleLength) / 1e6);
 
 
   82      fH1[slot].at(
"griffinE")->Fill(grif1->GetEnergy());
 
   88      fH1[slot].at(
"griffinESupp")->Fill(grif1->GetEnergy());
 
   94      fH1[slot].at(
"griffinEAddback")->Fill(grif1->GetEnergy());
 
  100      fH1[slot].at(
"griffinESuppAddback")->Fill(grif1->GetEnergy());
 
  104      bool promptBeta = 
false;
 
  107         fH2[slot].at(
"griffinZdsTS")->Fill(
static_cast<double>(grif1->GetTimeStampNs() - zds1->GetTimeStampNs()), grif1->GetArrayNumber());
 
  108         fH2[slot].at(
"griffinZdsTime")->Fill(grif1->GetTime() - zds1->GetTime(), grif1->GetArrayNumber());
 
  112         fH1[slot].at(
"griffinESuppAddbackBeta")->Fill(grif1->GetEnergy());
 
  114            fH2[slot].at(
"griffinCycle")->Fill(std::fmod(grif1->GetTime() / 1e3, 
fCycleLength) / 1e6, grif1->GetEnergy());
 
  118            fH2[slot].at(
"griffinGriffinTS")->Fill(
static_cast<double>(grif1->GetTimeStampNs() - grif2->GetTimeStampNs()), grif1->GetArrayNumber());
 
  119            fH2[slot].at(
"griffinGriffinTime")->Fill(grif1->GetTime() - grif2->GetTime(), grif1->GetArrayNumber());
 
  122               fH2[slot].at(
"griffinESuppAddbackMatrixBeta")->Fill(grif1->GetEnergy(), grif2->GetEnergy());
 
  123               fH2[slot].at(
"griffinESuppAddbackMatrixBeta")->Fill(grif2->GetEnergy(), grif1->GetEnergy());
 
  126               fH2[slot].at(
"griffinESuppAddbackMatrixBetaBg")->Fill(grif1->GetEnergy(), grif2->GetEnergy());
 
  127               fH2[slot].at(
"griffinESuppAddbackMatrixBetaBg")->Fill(grif2->GetEnergy(), grif1->GetEnergy());
 
  135         fH1[slot].at(
"zdsCycle")->Fill(std::fmod(zds1->GetTime() / 1e3, 
fCycleLength) / 1e6);