16 NumberOfFeds_ = FEDRange_.second - FEDRange_.first + 1;
19 for (
int i = 0;
i != 40;
i++)
25 daqSourceToken_ = consumes<FEDRawDataCollection>(ps.
getUntrackedParameter<
string>(
"daqSource",
"source"));
37 Fraction_ = iBooker.
bookFloat(
"DAQSummary");
39 FractionBarrel_ = iBooker.
bookFloat(
"PixelBarrelFraction");
40 FractionEndcap_ = iBooker.
bookFloat(
"PixelEndcapFraction");
48 runInfoRec->get(sumFED);
49 vector<int> FedsInIds = sumFED->
m_fed_in;
52 int FedCountBarrel = 0;
53 int FedCountEndcap = 0;
56 for (
unsigned int fedItr = 0; fedItr < FedsInIds.size(); ++fedItr) {
57 int fedID = FedsInIds[fedItr];
59 if (fedID >= FEDRange_.first && fedID <= FEDRange_.second) {
61 if (fedID >= 0 && fedID <= 31)
63 else if (fedID >= 32 && fedID <= 39)
68 if (FedCountBarrel <= 32) {
75 for (
int i = 0;
i != 40;
i++) {
76 if (i <= 31 && mefed->getBinContent(
i + 1) > 0)
85 if (NumberOfFeds_ > 0) {
87 Fraction_->
Fill(FedCount / NumberOfFeds_);
89 FractionBarrel_->Fill(FedCountBarrel / 32.);
91 FractionEndcap_->Fill(FedCountEndcap / 8.);
94 FractionBarrel_->Fill(-1);
95 FractionEndcap_->Fill(-1);
99 FractionBarrel_->Fill(-1);
100 FractionEndcap_->Fill(-1);