14 NumberOfFeds_ = FEDRange_.second - FEDRange_.first + 1;
17 for (
int i = 0;
i != 40;
i++)
23 daqSourceToken_ = consumes<FEDRawDataCollection>(ps.
getUntrackedParameter<
string>(
"daqSource",
"source"));
24 runInfoToken_ = esConsumes<RunInfo, RunInfoRcd, edm::Transition::EndLuminosityBlock>();
36 Fraction_ = iBooker.
bookFloat(
"DAQSummary");
38 FractionBarrel_ = iBooker.
bookFloat(
"PixelBarrelFraction");
39 FractionEndcap_ = iBooker.
bookFloat(
"PixelEndcapFraction");
46 const RunInfo &sumFED = runInfoRec->get(runInfoToken_);
47 vector<int> FedsInIds = sumFED.
m_fed_in;
50 int FedCountBarrel = 0;
51 int FedCountEndcap = 0;
54 for (
unsigned int fedItr = 0; fedItr < FedsInIds.size(); ++fedItr) {
55 int fedID = FedsInIds[fedItr];
57 if (fedID >= FEDRange_.first && fedID <= FEDRange_.second) {
59 if (fedID >= 0 && fedID <= 31)
61 else if (fedID >= 32 && fedID <= 39)
66 if (FedCountBarrel <= 32) {
73 for (
int i = 0;
i != 40;
i++) {
74 if (i <= 31 && mefed->getBinContent(
i + 1) > 0)
83 if (NumberOfFeds_ > 0) {
85 Fraction_->
Fill(FedCount / NumberOfFeds_);
87 FractionBarrel_->Fill(FedCountBarrel / 32.);
89 FractionEndcap_->Fill(FedCountEndcap / 8.);
92 FractionBarrel_->Fill(-1);
93 FractionEndcap_->Fill(-1);
97 FractionBarrel_->Fill(-1);
98 FractionEndcap_->Fill(-1);